.mpwl-shell{
  --mpwl-primary:#2583e8;
  --mpwl-primary-dark:#155fb9;
  --mpwl-primary-soft:#edf5ff;
  --mpwl-bg:#f6f9fd;
  --mpwl-card:#ffffff;
  --mpwl-border:#d7e6f6;
  --mpwl-border-soft:#e8f0f8;
  --mpwl-text:#1f3552;
  --mpwl-muted:#6f86a0;
  --mpwl-shadow:0 10px 28px rgba(37,131,232,.08);
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--mpwl-text);
  background:var(--mpwl-bg);
  border:1px solid var(--mpwl-border);
  border-radius:34px;
  padding:28px;
  box-shadow:var(--mpwl-shadow);
}

.mpwl-shell a{color:var(--mpwl-primary-dark)}
.mpwl-shell .button,
.mpwl-shell button,
.mpwl-shell input[type="submit"]{
  appearance:none;
  border:0;
  border-radius:16px;
  background:linear-gradient(180deg,var(--mpwl-primary) 0%,var(--mpwl-primary-dark) 100%);
  color:#fff;
  font-weight:700;
  letter-spacing:.02em;
  padding:14px 18px;
  min-height:50px;
  box-shadow:0 10px 22px rgba(37,131,232,.18);
}
.mpwl-shell .button:hover,
.mpwl-shell button:hover,
.mpwl-shell input[type="submit"]:hover{transform:translateY(-1px)}

.mpwl-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:22px;
}
.mpwl-kicker{
  font-size:13px;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--mpwl-primary);
  font-weight:800;
  margin-bottom:10px;
}
.mpwl-header h2{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.05;
  letter-spacing:-.03em;
  color:var(--mpwl-text);
}
.mpwl-header p{
  margin:0;
  max-width:760px;
  font-size:18px;
  line-height:1.55;
  color:var(--mpwl-muted);
}
.mpwl-subhead a{color:var(--mpwl-primary);font-weight:800;text-decoration:none}
.mpwl-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.mpwl-actions .button,.mpwl-print-btn{min-width:220px}
.mpwl-call-btn{background:#fff!important;color:var(--mpwl-primary)!important;border:1px solid #bfd6f4!important;box-shadow:none!important}
.mpwl-call-btn:hover{background:#f5f9ff!important}

.mpwl-panel,
.mpwl-metric,
.mpwl-login-card{
  background:var(--mpwl-card);
  border:1px solid var(--mpwl-border);
  border-radius:28px;
  box-shadow:var(--mpwl-shadow);
}
.mpwl-panel{
  padding:20px;
  margin-bottom:20px;
}
.mpwl-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.mpwl-panel-head h3{
  margin:0;
  font-size:22px;
  letter-spacing:-.02em;
}

.mpwl-panel--filters{
  padding:22px;
  background:#fbfdff;
}
.mpwl-segments{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}
.mpwl-segment,
.mpwl-alpha{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:12px 18px;
  border-radius:18px;
  border:1px solid var(--mpwl-border);
  background:#fff;
  color:var(--mpwl-text);
  text-decoration:none;
  font-size:20px;
  font-weight:700;
  box-shadow:none;
}
.mpwl-segment.is-active,
.mpwl-alpha.is-active{
  background:linear-gradient(180deg,var(--mpwl-primary) 0%,var(--mpwl-primary-dark) 100%);
  border-color:transparent;
  color:#fff;
  box-shadow:0 10px 22px rgba(37,131,232,.18);
}
.mpwl-filter-form,
.mpwl-admin-search,
.mpwl-reminder-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:flex-end;
}
.mpwl-filter-form label,
.mpwl-admin-search label,
.mpwl-reminder-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:14px;
  font-weight:800;
  color:var(--mpwl-text);
  letter-spacing:.01em;
}
.mpwl-filter-form label{flex:1 1 180px; min-width:180px}
.mpwl-filter-form label:last-of-type{max-width:240px}
.mpwl-filter-form input,
.mpwl-filter-form select,
.mpwl-admin-search input,
.mpwl-reminder-form input[type="email"],
.mpwl-reminder-form input[type="text"],
.mpwl-reminder-form select{
  width:100%;
  min-height:52px;
  border-radius:16px;
  border:1px solid var(--mpwl-border);
  background:#fff;
  color:var(--mpwl-text);
  font-size:17px;
  font-weight:600;
  padding:12px 14px;
  box-sizing:border-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.mpwl-filter-form select{
  -webkit-appearance:menulist!important;
  -moz-appearance:auto!important;
  appearance:auto!important;
  background-image:none!important;
}

.mpwl-card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:20px;
}
.mpwl-metric{
  min-height:150px;
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.mpwl-metric__label{
  font-size:13px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--mpwl-muted);
  font-weight:800;
  margin-bottom:14px;
}
.mpwl-metric__value{
  font-size:24px;
  line-height:1.08;
  font-weight:800;
  letter-spacing:-.03em;
  color:#173a63;
}
.mpwl-card-grid--top .mpwl-metric{
  min-height:164px;
}
.mpwl-card-grid--top .mpwl-metric__value{
  font-size:28px;
}

.mpwl-metric__value.is-compact{
  font-size:20px;
  line-height:1.04;
}
.mpwl-card-grid--top .mpwl-metric__value.is-compact{
  font-size:23px;
}
.mpwl-metric__value.is-compact-xl{
  font-size:17px;
  line-height:1.02;
}
.mpwl-card-grid--top .mpwl-metric__value.is-compact-xl{
  font-size:19px;
}

.mpwl-layout-2{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(360px,.85fr);
  gap:20px;
  align-items:stretch;
  margin-bottom:20px;
}
.mpwl-layout-2 > .mpwl-panel{margin-bottom:0}
.mpwl-panel--snapshot{padding-top:20px}
.mpwl-snapshot{
  display:flex;
  flex-direction:column;
  height:100%;
}
.mpwl-snapshot-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid var(--mpwl-border-soft);
}
.mpwl-snapshot-row:last-child{border-bottom:0}
.mpwl-snapshot-row span{
  color:var(--mpwl-muted);
  font-size:18px;
  line-height:1.35;
}
.mpwl-snapshot-row strong{
  color:#173a63;
  font-size:20px;
  line-height:1.2;
  font-weight:800;
  text-align:right;
}

