@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* MehranFit v3.3 - full-width Persian dashboard */
#mehranfit-root,
#mehranfit-root *{
  box-sizing:border-box;
}
#mehranfit-root{
  direction:rtl;
  width:100vw;
  max-width:100vw;
  margin-right:calc(50% - 50vw);
  margin-left:calc(50% - 50vw);
  font-family:Vazirmatn,IRANSansX,IRANSans,YekanBakh,Tahoma,"Segoe UI",Arial,sans-serif;
  color:#111827;
  line-height:1.85;
  overflow-x:hidden;
}
body:has(#mehranfit-root) .wp-site-blocks,
body:has(#mehranfit-root) main,
body:has(#mehranfit-root) .entry-content,
body:has(#mehranfit-root) .wp-block-post-content{
  max-width:none !important;
}
#mehranfit-root input,
#mehranfit-root select,
#mehranfit-root textarea,
#mehranfit-root button{
  font-family:inherit;
}
.mfit-wrap{
  min-height:100vh;
  padding:28px 24px 110px;
  background:
    radial-gradient(circle at 88% -5%, rgba(14,165,233,.18), transparent 34rem),
    radial-gradient(circle at 5% 5%, rgba(16,185,129,.18), transparent 33rem),
    linear-gradient(180deg,#f8fbff 0%,#f2f6fb 100%);
}
.mfit-shell{
  width:min(1280px,100%);
  margin:0 auto;
}
.mfit-hero{
  position:relative;
  overflow:hidden;
  border-radius:34px;
  padding:30px;
  color:#fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(45,212,191,.22), transparent 18rem),
    linear-gradient(135deg,#08111f 0%,#111827 48%,#243449 100%);
  box-shadow:0 26px 80px rgba(15,23,42,.18);
}
.mfit-hero:before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  background:rgba(16,185,129,.15);
  left:-150px;
  top:-180px;
}
.mfit-hero-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.mfit-brand{
  display:flex;
  align-items:center;
  gap:18px;
}
.mfit-logo{
  width:72px;
  height:72px;
  border-radius:26px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.mfit-logo svg{
  width:48px;
  height:48px;
}
.mfit-hero h1{
  margin:0;
  font-size:36px;
  line-height:1.25;
  font-weight:950;
  letter-spacing:-1px;
}
.mfit-hero p{
  margin:7px 0 0;
  color:#dbeafe;
  font-size:15px;
}
.mfit-badge{
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px 15px;
  border-radius:999px;
  background:rgba(16,185,129,.16);
  border:1px solid rgba(52,211,153,.36);
  color:#dcfce7;
  font-weight:900;
  white-space:nowrap;
}
.mfit-badge:before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.15);
}
.mfit-tabs{
  position:sticky;
  top:12px;
  z-index:30;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin:18px 0;
  padding:8px;
  border-radius:28px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px);
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 18px 48px rgba(15,23,42,.08);
}
.mfit-tab{
  border:0;
  border-radius:20px;
  padding:13px 10px;
  background:transparent;
  color:#475467;
  font-weight:950;
  font-size:14px;
  cursor:pointer;
  transition:.16s ease;
}
.mfit-tab:hover{
  background:#f1f5f9;
}
.mfit-tab.active{
  background:#0f172a;
  color:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.16);
}
.mfit-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.95);
  border-radius:30px;
  padding:24px;
  margin:18px 0;
  box-shadow:0 18px 48px rgba(15,23,42,.065);
}
.mfit-card h2{
  margin:0 0 6px;
  font-size:25px;
  line-height:1.45;
  font-weight:950;
  letter-spacing:-.55px;
}
.mfit-card h3{
  margin:16px 0 10px;
  font-size:18px;
  font-weight:950;
}
.mfit-muted{
  color:#667085;
}
.mfit-grid{
  display:grid;
  grid-template-columns:1.18fr .82fr;
  gap:18px;
}
.mfit-grid.equal{
  grid-template-columns:1fr 1fr;
}
.mfit-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
  margin-top:16px;
}
.mfit-metric{
  min-height:122px;
  padding:16px;
  border-radius:24px;
  border:1px solid #e5e7eb;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.mfit-metric small{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
}
.mfit-metric strong{
  display:block;
  color:#0f172a;
  font-size:25px;
  line-height:1.55;
  font-weight:950;
}
.mfit-green{
  background:#ecfdf5;
  border-color:#a7f3d0;
}
.mfit-blue{
  background:#eff6ff;
  border-color:#bfdbfe;
}
.mfit-orange{
  background:#fff7ed;
  border-color:#fed7aa;
}
.mfit-purple{
  background:#f5f3ff;
  border-color:#ddd6fe;
}
.mfit-progress{
  margin-top:16px;
  padding:20px;
  border-radius:28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(16,185,129,.25), transparent 18rem),
    linear-gradient(135deg,#0f172a,#1e293b);
  color:#fff;
}
.mfit-progress-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
  font-weight:950;
  font-size:18px;
}
.mfit-bar{
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  overflow:hidden;
}
.mfit-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#10b981,#60a5fa);
  width:0%;
  transition:.3s ease;
}
.mfit-form{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.mfit-field{
  display:block;
  font-size:13px;
  font-weight:950;
  color:#344054;
}
.mfit-field input,
.mfit-field select,
.mfit-field textarea{
  width:100%;
  margin-top:7px;
  border:1px solid #dfe4ea;
  border-radius:18px;
  padding:13px 14px;
  background:#fff;
  color:#111827;
  font-size:15px;
  outline:none;
  transition:.16s ease;
}
.mfit-field textarea{
  min-height:110px;
  resize:vertical;
}
.mfit-field input:focus,
.mfit-field select:focus,
.mfit-field textarea:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 4px rgba(96,165,250,.14);
}
.mfit-full{
  grid-column:1/-1;
}
.mfit-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:18px;
}
.mfit-btn{
  border:0;
  border-radius:18px;
  padding:13px 20px;
  background:#0f172a;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(15,23,42,.16);
  transition:.16s ease;
}
.mfit-btn:hover{
  transform:translateY(-1px);
}
.mfit-btn.green{
  background:#10b981;
}
.mfit-btn.secondary{
  background:#e0e7ff;
  color:#172554;
  box-shadow:none;
}
.mfit-btn.red{
  background:#fee2e2;
  color:#b91c1c;
  box-shadow:none;
}
.mfit-chart-box{
  overflow:hidden;
  border:1px solid #e5e7eb;
  border-radius:28px;
  background:#fff;
  padding:12px;
  margin-top:14px;
}
.mfit-chart{
  width:100%;
  height:430px;
  display:block;
}
.mfit-legend{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:14px;
  color:#475467;
  font-weight:900;
  font-size:13px;
}
.mfit-dot{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:50%;
  margin-left:6px;
  vertical-align:middle;
}
.mfit-list{
  display:grid;
  gap:10px;
  margin-top:13px;
}
.mfit-item{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:20px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
}
.mfit-item b{
  display:block;
  font-size:14px;
}
.mfit-item small{
  display:block;
  color:#667085;
  font-size:12px;
  margin-top:3px;
}
.mfit-item button{
  border:0;
  border-radius:12px;
  padding:8px 11px;
  background:#fee2e2;
  color:#b91c1c;
  font-weight:950;
  cursor:pointer;
}
.mfit-table-wrap{
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:24px;
  background:#fff;
  margin-top:14px;
}
.mfit-table{
  width:100%;
  min-width:900px;
  border-collapse:collapse;
}
.mfit-table th,
.mfit-table td{
  padding:13px;
  border-bottom:1px solid #e5e7eb;
  text-align:right;
  font-size:13px;
}
.mfit-table th{
  background:#f8fafc;
  color:#667085;
  font-weight:950;
}
.mfit-note{
  border-radius:24px;
  padding:17px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e40af;
  font-weight:850;
}
.mfit-alert{
  border-radius:24px;
  padding:18px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-weight:850;
  margin:16px 0;
}
.mfit-login{
  direction:rtl;
  width:min(780px,calc(100vw - 32px));
  margin:60px auto;
  padding:34px;
  border-radius:30px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.10);
  font-family:Vazirmatn,IRANSansX,IRANSans,YekanBakh,Tahoma,Arial,sans-serif;
}
.mfit-login a{
  display:inline-block;
  background:#0f172a;
  color:#fff;
  text-decoration:none;
  border-radius:18px;
  padding:13px 22px;
  font-weight:950;
}
@media(max-width:1000px){
  .mfit-grid,
  .mfit-grid.equal{
    grid-template-columns:1fr;
  }
  .mfit-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mfit-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:640px){
  .mfit-wrap{
    padding:12px 10px 96px;
  }
  .mfit-hero{
    border-radius:28px;
    padding:20px;
  }
  .mfit-hero-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .mfit-logo{
    width:56px;
    height:56px;
    border-radius:20px;
  }
  .mfit-logo svg{
    width:38px;
    height:38px;
  }
  .mfit-hero h1{
    font-size:25px;
  }
  .mfit-hero p{
    font-size:13px;
  }
  .mfit-tabs{
    position:fixed;
    top:auto;
    bottom:10px;
    right:10px;
    left:10px;
    margin:0;
    z-index:60;
    border-radius:24px;
  }
  .mfit-tab{
    font-size:11px;
    padding:9px 3px;
    border-radius:16px;
  }
  .mfit-card{
    border-radius:24px;
    padding:16px;
  }
  .mfit-card h2{
    font-size:21px;
  }
  .mfit-metrics,
  .mfit-form{
    grid-template-columns:1fr;
  }
  .mfit-chart-box{
    overflow:auto;
  }
  .mfit-chart{
    min-width:760px;
    height:390px;
  }
}