.mpwl-chart{
  min-height:330px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.mpwl-chart svg{
  width:100%;
  height:270px;
  display:block;
}
.mpwl-axis{stroke:#d6e3f2;stroke-width:1.25}
.mpwl-line{fill:none;stroke:var(--mpwl-primary);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.mpwl-dot{fill:#fff;stroke:var(--mpwl-primary);stroke-width:3}
.mpwl-chart-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:10px;
  color:var(--mpwl-muted);
  font-size:14px;
  font-weight:700;
}
.mpwl-chart-empty,
.mpwl-empty{
  color:var(--mpwl-muted);
  font-size:16px;
  line-height:1.55;
  padding:14px 0 2px;
}

.mpwl-table-wrap{
  overflow:auto;
  border:1px solid var(--mpwl-border-soft);
  border-radius:22px;
}
.mpwl-table{
  width:100%;
  min-width:980px;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
}
.mpwl-table th,
.mpwl-table td{
  padding:16px 14px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--mpwl-border-soft);
}
.mpwl-table thead th{
  position:sticky;
  top:0;
  background:#f8fbff;
  z-index:1;
  font-size:12px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--mpwl-muted);
  font-weight:800;
}
.mpwl-table tbody tr:nth-child(even) td{background:#fcfdff}
.mpwl-table tbody tr:last-child td{border-bottom:0}
.mpwl-muted{color:var(--mpwl-muted)}

.mpwl-login-card{
  max-width:680px;
  padding:26px;
}
.mpwl-login-card h3{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.1;
  letter-spacing:-.02em;
}
.mpwl-login-card p{
  color:var(--mpwl-muted);
  font-size:16px;
  line-height:1.6;
}
.mpwl-login-card .button-secondary{
  margin-left:10px;
  background:#fff;
  color:var(--mpwl-primary-dark);
  border:1px solid var(--mpwl-border);
  box-shadow:none;
}
.mpwl-login-card p:last-child{margin-bottom:0}

.mpwl-admin-shell{margin-top:16px}
.mpwl-alpha-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.mpwl-alpha{min-height:44px;padding:8px 12px;font-size:15px;border-radius:14px}

.mpwl-reminder-actions .button{white-space:nowrap}
.mpwl-reminder-label{font-size:13px;font-weight:800;color:var(--mpwl-text);margin-bottom:8px;text-transform:uppercase;letter-spacing:.08em}
.mpwl-locked-field{opacity:.95}
.mpwl-locked-input{background:#f3f7fc!important;color:#5a718a!important;cursor:not-allowed}
.mpwl-locked-field .gfield_description,.mpwl-locked-note{color:var(--mpwl-muted);font-size:12px;line-height:1.5}

@media (max-width: 1180px){
  .mpwl-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mpwl-layout-2{grid-template-columns:1fr}
}

@media (max-width: 900px){
  .mpwl-shell{padding:20px;border-radius:24px}
  .mpwl-header{flex-direction:column;align-items:stretch}
  .mpwl-header h2{font-size:34px}
  .mpwl-header p{font-size:16px}
  .mpwl-segments{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 640px){
  .mpwl-shell{padding:16px;border-radius:20px}
  .mpwl-panel,.mpwl-metric,.mpwl-login-card{border-radius:20px}
  .mpwl-card-grid{grid-template-columns:1fr;gap:14px}
  .mpwl-segments{grid-template-columns:1fr 1fr;gap:8px}
  .mpwl-segment{min-height:48px;font-size:16px;border-radius:14px;padding:10px 12px}
  .mpwl-filter-form,.mpwl-admin-search,.mpwl-reminder-actions{flex-direction:column;align-items:stretch}
  .mpwl-filter-form label,.mpwl-filter-form label:last-of-type{max-width:none;min-width:100%}
  .mpwl-metric{min-height:124px;padding:18px}
  .mpwl-metric__value{font-size:24px}
  .mpwl-card-grid--top .mpwl-metric__value{font-size:28px}
  .mpwl-layout-2{gap:14px}
  .mpwl-snapshot-row span{font-size:16px}
  .mpwl-snapshot-row strong{font-size:17px}
  .mpwl-chart{min-height:250px}
  .mpwl-chart svg{height:210px}
  .mpwl-actions .button,.mpwl-print-btn{width:100%;min-width:0}
}

@media print{
  body *{visibility:hidden!important}
  .mpwl-shell,.mpwl-shell *,.wrap,.wrap *{visibility:visible!important}
  .mpwl-print-btn,.button,.mpwl-filter-form,.mpwl-segments,.mpwl-alpha-row{display:none!important}
  .mpwl-shell{border:none;box-shadow:none;padding:0;background:#fff}
  .mpwl-panel,.mpwl-metric{box-shadow:none;break-inside:avoid;border:1px solid #dfe7ef}
}

/* --------------------------------------------------
   Gravity Forms shot tracker styling (Form 5)
-------------------------------------------------- */
body #gform_wrapper_5.gform_wrapper,
body #gform_wrapper_5.gform_wrapper.gravity-theme{
  background:var(--mpwl-bg);
  border:1px solid var(--mpwl-border);
  border-radius:34px;
  padding:26px;
  box-shadow:var(--mpwl-shadow);
}
body #gform_wrapper_5 .gform_heading{
  margin-bottom:18px;
}
body #gform_wrapper_5 .gform_title{
  margin:0 0 10px;
  font-size:40px;
  line-height:1.05;
  letter-spacing:-.03em;
  color:var(--mpwl-text);
}
body #gform_wrapper_5 .gform_description,
body #gform_wrapper_5 .gsection_description,
body #gform_wrapper_5 .gfield_description,
body #gform_wrapper_5 .instruction{
  color:var(--mpwl-muted);
  font-size:15px;
  line-height:1.6;
}
body #gform_wrapper_5 .gform_fields{
  gap:18px 18px;
}
body #gform_wrapper_5 .gfield{
  background:#fff;
  border:1px solid var(--mpwl-border);
  border-radius:24px;
  padding:18px;
  box-shadow:0 8px 18px rgba(37,131,232,.05);
}
body #gform_wrapper_5 .gfield.gsection{
  background:linear-gradient(180deg,#f9fcff 0%,#f2f8ff 100%);
  border-color:var(--mpwl-border);
  padding:20px 22px;
}
body #gform_wrapper_5 .gsection_title{
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.02em;
  margin:0 0 6px;
  color:var(--mpwl-text);
}
body #gform_wrapper_5 .gfield_label,
body #gform_wrapper_5 legend.gfield_label{
  display:block;
  margin-bottom:10px;
  font-size:13px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--mpwl-muted);
  font-weight:800;
}
body #gform_wrapper_5 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body #gform_wrapper_5 select,
body #gform_wrapper_5 textarea{
  width:100%;
  min-height:54px;
  border-radius:16px;
  border:1px solid var(--mpwl-border);
  background:#fff;
  color:var(--mpwl-text);
  font-size:17px;
  font-weight:600;
  padding:12px 14px;
  box-sizing:border-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