.mfit-plan-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.mfit-plan-card{
  border:1px solid #e5e7eb;
  background:linear-gradient(180deg,#fff,#f8fafc);
  border-radius:24px;
  padding:16px;
  min-height:150px;
}
.mfit-plan-card.green{background:#ecfdf5;border-color:#a7f3d0}
.mfit-plan-card.blue{background:#eff6ff;border-color:#bfdbfe}
.mfit-plan-card.orange{background:#fff7ed;border-color:#fed7aa}
.mfit-plan-card.purple{background:#f5f3ff;border-color:#ddd6fe}
.mfit-plan-card small{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
}
.mfit-plan-card strong{
  display:block;
  margin-top:6px;
  color:#0f172a;
  font-size:22px;
  font-weight:950;
}
.mfit-plan-card p{
  margin:8px 0 0;
  color:#475467;
  font-size:13px;
}
.mfit-timeline{
  display:grid;
  gap:12px;
  margin-top:16px;
}
.mfit-time-row{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:12px;
  align-items:stretch;
}
.mfit-time{
  display:grid;
  place-items:center;
  text-align:center;
  border-radius:20px;
  background:#f1f5f9;
  border:1px solid #e5e7eb;
  color:#334155;
  font-weight:950;
}
.mfit-time-body{
  border-radius:20px;
  background:#fff;
  border:1px solid #e5e7eb;
  padding:14px;
}
.mfit-time-row.fruit .mfit-time-body{background:#fff7ed;border-color:#fed7aa}
.mfit-time-body h3{margin:0 0 4px;font-size:16px}
.mfit-time-body p{margin:0;color:#667085}
.mfit-day-checks{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  margin-top:8px;
}
.mfit-day-checks label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:16px;
  padding:10px 6px;
  font-size:12px;
  font-weight:900;
}
@media(max-width:1000px){
  .mfit-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mfit-day-checks{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:640px){
  .mfit-plan-grid{grid-template-columns:1fr}
  .mfit-time-row{grid-template-columns:1fr}
  .mfit-time{place-items:start;padding:10px 12px}
  .mfit-day-checks{grid-template-columns:repeat(2,1fr)}
}


.mfit-schedule-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  margin-top:10px;
}
.mfit-schedule-day{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:18px;
  padding:12px;
  display:grid;
  gap:8px;
}
.mfit-schedule-day label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-weight:950;
  font-size:13px;
  color:#344054;
}
.mfit-schedule-day input[type="time"]{
  width:100%;
  border:1px solid #dfe4ea;
  border-radius:14px;
  padding:9px;
  text-align:center;
  font-weight:900;
}
.mfit-schedule-day:has(input[type="checkbox"]:checked){
  background:#ecfdf5;
  border-color:#a7f3d0;
}
@media(max-width:1000px){
  .mfit-schedule-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:640px){
  .mfit-schedule-grid{grid-template-columns:repeat(2,1fr)}
}


.mfit-auth-wrap{
  min-height:100vh;
  width:100%;
  display:grid;
  place-items:center;
  padding:32px 16px;
  background:
    radial-gradient(circle at 85% 0%, rgba(14,165,233,.20), transparent 34rem),
    radial-gradient(circle at 10% 5%, rgba(16,185,129,.18), transparent 32rem),
    linear-gradient(180deg,#f8fbff,#f2f6fb);
}
.mfit-auth-card{
  width:min(980px,100%);
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:0;
  overflow:hidden;
  border-radius:34px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 30px 90px rgba(15,23,42,.14);
}
.mfit-auth-visual{
  position:relative;
  overflow:hidden;
  min-height:520px;
  padding:34px;
  color:#fff;
  background:
    radial-gradient(circle at 20% 15%, rgba(20,184,166,.33), transparent 18rem),
    linear-gradient(135deg,#08111f,#142033 55%,#23364d);
}
.mfit-auth-visual:after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  border-radius:50%;
  left:-110px;
  bottom:-130px;
  background:rgba(16,185,129,.18);
}
.mfit-auth-logo{
  width:76px;
  height:76px;
  border-radius:28px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  position:relative;
  z-index:1;
}
.mfit-auth-logo svg{width:50px;height:50px}
.mfit-auth-visual h1{
  position:relative;
  z-index:1;
  margin:28px 0 10px;
  font-size:38px;
  line-height:1.35;
  font-weight:950;
}
.mfit-auth-visual p{
  position:relative;
  z-index:1;
  color:#dbeafe;
  font-size:16px;
  margin:0;
}
.mfit-auth-points{
  position:relative;
  z-index:1;
  display:grid;
  gap:12px;
  margin-top:32px;
}
.mfit-auth-point{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  font-weight:850;
}
.mfit-auth-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.16);
}
.mfit-auth-form{
  padding:38px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.mfit-auth-form h2{
  margin:0 0 8px;
  font-size:30px;
  font-weight:950;
}
.mfit-auth-form p{
  margin:0 0 24px;
  color:#667085;
}
.mfit-auth-field{
  display:block;
  margin-bottom:14px;
  color:#344054;
  font-weight:950;
}
.mfit-auth-field input{
  width:100%;
  margin-top:7px;
  border:1px solid #dfe4ea;
  border-radius:18px;
  padding:14px;
  font-size:16px;
  outline:none;
  background:#fff;
}
.mfit-auth-field input:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 4px rgba(96,165,250,.14);
}
.mfit-auth-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:4px 0 18px;
  color:#475467;
  font-size:13px;
}
.mfit-auth-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:850;
}
.mfit-auth-error{
  display:none;
  margin:12px 0;
  padding:12px 14px;
  border-radius:18px;
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  font-weight:850;
}
.mfit-auth-error.show{display:block}
.mfit-auth-btn{
  width:100%;
  border:0;
  border-radius:18px;
  padding:15px 18px;
  background:#0f172a;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  font-size:16px;
  box-shadow:0 14px 28px rgba(15,23,42,.18);
}
.mfit-auth-help{
  margin-top:18px !important;
  font-size:13px;
}
.mfit-userbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:14px 0 0;
  padding:10px 12px;
  border-radius:20px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  color:#dbeafe;
  position:relative;
}
.mfit-logout-btn{
  border:0;
  border-radius:14px;
  padding:8px 12px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
@media(max-width:800px){
  .mfit-auth-card{grid-template-columns:1fr}
  .mfit-auth-visual{min-height:auto}
}
@media(max-width:520px){
  .mfit-auth-wrap{padding:14px}
  .mfit-auth-card{border-radius:28px}
  .mfit-auth-visual,.mfit-auth-form{padding:24px}
  .mfit-auth-visual h1{font-size:29px}
  .mfit-auth-form h2{font-size:25px}
}


/* v3.9: hide the WordPress page title on the app screen */
body:has(#mehranfit-root) .wp-block-post-title,
body:has(#mehranfit-root) .entry-title,
body:has(#mehranfit-root) h1.wp-block-post-title,
body:has(#mehranfit-root) header.entry-header,
body:has(#mehranfit-root) .page-title{
  display:none !important;
}
body:has(#mehranfit-root) .site-main,
body:has(#mehranfit-root) .wp-site-blocks{
  padding-top:0 !important;
  margin-top:0 !important;
}


/* v4.0 food planning */
.mfit-food-split{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.mfit-food-picker{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.mfit-food-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:11px 12px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  font-weight:850;
  font-size:13px;
}
.mfit-food-option small{
  color:#667085;
  font-weight:800;
}
.mfit-food-option input{
  transform:scale(1.05);
}
.mfit-food-option.liked{
  background:#ecfdf5;
  border-color:#a7f3d0;
}
.mfit-food-option.blocked{
  background:#fff7ed;
  border-color:#fed7aa;
}
.mfit-food-filter{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.mfit-chip{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  color:#475467;
  cursor:pointer;
}
.mfit-chip.active{
  background:#0f172a;
  color:#fff;
}
.mfit-calorie-card{
  border-radius:24px;
  padding:16px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:#fff;
  margin-top:14px;
}
.mfit-calorie-card small{
  color:#dbeafe;
  font-weight:900;
}
.mfit-calorie-card strong{
  display:block;
  font-size:28px;
  margin-top:5px;
}
.mfit-week-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(230px,1fr));
  gap:12px;
  overflow:auto;
  padding-bottom:8px;
}
.mfit-day-plan{
  border:1px solid #e5e7eb;
  border-radius:24px;
  background:#fff;
  padding:14px;
  min-width:230px;
}
.mfit-day-plan h3{
  margin:0 0 6px;
}
.mfit-day-plan .mfit-day-type{
  color:#667085;
  font-size:12px;
  font-weight:900;
}
.mfit-meal-select{
  display:grid;
  gap:6px;
  margin-top:12px;
}
.mfit-meal-select label{
  font-size:12px;
  font-weight:950;
  color:#344054;
}
.mfit-meal-select select{
  width:100%;
  border:1px solid #dfe4ea;
  border-radius:14px;
  padding:10px;
  font-family:inherit;
}
.mfit-day-total{
  margin-top:12px;
  padding:10px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  font-weight:950;
  color:#334155;
}
.mfit-day-total.good{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#065f46;
}
.mfit-day-total.warn{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}
.mfit-food-card-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.mfit-meal-card{
  border:1px solid #e5e7eb;
  border-radius:22px;
  background:#fff;
  padding:14px;
}
.mfit-meal-card h3{
  margin:0;
  font-size:15px;
}
.mfit-meal-card p{
  margin:7px 0 0;
  color:#667085;
  font-size:12px;
}
.mfit-meal-card strong{
  display:block;
  margin-top:10px;
  color:#0f172a;
}
@media(max-width:1100px){
  .mfit-food-split{grid-template-columns:1fr}
  .mfit-food-card-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .mfit-food-picker{grid-template-columns:1fr}
  .mfit-food-card-list{grid-template-columns:1fr}
}


/* v4.1 food list cleanup */
.mfit-food-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
}
.mfit-food-count{
  color:#667085;
  font-weight:900;
  font-size:13px;
}
.mfit-food-picker.large{
  grid-template-columns:repeat(4,minmax(0,1fr));
  max-height:520px;
  overflow:auto;
  padding-left:6px;
}
@media(max-width:1200px){
  .mfit-food-picker.large{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .mfit-food-picker.large{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .mfit-food-picker.large{grid-template-columns:1fr}
}


/* v4.2 portions, automatic weekly plan, shopping list */
.mfit-meal-detail{
  margin-top:8px;
  padding:10px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#475467;
  font-size:12px;
  line-height:1.8;
}
.mfit-meal-detail strong{
  color:#0f172a;
}
.mfit-portion-list{
  margin:6px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:3px;
}
.mfit-portion-list li{
  display:flex;
  justify-content:space-between;
  gap:8px;
  border-bottom:1px dashed #e5e7eb;
  padding-bottom:3px;
}
.mfit-plan-tools{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:end;
}
.mfit-shopping-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.mfit-shopping-card{
  border:1px solid #e5e7eb;
  border-radius:22px;
  background:#fff;
  padding:14px;
}
.mfit-shopping-card h3{
  margin:0 0 10px;
  font-size:15px;
}
.mfit-shopping-card ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.mfit-shopping-card li{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:13px;
  color:#475467;
  border-bottom:1px dashed #eef2f7;
  padding-bottom:7px;
}
.mfit-shopping-card li strong{
  color:#0f172a;
}
.mfit-small-warning{
  margin-top:8px;
  padding:8px 10px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:12px;
  font-weight:850;
}
@media(max-width:1100px){
  .mfit-shopping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .mfit-plan-tools{grid-template-columns:1fr}
  .mfit-shopping-grid{grid-template-columns:1fr}
}


/* v4.7 supplements */
.mfit-supp-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.mfit-supp-card{
  border:1px solid #e5e7eb;
  border-radius:22px;
  background:#fff;
  padding:15px;
}
.mfit-supp-card label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:950;
  color:#0f172a;
}
.mfit-supp-card p{
  margin:8px 0 0;
  color:#667085;
  font-size:13px;
}
.mfit-supp-line{
  margin-top:8px;
  padding:8px 10px;
  border-radius:14px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e40af;
  font-size:12px;
  font-weight:850;
}
@media(max-width:640px){
  .mfit-supp-grid{grid-template-columns:1fr}
}


/* v4.8 human portions and auto status */
.mfit-auto-note{
  margin-top:8px;
  padding:8px 10px;
  border-radius:14px;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#065f46;
  font-size:12px;
  font-weight:850;
}
.mfit-info-note{
  margin-top:8px;
  padding:8px 10px;
  border-radius:14px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e40af;
  font-size:12px;
  font-weight:850;
}
.mfit-day-total.auto-good{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#065f46;
}
.mfit-day-total.auto-soft{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e40af;
}
.mfit-day-total.manual-warn{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}


/* v5.0 audited nutrition notes */
.mfit-source-note{
  margin-top:14px;
  padding:14px 16px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#475467;
  font-size:13px;
  line-height:1.9;
}
.mfit-source-note strong{
  color:#0f172a;
}
.mfit-meal-source{
  margin-top:6px;
  color:#64748b;
  font-size:11px;
  font-weight:850;
}