body #gform_wrapper_5 textarea{min-height:120px;resize:vertical}
body #gform_wrapper_5 select{
  -webkit-appearance:menulist!important;
  -moz-appearance:auto!important;
  appearance:auto!important;
  background-image:none!important;
}
body #gform_wrapper_5 .ginput_container_date input{min-height:54px}
body #gform_wrapper_5 .gchoice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
}
body #gform_wrapper_5 .gchoice input{margin-top:4px}
body #gform_wrapper_5 .gchoice label{font-size:16px;line-height:1.5;color:var(--mpwl-text)}
body #gform_wrapper_5 .gform_footer,
body #gform_wrapper_5 .gform_page_footer{
  margin-top:22px;
  padding-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
body #gform_wrapper_5 .gform_button,
body #gform_wrapper_5 .gform_next_button,
body #gform_wrapper_5 .gform_previous_button,
body #gform_wrapper_5 .gform_save_link{
  appearance:none;
  border-radius:16px;
  min-height:52px;
  padding:14px 18px;
  font-weight:800;
  letter-spacing:.02em;
}
body #gform_wrapper_5 .gform_button,
body #gform_wrapper_5 .gform_next_button{
  border:0;
  background:linear-gradient(180deg,var(--mpwl-primary) 0%,var(--mpwl-primary-dark) 100%);
  color:#fff;
  box-shadow:0 10px 22px rgba(37,131,232,.18);
}
body #gform_wrapper_5 .gform_previous_button{
  background:#fff;
  color:var(--mpwl-primary-dark);
  border:1px solid var(--mpwl-border);
}
body #gform_wrapper_5 .validation_message,
body #gform_wrapper_5 .gfield_validation_message,
body #gform_wrapper_5 .validation_error,
body #gform_wrapper_5 .gform_validation_errors{
  border-radius:16px;
}
body #gform_wrapper_5 .gfield_error{
  background:#fff7f7;
  border-color:#efc2c2;
}
body #gform_wrapper_5 .gform_confirmation_message{
  background:#fff;
  border:1px solid var(--mpwl-border);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--mpwl-shadow);
  font-size:18px;
  line-height:1.6;
  color:var(--mpwl-text);
}

@media (max-width: 900px){
  body #gform_wrapper_5.gform_wrapper,
  body #gform_wrapper_5.gform_wrapper.gravity-theme{padding:20px;border-radius:24px}
  body #gform_wrapper_5 .gform_title{font-size:34px}
}

@media (max-width: 640px){
  body #gform_wrapper_5.gform_wrapper,
  body #gform_wrapper_5.gform_wrapper.gravity-theme{padding:16px;border-radius:20px}
  body #gform_wrapper_5 .gfield{padding:14px;border-radius:18px}
  body #gform_wrapper_5 .gform_title{font-size:30px}
  body #gform_wrapper_5 .gform_footer,
  body #gform_wrapper_5 .gform_page_footer{flex-direction:column}
  body #gform_wrapper_5 .gform_button,
  body #gform_wrapper_5 .gform_next_button,
  body #gform_wrapper_5 .gform_previous_button{width:100%}
}

/* Strong submit button override for tracker form */
body #gform_wrapper_5 input.gform_button,
body #gform_wrapper_5 input[type="submit"].gform_button,
body #gform_wrapper_5 .gform_footer input[type="submit"],
body #gform_wrapper_5 .gform_page_footer input[type="submit"],
body #gform_wrapper_5 .gform_footer button,
body #gform_wrapper_5 .gform_page_footer button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:180px!important;
  min-height:54px!important;
  padding:14px 22px!important;
  border:0!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,var(--mpwl-primary) 0%,var(--mpwl-primary-dark) 100%)!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.2!important;
  letter-spacing:.02em!important;
  text-indent:0!important;
  text-transform:none!important;
  box-shadow:0 10px 22px rgba(37,131,232,.18)!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
}

body #gform_wrapper_5 .gform_footer input[type="submit"]:hover,
body #gform_wrapper_5 .gform_page_footer input[type="submit"]:hover,
body #gform_wrapper_5 .gform_footer button:hover,
body #gform_wrapper_5 .gform_page_footer button:hover{
  filter:brightness(.98)!important;
}


.mpwl-notice{margin:0 0 16px;padding:14px 16px;border-radius:16px;font-size:15px;font-weight:700}
.mpwl-notice--success{background:#eef9f0;border:1px solid #b8dfbe;color:#205b2b}


.mpwl-flag-list{display:flex;flex-wrap:wrap;gap:10px}
.mpwl-flag{display:inline-flex;align-items:center;min-height:34px;padding:8px 12px;border-radius:999px;font-size:13px;font-weight:800;letter-spacing:.02em;border:1px solid transparent}
.mpwl-flag--good{background:#eef9f0;border-color:#b8dfbe;color:#205b2b}
.mpwl-flag--warn{background:#fff7e8;border-color:#efd29d;color:#835600}
.mpwl-flag--muted{background:#f3f7fb;border-color:#d7e4f1;color:#54708d}
.mpwl-dose-list{display:grid;gap:12px}
.mpwl-dose-item{display:grid;grid-template-columns:170px 1fr 180px;gap:12px;align-items:center;padding:14px 16px;background:#fff;border:1px solid var(--mpwl-border);border-radius:18px;box-shadow:0 8px 18px rgba(37,131,232,.05)}
.mpwl-dose-date{font-size:14px;font-weight:700;color:var(--mpwl-muted)}
.mpwl-dose-main{font-size:16px;font-weight:800;color:var(--mpwl-text)}
.mpwl-dose-sub{font-size:15px;font-weight:700;color:var(--mpwl-primary-dark)}
.mpwl-empty-inline{color:var(--mpwl-muted)}
@media (max-width: 700px){.mpwl-dose-item{grid-template-columns:1fr}.mpwl-dose-sub{text-align:left}}


.mpwl-streak-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mpwl-streak-card{background:#fff;border:1px solid var(--mpwl-border);border-radius:20px;padding:18px;box-shadow:0 8px 18px rgba(37,131,232,.05)}
.mpwl-streak-label{font-size:13px;line-height:1.2;text-transform:uppercase;letter-spacing:.08em;color:var(--mpwl-muted);font-weight:800;margin-bottom:10px}
.mpwl-streak-value{font-size:34px;line-height:1;font-weight:900;letter-spacing:-.03em;color:#173a63}
.mpwl-streak-value span{font-size:16px;font-weight:800;color:var(--mpwl-muted)}
.mpwl-streak-sub{margin-top:8px;font-size:14px;font-weight:700;color:var(--mpwl-muted)}
@media (max-width:700px){.mpwl-streak-grid{grid-template-columns:1fr}}


.mpwl-weekly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mpwl-weekly-item{background:#fff;border:1px solid var(--mpwl-border);border-radius:18px;padding:16px 18px;box-shadow:0 8px 18px rgba(37,131,232,.05)}
.mpwl-weekly-item span{display:block;font-size:13px;line-height:1.2;text-transform:uppercase;letter-spacing:.08em;color:var(--mpwl-muted);font-weight:800;margin-bottom:8px}
.mpwl-weekly-item strong{font-size:20px;line-height:1.25;color:#173a63}
.mpwl-badge-group{display:flex;flex-wrap:wrap;gap:10px}
.mpwl-badge-group--milestones{margin-top:12px}
@media (max-width:700px){.mpwl-weekly-grid{grid-template-columns:1fr}}


.mpwl-goal-progress{margin-top:14px;padding-top:12px;border-top:1px solid var(--mpwl-border)}
.mpwl-goal-progress-bar{height:12px;border-radius:999px;background:#eaf1f8;overflow:hidden}
.mpwl-goal-progress-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#60a5fa,#2563eb)}
.mpwl-goal-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:13px;color:var(--mpwl-muted);font-weight:700}
.mpwl-history-cards{display:none;gap:12px}
.mpwl-history-card{background:#fff;border:1px solid var(--mpwl-border);border-radius:18px;padding:16px;box-shadow:0 8px 18px rgba(37,131,232,.05)}
.mpwl-history-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.mpwl-history-card-head strong:last-child{color:var(--mpwl-primary-dark)}
.mpwl-history-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.mpwl-history-card-grid span,.mpwl-history-card-notes span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--mpwl-muted);font-weight:800;margin-bottom:4px}
.mpwl-history-card-grid strong,.mpwl-history-card-notes strong{font-size:14px;color:var(--mpwl-text)}
.mpwl-history-card-notes{margin-top:12px;padding-top:12px;border-top:1px solid var(--mpwl-border)}
@media (max-width: 760px){.mpwl-table--desktop{display:none}.mpwl-history-cards{display:grid}}


#gform_wrapper_5 #gform_submit_button_5,
#gform_wrapper_5 .gform_footer input[type=submit],
#gform_wrapper_5 .gform_page_footer input[type=submit]{display:inline-flex !important;align-items:center;justify-content:center;min-height:52px;padding:14px 22px;border:0;border-radius:16px;background:#2563eb !important;color:#fff !important;font-size:16px;font-weight:800;line-height:1.1;box-shadow:0 10px 24px rgba(37,99,235,.22);opacity:1 !important;visibility:visible !important}
#gform_wrapper_5 #gform_submit_button_5:hover{filter:brightness(.98)}


.mpwl-alert{margin:0 0 18px;padding:14px 16px;border-radius:16px;font-weight:700}
.mpwl-alert--success{background:#ecfdf3;border:1px solid #b7ebc6;color:#15603a}


.mpwl-progress-chart{padding:10px 4px 2px}
.mpwl-progress-top{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:18px}
.mpwl-progress-stat strong{display:block;font-size:30px;line-height:1.1;color:#1d3557}
.mpwl-progress-kicker{display:block;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#6f87a1;margin-bottom:6px}
.mpwl-progress-stat--center{text-align:center}.mpwl-progress-stat--right{text-align:right}
.mpwl-progress-track-wrap{position:relative;height:56px;margin:8px 4px 14px}
.mpwl-progress-track{position:absolute;left:0;right:0;top:20px;height:16px;border-radius:999px;background:#e6edf5}
.mpwl-progress-fill{position:absolute;left:0;top:20px;height:16px;border-radius:999px;background:linear-gradient(90deg,#2f80ed,#59a7ff)}
.mpwl-progress-tick{position:absolute;top:12px;width:10px;height:32px;border-radius:999px;background:#9fb8d3;border:2px solid #fff;box-shadow:0 2px 8px rgba(26,58,93,.14);transform:translateX(-50%)}
.mpwl-progress-tick.is-current{background:#1f4f93;width:14px;height:40px;top:8px}
.mpwl-progress-meta{display:flex;justify-content:space-between;gap:12px;color:#6f87a1;font-size:15px}
.mpwl-progress-meta strong{color:#1d3557}
@media (max-width:849px){.mpwl-progress-top{grid-template-columns:1fr;gap:10px}.mpwl-progress-stat--center,.mpwl-progress-stat--right{text-align:left}.mpwl-progress-stat strong{font-size:24px}.mpwl-progress-meta{flex-direction:column}}

/* --------------------------------------------------
   Shotsy-inspired light-mode refinement
-------------------------------------------------- */
.mpwl-shell{
  --mpwl-bg:#f4f7fb;
  --mpwl-card:#ffffff;
  --mpwl-border:#d6e3f2;
  --mpwl-border-soft:#e9f0f7;
  --mpwl-shadow:0 14px 34px rgba(37,131,232,.08);
  background:linear-gradient(180deg,#f8fbff 0%,#f3f7fc 100%);
}

.mpwl-panel,
.mpwl-metric,
.mpwl-login-card,
.mpwl-history-card,
.mpwl-table-wrap{
  box-shadow:0 12px 28px rgba(19,71,130,.05), inset 0 1px 0 rgba(255,255,255,.75);
}

.mpwl-header{
  margin-bottom:26px;
}

.mpwl-header h2{
  font-size:44px;
  letter-spacing:-.04em;
}

.mpwl-panel-head h3,
.mpwl-login-card h3{
  font-size:20px;
  font-weight:800;
  letter-spacing:-.03em;
}

.mpwl-panel--filters{
  background:linear-gradient(180deg,#ffffff 0%,#f9fbfe 100%);
  border-radius:30px;
  padding:24px;
}

.mpwl-segments{
  gap:12px;
}

.mpwl-segment,
.mpwl-alpha{
  min-height:54px;
  border-radius:18px;
  font-size:17px;
  font-weight:800;
  border-color:#d7e4f1;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 4px 12px rgba(31,80,147,.04);
  transition:all .18s ease;
}

.mpwl-segment:hover,
.mpwl-alpha:hover{
  transform:translateY(-1px);
  border-color:#bdd4ee;
}

.mpwl-segment.is-active,
.mpwl-alpha.is-active{
  box-shadow:0 12px 24px rgba(37,131,232,.22);
}

.mpwl-filter-form input,
.mpwl-filter-form select,
.mpwl-admin-search input,
.mpwl-reminder-form input[type="email"],
.mpwl-reminder-form input[type="text"],
.mpwl-reminder-form select{
  min-height:54px;
  border-radius:18px;
  border-color:#d7e4f1;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 4px 10px rgba(31,80,147,.03);
}

.mpwl-card-grid{
  gap:20px;
}

.mpwl-metric{
  position:relative;
  overflow:hidden;
  min-height:156px;
  padding:22px 22px 20px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}

.mpwl-metric::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,#2f80ed 0%,#7eb6ff 100%);
  opacity:.95;
}

.mpwl-metric__label{
  color:#7a92ad;
  margin-bottom:10px;
}

.mpwl-metric__value{
  font-size:34px;
  color:#123861;
}

.mpwl-card-grid--top .mpwl-metric__value{
  font-size:38px;
}

.mpwl-layout-2{
  grid-template-columns:minmax(0,1.45fr) minmax(330px,.8fr);
  gap:22px;
  align-items:start;
}


.mpwl-layout-2--hero{
  align-items:start;
}

.mpwl-layout-stack{
  display:grid;
  gap:22px;
  min-width:0;
}

.mpwl-layout-stack > .mpwl-panel,
.mpwl-layout-stack > .mpwl-clinic-note-panel{
  margin-bottom:0;
}

.mpwl-panel--snapshot{
  position:relative;
}

.mpwl-panel--snapshot .mpwl-panel-head{
  margin-bottom:10px;
}

.mpwl-snapshot{
  gap:4px;
}

.mpwl-snapshot-row{
  padding:14px 0;
}

.mpwl-snapshot-row span{
  font-size:17px;
  color:#7390ac;
}

.mpwl-snapshot-row strong{
  font-size:21px;
  color:#173a63;
}

.mpwl-progress-chart{
  padding:8px 6px 4px;
}

.mpwl-progress-top{
  margin-bottom:20px;
}

.mpwl-progress-stat strong{
  font-size:32px;
  color:#123861;
}

.mpwl-progress-track-wrap{
  height:64px;
  margin:4px 2px 16px;
}

.mpwl-progress-track{
  top:22px;
  height:18px;
  background:linear-gradient(180deg,#eaf1f8 0%,#dfe9f4 100%);
  box-shadow:inset 0 1px 2px rgba(18,56,97,.08);
}

.mpwl-progress-fill{
  top:22px;
  height:18px;
  background:linear-gradient(90deg,#2f80ed 0%,#5fa8ff 55%,#88c0ff 100%);
  box-shadow:0 8px 18px rgba(47,128,237,.18);
}

.mpwl-progress-tick{
  top:13px;
  width:12px;
  height:36px;
  background:#c8dbef;
}

.mpwl-progress-tick.is-current{
  width:16px;
  height:44px;
  top:9px;
  background:#1d5ea8;
}

.mpwl-progress-meta{
  font-size:15px;
}

.mpwl-history-card{
  border-radius:22px;
  padding:18px;
}

.mpwl-history-card-head strong:first-child{
  font-size:16px;
}

.mpwl-history-card-head strong:last-child{
  font-size:18px;
}

.mpwl-history-card-grid{
  gap:12px 16px;
}

.mpwl-table thead th{
  background:#f4f8fd;
}

.mpwl-table tbody tr:nth-child(even) td{
  background:#fbfdff;
}

.mpwl-reminder-form{
  background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%);
  border:1px solid var(--mpwl-border-soft);
  border-radius:24px;
  padding:18px;
}

.mpwl-reminder-actions .button{
  min-width:240px;
}

@media (max-width:900px){
  .mpwl-header h2{font-size:36px}
  .mpwl-layout-2{grid-template-columns:1fr;gap:16px}
  .mpwl-layout-stack{gap:16px}
  .mpwl-metric__value{font-size:30px}
  .mpwl-card-grid--top .mpwl-metric__value{font-size:34px}
  .mpwl-metric__value.is-compact{font-size:24px}
  .mpwl-card-grid--top .mpwl-metric__value.is-compact{font-size:28px}
  .mpwl-metric__value.is-compact-xl{font-size:21px}
  .mpwl-card-grid--top .mpwl-metric__value.is-compact-xl{font-size:24px}
}

@media (max-width:640px){
  .mpwl-panel--filters{padding:18px}
  .mpwl-metric{min-height:134px}
  .mpwl-metric__value{font-size:28px}
  .mpwl-card-grid--top .mpwl-metric__value{font-size:30px}
  .mpwl-metric__value.is-compact{font-size:22px}
  .mpwl-card-grid--top .mpwl-metric__value.is-compact{font-size:24px}
  .mpwl-metric__value.is-compact-xl{font-size:19px}
  .mpwl-card-grid--top .mpwl-metric__value.is-compact-xl{font-size:21px}
  .mpwl-reminder-actions .button{min-width:0;width:100%}
}

.mpwl-clinic-note-panel{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border:1px solid #dce8f5;
}

.mpwl-clinic-note-panel::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg,#2f80ed 0%,#81b8ff 100%);
}

.mpwl-clinic-note-panel .mpwl-panel-head{
  margin-bottom:10px;
}

.mpwl-clinic-note-panel .mpwl-panel-head h3::before{
  content:"✦";
  display:inline-block;
  margin-right:8px;
  color:#2f80ed;
}

.mpwl-clinic-note-copy{
  background:linear-gradient(180deg,#f9fbff 0%,#f4f8fd 100%);
  border:1px solid #e2edf8;
  border-radius:18px;
  padding:18px 18px 16px;
  color:#21466f;
  line-height:1.75;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}

.mpwl-clinic-note-copy p:last-child{margin-bottom:0}

.mpwl-clinic-messages{display:grid;gap:14px}
.mpwl-clinic-message{display:grid;gap:8px}
.mpwl-clinic-message-title{font-weight:800;color:#1f3552;font-size:15px;letter-spacing:.01em}
.mpwl-clinic-message-meta{font-size:12px;color:#6f86a3;padding:0 4px}
.mpwl-admin-message-list{display:grid;gap:14px;margin-top:16px}
.mpwl-admin-message-item{padding:14px;border:1px solid #dbe7f3;border-radius:16px;background:#fbfdff}


/* v279 metric sizing hardening */
.mpwl-metric {
  min-width: 0;
}

.mpwl-metric__value {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  font-size: clamp(32px, 2.35vw, 50px) !important;
  line-height: .98 !important;
}

.mpwl-metric__value.is-compact,
.mpwl-metric.metric-bmi .mpwl-metric__value,
.mpwl-metric.metric-medication .mpwl-metric__value,
.mpwl-metric.metric-last-injection .mpwl-metric__value {
  font-size: clamp(20px, 1.6vw, 30px) !important;
  line-height: 1.05 !important;
}

.mpwl-metric__value.is-micro,
.mpwl-metric.metric-protein-goal .mpwl-metric__value,
.mpwl-metric.metric-calories .mpwl-metric__value {
  font-size: clamp(18px, 1.4vw, 26px) !important;
  line-height: 1.08 !important;
}

.mpwl-metric.metric-height .mpwl-metric__value,
.mpwl-metric.metric-units .mpwl-metric__value,
.mpwl-metric.metric-injections-week .mpwl-metric__value {
  font-size: clamp(24px, 1.9vw, 36px) !important;
  line-height: 1.02 !important;
}

@media (max-width: 900px) {
  .mpwl-metric__value {
    font-size: 34px !important;
  }

  .mpwl-metric__value.is-compact,
  .mpwl-metric.metric-bmi .mpwl-metric__value,
  .mpwl-metric.metric-medication .mpwl-metric__value,
  .mpwl-metric.metric-last-injection .mpwl-metric__value {
    font-size: 22px !important;
  }

  .mpwl-metric__value.is-micro,
  .mpwl-metric.metric-protein-goal .mpwl-metric__value,
  .mpwl-metric.metric-calories .mpwl-metric__value {
    font-size: 18px !important;
  }

  .mpwl-metric.metric-height .mpwl-metric__value,
  .mpwl-metric.metric-units .mpwl-metric__value,
  .mpwl-metric.metric-injections-week .mpwl-metric__value {
    font-size: 24px !important;
  }
}

/* Admin UI refresh v2.8.6 */
.mpwl-admin-patient-page{display:flex;flex-direction:column;gap:20px}
.mpwl-admin-patient-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px;border:1px solid #dbe5f1;border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.mpwl-admin-patient-hero h2{margin:6px 0 6px;font-size:30px;line-height:1.1;color:#173f73}
.mpwl-admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mpwl-admin-kpi,.mpwl-admin-summary-card{background:#fff;border:1px solid #dbe5f1;border-radius:18px;padding:16px 18px;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.mpwl-admin-kpi span,.mpwl-admin-summary-card span{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#7d91ab;font-weight:700;margin-bottom:8px}
.mpwl-admin-kpi strong{font-size:28px;line-height:1.1;color:#173f73}
.mpwl-admin-two-col{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.9fr);gap:20px;align-items:start}
.mpwl-admin-main-col,.mpwl-admin-side-col{display:flex;flex-direction:column;gap:20px}
.mpwl-panel--inner{padding:20px}
.mpwl-panel--inner .mpwl-panel-head{margin-bottom:16px}
.mpwl-panel--inner .mpwl-panel-head h3{margin:0;color:#173f73}
.mpwl-admin-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mpwl-admin-summary-card strong{font-size:22px;line-height:1.2;color:#173f73;word-break:break-word}
@media (max-width: 1180px){.mpwl-admin-kpis,.mpwl-admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mpwl-admin-two-col{grid-template-columns:1fr}}
@media (max-width: 782px){.mpwl-admin-patient-hero{flex-direction:column}.mpwl-admin-kpis,.mpwl-admin-summary-grid{grid-template-columns:1fr}}

/* v289 timeline + smart tracking */
.mpwl-timeline{position:relative;display:flex;flex-direction:column;gap:16px;padding-left:18px}
.mpwl-timeline:before{content:"";position:absolute;left:7px;top:4px;bottom:4px;width:2px;background:#d8e6f7}
.mpwl-timeline-item{position:relative}
.mpwl-timeline-dot{position:absolute;left:-18px;top:18px;width:14px;height:14px;border-radius:999px;background:#1f6fd6;border:3px solid #fff;box-shadow:0 0 0 2px #d8e6f7}
.mpwl-timeline-card{background:#fff;border:1px solid #dbe5f1;border-radius:18px;padding:16px 18px;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.mpwl-timeline-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.mpwl-timeline-top strong{font-size:18px;color:#173f73}
.mpwl-timeline-top span{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6f86a3}
.mpwl-timeline-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mpwl-timeline-grid small{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7d91ab;margin-bottom:4px}
.mpwl-timeline-grid b{display:block;font-size:15px;color:#17324d;word-break:break-word}
.mpwl-timeline-note{margin-top:12px;padding:12px 14px;background:#f7fbff;border:1px solid #dbe5f1;border-radius:14px;color:#304760}
@media (max-width: 900px){.mpwl-timeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.mpwl-timeline-grid{grid-template-columns:1fr}.mpwl-timeline-top strong{font-size:16px}}

/* v290 clinic message read tracking */
.mpwl-clinic-message-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.mpwl-status-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.mpwl-status-badge.is-unread{background:#e8f2ff;color:#0f5fc5}
.mpwl-status-badge.is-read{background:#eef6ee;color:#2c7a4b}
.mpwl-clinic-message.is-unread{border-color:#b8d4fb;background:#f8fbff}
.mpwl-clinic-message-preview{color:#4c6077;margin-top:10px;margin-bottom:12px}
.mpwl-clinic-open-form{margin-top:6px}


/* v294 stability + layout fixes */
.mpwl-header{align-items:flex-start;flex-wrap:wrap;}
.mpwl-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;max-width:100%;}
.mpwl-header-copy{min-width:280px;flex:1 1 520px;}
.mpwl-btn{white-space:nowrap;}
.mpwl-top-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);align-items:start;}
.mpwl-snapshot-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;}
.mpwl-snapshot-row strong{text-align:right;}
.mpwl-message-card{overflow:hidden;}
@media (max-width: 1200px){.mpwl-top-grid{grid-template-columns:1fr;}}
@media (max-width: 768px){.mpwl-header-actions{justify-content:flex-start;width:100%;}.mpwl-btn{width:100%;justify-content:center;}.mpwl-snapshot-row{grid-template-columns:1fr auto;}}

/* Exact layout rebuild v295 */
.mpwl-exact-app{display:block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:0;overflow:hidden;box-shadow:0 8px 26px rgba(15,23,42,.06)}
.mpwl-exact-sidebar{background:#fff;border-right:1px solid #e7edf6;padding:22px 16px;display:flex;flex-direction:column;justify-content:space-between;min-height:100%}
.mpwl-exact-brand{font-size:18px;font-weight:800;color:#1f57c3}.mpwl-exact-brand-sub{font-size:13px;color:#667085;margin-top:6px}
.mpwl-exact-nav{display:flex;flex-direction:column;gap:8px;margin-top:14px}.mpwl-exact-nav a{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:12px;border:1px solid transparent;color:#22324f;font-size:15px;font-weight:600;text-decoration:none}.mpwl-exact-nav a:hover,.mpwl-exact-nav a.is-active{background:#eef4ff;border-color:#dbe8ff;color:#1d4ed8}
.mpwl-exact-badge-count{background:#1d4ed8;color:#fff;border-radius:999px;min-width:18px;height:18px;line-height:18px;text-align:center;font-size:11px;padding:0 5px;margin-left:8px}.mpwl-exact-sidebar-bottom{display:flex;flex-direction:column;gap:14px;margin-top:24px}.mpwl-exact-help-button,.mpwl-exact-logout{display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:700}.mpwl-exact-help-button{background:#fff;border:1px solid #cfe0ff;color:#1d4ed8;padding:12px;border-radius:12px}.mpwl-exact-logout{color:#475569;padding:6px 10px}
.mpwl-exact-main{padding:20px 26px 28px;background:#f8fafc}.mpwl-exact-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.mpwl-exact-topbar h1{margin:0 0 6px;color:#162748;font-size:24px;font-weight:800;line-height:1.2}.mpwl-exact-topbar p{margin:0;color:#6b7a90;font-size:14px}.mpwl-exact-date{background:#fff;border:1px solid #e2e8f4;border-radius:12px;padding:12px 14px;color:#334155;font-weight:700;white-space:nowrap}
.mpwl-exact-grid-top{display:grid;grid-template-columns:1.15fr .9fr;gap:22px;margin-bottom:22px}.mpwl-exact-card{background:#fff;border:1px solid #e5ebf5;border-radius:16px;padding:18px;box-shadow:0 3px 12px rgba(15,23,42,.04)}.mpwl-exact-card h2,.mpwl-exact-card h3{margin:0;color:#162748;font-weight:800}.mpwl-exact-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.mpwl-exact-card-head a,.mpwl-exact-card-head span{color:#2563eb;text-decoration:none;font-size:13px;font-weight:700}
.mpwl-exact-progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mpwl-exact-progress-stats span{display:block;color:#4b5563;font-size:14px;margin-bottom:8px}.mpwl-exact-progress-stats strong{display:block;color:#111827;font-size:18px;line-height:1.2}.mpwl-exact-progress-stats strong.is-green{font-size:28px;color:#16a34a}.mpwl-exact-progress-stats em{display:block;font-style:normal;color:#667085;font-size:13px;margin-top:6px}.mpwl-exact-progressbar{height:22px;border-radius:7px;background:#e3e8f0;overflow:hidden;margin:18px 0 10px}.mpwl-exact-progressbar span{display:block;height:100%;background:#16a34a}.mpwl-exact-progress-meta{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#4b5563}.mpwl-exact-progress-meta strong{color:#16a34a}
.mpwl-exact-snapshot-list{display:flex;flex-direction:column}.mpwl-exact-snapshot-list div{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf2f8}.mpwl-exact-snapshot-list div:last-child{border-bottom:0;padding-bottom:0}.mpwl-exact-snapshot-list span{font-size:14px;color:#4b5563}.mpwl-exact-snapshot-list strong{font-size:16px;color:#111827}.mpwl-exact-snapshot-list strong.is-green{color:#16a34a}
.mpwl-exact-message-card{margin-bottom:22px}.mpwl-exact-message-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;color:#64748b;font-size:13px;margin-bottom:14px}.mpwl-exact-message-head h2{font-size:16px}.mpwl-exact-badge-new,.mpwl-exact-soft-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;margin-left:8px}.mpwl-exact-badge-new{background:#ef4444;color:#fff}.mpwl-exact-soft-badge{background:#e9f2ff;color:#2563eb;margin-left:0}.mpwl-exact-message-banner{background:#eaf3ff;border:1px solid #d5e6ff;border-radius:12px;padding:16px 18px;display:flex;justify-content:space-between;gap:18px;align-items:center}.mpwl-exact-message-banner strong{display:block;color:#1e3a8a;font-size:18px;margin-bottom:4px}.mpwl-exact-message-banner p{margin:0;color:#47607e}
.mpwl-exact-btn-primary,.mpwl-exact-btn-secondary{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:10px;font-weight:800;text-decoration:none;border:0;cursor:pointer;white-space:nowrap}.mpwl-exact-btn-primary{background:#1d66f2;color:#fff}.mpwl-exact-btn-secondary{background:#fff;border:1px solid #cfdcf7;color:#1d4ed8}.mpwl-exact-link-button{border:0;background:transparent;padding:0;color:#2563eb;font-weight:700;cursor:pointer}.mpwl-exact-btn-block{width:100%}
.mpwl-exact-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:22px}.mpwl-exact-stat-card span{display:block;color:#5a6780;font-size:14px;margin-bottom:12px}.mpwl-exact-stat-card strong{display:block;font-size:18px;color:#162748;margin-bottom:8px}.mpwl-exact-stat-card small{display:block;color:#64748b;font-size:13px}
.mpwl-exact-history-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;margin-bottom:22px}.mpwl-exact-table-wrap{overflow:auto}.mpwl-exact-table{width:100%;border-collapse:collapse}.mpwl-exact-table th,.mpwl-exact-table td{text-align:left;padding:12px 14px;border-bottom:1px solid #eef2f7;font-size:14px;color:#334155;vertical-align:top}.mpwl-exact-table th{font-size:13px;color:#6b7280;font-weight:800}.mpwl-exact-table td.is-green{color:#16a34a;font-weight:700}.mpwl-exact-table-footer{text-align:center;padding-top:12px}.mpwl-exact-table-footer a{color:#2563eb;font-weight:700;text-decoration:none}
.mpwl-exact-filter-card h3{margin:0 0 14px}.mpwl-exact-filter-card label{display:block;font-size:13px;font-weight:700;color:#475569;margin-bottom:12px}.mpwl-exact-filter-card select{display:block;width:100%;margin-top:6px;border:1px solid #d6dfec;border-radius:10px;background:#fff;padding:12px;font-size:14px;color:#334155}
.mpwl-exact-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mpwl-exact-footer-grid p{margin:0 0 14px;color:#5f6f86;font-size:14px}.mpwl-exact-footer-highlight{display:block;font-size:22px;color:#1d4ed8;margin-bottom:6px}.mpwl-exact-footer-sub{color:#5d6b84;font-size:14px;margin-bottom:18px}.mpwl-exact-tip-card strong{display:block;font-size:18px;color:#162748;margin:4px 0 10px}.mpwl-exact-tip-actions{display:flex;justify-content:space-between;gap:12px;align-items:center}.mpwl-exact-tip-actions a{text-decoration:none;color:#2563eb;font-weight:700}.mpwl-exact-phone{margin-top:16px;font-size:24px;font-weight:800;color:#162748}
@media (max-width:1180px){.mpwl-exact-app{grid-template-columns:1fr}.mpwl-exact-sidebar{border-right:0;border-bottom:1px solid #e7edf6}.mpwl-exact-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mpwl-exact-grid-top,.mpwl-exact-history-grid,.mpwl-exact-footer-grid{grid-template-columns:1fr}.mpwl-exact-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.mpwl-exact-main{padding:16px}.mpwl-exact-nav{grid-template-columns:1fr}.mpwl-exact-topbar,.mpwl-exact-message-banner,.mpwl-exact-progress-meta,.mpwl-exact-tip-actions{flex-direction:column;align-items:flex-start}.mpwl-exact-progress-stats,.mpwl-exact-stat-grid,.mpwl-exact-footer-grid{grid-template-columns:1fr}.mpwl-exact-date{width:100%}}


/* v296 patch: remove legacy sidebar and normalize select rendering */
.mpwl-exact-sidebar{display:none !important;}
.mpwl-exact-main{min-width:0;width:100%;}
.mpwl-exact-filter-card select,
.mpwl-exact-shell select{
  -webkit-appearance:none !important;
  appearance:none !important;
  background-color:#fff !important;
  background-image:linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%) !important;
  background-position:calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px) !important;
  background-size:6px 6px, 6px 6px !important;
  background-repeat:no-repeat !important;
  border:1px solid #d8e2f0 !important;
  border-radius:12px !important;
  color:#24324b !important;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1.35 !important;
  min-height:52px !important;
  height:52px !important;
  padding:14px 42px 14px 16px !important;
  text-indent:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
  white-space:nowrap !important;
}
.mpwl-exact-filter-card select option,
.mpwl-exact-shell select option{color:#24324b; background:#fff;}


/* v317 UI tune: one-line helper text, working progress bar, wider stat spacing */
.mpwl-exact-card-head{flex-wrap:nowrap;align-items:flex-start;}
.mpwl-exact-card-head h2,
.mpwl-exact-card-head h3{flex:1 1 auto;min-width:0;}
.mpwl-exact-card-head a,
.mpwl-exact-card-head span,
.mpwl-exact-soft-badge,
.mpwl-exact-badge-new,
.mpwl-exact-message-date{white-space:nowrap;flex-shrink:0;}
.mpwl-exact-card-head a{display:inline-flex;align-items:center;font-size:14px;line-height:1.1;}
.mpwl-exact-soft-badge{padding:6px 11px;line-height:1;}
.mpwl-exact-message-head{align-items:center;flex-wrap:nowrap;}
.mpwl-exact-message-date{font-size:12.5px;text-align:right;}
.mpwl-exact-progressbar span{min-width:14px;transition:width .25s ease;}
.mpwl-exact-stat-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin-bottom:24px;align-items:stretch;}
.mpwl-exact-stat-card{padding:20px 18px;min-height:126px;display:flex;flex-direction:column;justify-content:flex-start;}
.mpwl-exact-stat-card strong{line-height:1.2;}
@media (max-width: 1180px){
  .mpwl-exact-message-head{flex-wrap:wrap;align-items:flex-start;}
  .mpwl-exact-message-date{white-space:normal;text-align:left;}
}
@media (max-width: 767px){
  .mpwl-exact-card-head{flex-wrap:wrap;}
  .mpwl-exact-card-head a,
  .mpwl-exact-soft-badge,
  .mpwl-exact-message-date{white-space:normal;}
}


.mpwl-backlog-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ecfdf3;
  border: 1px solid #b7ebc9;
  color: #0f5132;
  font-weight: 600;
}

.mpwl-backlog-notice.is-error {
  background: #fff5f5;
  border-color: #f5b5b5;
  color: #8a1c1c;
}

.mpwl-backlog-card {
  margin-top: 22px;
  padding: 28px 34px 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #dde5ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mpwl-backlog-head {
  display: block;
  margin-bottom: 22px;
}

.mpwl-backlog-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.mpwl-backlog-head p {
  margin: 0;
  max-width: 980px;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.mpwl-backlog-table {
  display: grid;
  gap: 12px;
}

.mpwl-backlog-row {
  display: grid;
  grid-template-columns: 1.12fr 1.18fr .72fr .78fr 1.12fr auto;
  gap: 18px;
  align-items: end;
}

.mpwl-backlog-row--labels {
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #dbe4ef;
}

.mpwl-backlog-row--labels span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  padding: 0 4px;
}

.mpwl-backlog-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mpwl-backlog-row label > span {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  display: none;
}

.mpwl-backlog-row input,
.mpwl-backlog-row select {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid #cfd8e3;
  background: #fff;
  padding: 0 16px;
  color: #0f172a;
  font-size: 15px;
  box-shadow: none;
}

.mpwl-backlog-row input::placeholder {
  color: #6b7280;
}

.mpwl-backlog-remove-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.mpwl-backlog-remove-btn:hover,
.mpwl-backlog-remove-btn:focus {
  background: #f7f9fd;
  color: #233352;
  border-color: #b8c6dd;
}

.mpwl-backlog-actions {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #dbe4ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.mpwl-backlog-add-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.mpwl-backlog-add-btn:hover,
.mpwl-backlog-add-btn:focus {
  border-color: #b7c6d8;
  background: #f8fbff;
  color: #1f57d4;
}

.mpwl-backlog-add-icon {
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  margin-top: -1px;
}

.mpwl-backlog-save-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 276px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.mpwl-backlog-save-btn:hover,
.mpwl-backlog-save-btn:focus {
  background: #1f57d4;
  color: #fff;
}

@media (max-width: 980px) {
  .mpwl-backlog-card {
    padding: 22px;
  }

  .mpwl-backlog-row,
  .mpwl-backlog-row--labels {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .mpwl-backlog-row--labels {
    display: none;
  }

  .mpwl-backlog-row label > span {
    display: block;
  }

  .mpwl-backlog-notes {
    grid-column: 1 / -1;
  }

  .mpwl-backlog-remove-btn {
    grid-column: 1 / -1;
  }

  .mpwl-backlog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mpwl-backlog-save-btn,
  .mpwl-backlog-add-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .mpwl-backlog-card {
    padding: 18px;
  }

  .mpwl-backlog-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mpwl-backlog-head h3 {
    font-size: 22px;
  }
}

.mpwl-missed-inline {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: end;
}

.mpwl-missed-inline__copy h4 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #1c2b4a;
}

.mpwl-missed-inline__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5b6780;
}

.mpwl-missed-inline__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}

.mpwl-missed-inline__form label {
  display: block;
}

.mpwl-missed-inline__form span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.mpwl-missed-inline__form input,
.mpwl-missed-inline__form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  color: #1f2937;
}

.mpwl-missed-inline__notes {
  min-width: 0;
}

.mpwl-missed-inline__button {
  min-height: 48px;
  padding: 0 20px;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .mpwl-missed-inline {
    grid-template-columns: 1fr;
  }

  .mpwl-missed-inline__form {
    grid-template-columns: 1fr 1fr;
  }

  .mpwl-missed-inline__notes {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .mpwl-missed-inline__form {
    grid-template-columns: 1fr;
  }

  .mpwl-missed-inline__button {
    width: 100%;
  }
}
