
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

 :root{
  --green:#4B3BC4;
  --green-dark:#302389;
  --green-soft:#EEEAFE;
  --plum:#4B3BC4;
  --plum-soft:#EEEAFE;
  --gold:#FFB65C;
  --teal:#00A7A0;
  --coral:#FF6B6B;
  --coral-soft:#FFF0EE;
  --ink:#211C36;
  --muted:#746F86;
  --line:#E6E0F3;
  --bg:#FFF9F2;
  --white:#fff;
  --shadow:0 20px 55px rgba(75,59,196,.16);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:'Vazirmatn',Tahoma,sans-serif;color:var(--ink);direction:rtl}
.product-app{min-height:100vh;padding:32px 20px}
.product-screen{display:none;max-width:1180px;margin:0 auto}
.product-screen.is-active{display:block;animation:fadeUp .35s ease}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.welcome-layout,.screen-card,.dashboard-shell{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}
.welcome-layout{min-height:690px;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden}
.welcome-copy{padding:72px 66px;display:flex;flex-direction:column;justify-content:center}
.welcome-copy h1{font-size:44px;line-height:1.45;margin:20px 0 12px;font-weight:800}
.welcome-copy>p{font-size:18px;color:var(--muted);line-height:2}
.brand-badge,.brand-mini,.eyebrow{color:var(--green);font-weight:800}
.trust-grid{display:grid;gap:12px;margin:26px 0}
.trust-item{padding:14px 16px;background:#f8fbfa;border-radius:14px}
.trust-item span{color:var(--green);font-weight:bold;margin-left:8px}
.button-stack{display:grid;gap:12px;max-width:390px}
.welcome-visual{background:linear-gradient(145deg,#FFF0ED,#F8EAF3 55%,#E8F7F5);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;text-align:center}
.visual-circle{width:220px;height:220px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:110px;box-shadow:var(--shadow)}
.screen-card,.dashboard-shell{padding:36px;margin:auto}
.narrow-card{max-width:560px}.wide-card{max-width:920px}.extra-wide-card{max-width:1120px}
.screen-topbar,.dashboard-header,.navigation-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.screen-card h2,.dashboard-shell h2{font-size:30px;margin:20px 0 8px}
.muted{color:var(--muted)}
.primary-btn,.secondary-btn,.light-btn,.small-btn,.dashboard-tile,.auth-tab,.meal-tab,.icon-btn{
  border-radius:14px!important;font-family:inherit!important;font-weight:700!important;min-height:48px
}
.primary-btn{background:var(--green)!important;color:#fff!important;border:1px solid var(--green)!important;padding:0 26px!important}
.primary-btn:hover{background:var(--green-dark)!important}
.secondary-btn{background:#fff!important;color:var(--green)!important;border:1px solid #b8d7ca!important;padding:0 26px!important}
.light-btn{background:#fff!important;color:var(--green)!important;border:none!important;padding:0 24px!important}
.icon-btn{width:46px;background:#fff!important;border:1px solid var(--line)!important}
.text-link{display:block;text-align:center;color:var(--green);margin-top:16px}
.auth-tabs,.meal-tabs,.segment-row{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.auth-tab,.meal-tab{background:#f3f7f5!important;border:1px solid transparent!important}
.auth-tab.is-selected,.meal-tab.is-selected{background:var(--green-soft)!important;border-color:var(--green)!important;color:var(--green)!important}
.form-control,.selectize-input{border-radius:14px!important;border-color:#d5e2dd!important;min-height:48px!important;box-shadow:none!important}
.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:26px}
.plan-card{position:relative;border:1px solid var(--line);border-radius:22px;padding:26px;background:#fff}
.plan-card.is-featured{border:2px solid var(--green);background:linear-gradient(180deg,#f8fffb,#fff)}
.plan-ribbon{position:absolute;top:16px;left:16px;background:var(--green);color:#fff;padding:6px 10px;border-radius:10px;font-size:12px}
.price{font-size:24px;font-weight:800;margin:12px 0}
.plan-card li{margin:10px 0;color:#435e55}
.secure-note,.info-banner{margin-top:22px;padding:15px;border-radius:14px;background:#f3f8f6;color:var(--green-dark)}
.dashboard-shell{max-width:980px}
.user-chip{padding:10px 14px;background:#f3f7f5;border-radius:999px}
.active-plan-card{margin:26px 0;background:linear-gradient(135deg,var(--green),var(--green-dark));color:#fff;border-radius:22px;padding:26px;display:flex;align-items:center;justify-content:space-between}
.dashboard-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.dashboard-tile{height:110px!important;background:#fff!important;border:1px solid var(--line)!important;color:var(--ink)!important;box-shadow:0 8px 20px rgba(20,70,55,.05)}
.progress-row{display:flex;gap:8px;margin-bottom:22px}
.progress-row span{height:5px;flex:1;border-radius:99px;background:#dfe8e4}
.progress-row .active,.progress-row .done{background:var(--green)}
.goal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:28px 0}
.choice-card{border:1px solid var(--line);border-radius:18px;min-height:142px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:30px;cursor:pointer}
.choice-card h3{font-size:15px;margin:0}
.selectable.is-selected{border-color:var(--green)!important;background:var(--green-soft)!important;box-shadow:inset 0 0 0 1px var(--green)}
.slider-field{margin:28px 0}
.irs--shiny .irs-bar,.irs--shiny .irs-single{background:var(--green)!important;border-color:var(--green)!important}
.irs--shiny .irs-handle{border-color:var(--green)!important}
.segment{flex:1;min-width:140px;padding:14px;border:1px solid var(--line);border-radius:14px;text-align:center;cursor:pointer}
.navigation-row{margin-top:28px}
.meal-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}
.meal-tab{white-space:nowrap}
.food-selection-panel{background:#fafcfb;border:1px solid var(--line);border-radius:20px;padding:24px}
.food-section{margin-top:24px}
.food-chip-row{display:flex;flex-wrap:wrap;gap:10px}
.food-chip{padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}
.review-list{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-top:22px}
.review-row{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:17px 20px;border-bottom:1px solid var(--line)}
.review-row:last-child{border-bottom:0}
.daily-plan-timeline{display:grid;gap:12px;margin-top:24px}
.timeline-item{display:grid;grid-template-columns:50px 1fr;gap:16px;padding:16px;border:1px solid var(--line);border-radius:16px}
.timeline-item>span{font-size:28px}.timeline-item h3{margin:0}.timeline-item p{margin:4px 0;color:var(--muted)}
.summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}
.summary-strip div{padding:16px;border-radius:14px;background:var(--green-soft);display:grid;gap:5px}
.day-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}
.day-card{padding:20px;border:1px solid var(--line);border-radius:18px;min-height:150px}
.day-card.current{border:2px solid var(--green)}.day-card.completed{background:var(--green-soft)}.day-card.locked{opacity:.55}
.small-btn{min-height:38px!important;background:var(--green)!important;color:#fff!important;border:0!important}
.discount-preview{margin-top:20px;padding:20px;border:2px dashed #95c7b2;border-radius:16px;text-align:center;color:var(--green);font-weight:800}
.tracking-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.chart-placeholder{margin-top:26px;padding:24px;border:1px solid var(--line);border-radius:18px}
.fake-chart{height:190px;display:flex;align-items:flex-end;gap:18px;padding:20px;background:#f8fbfa;border-radius:14px}
.fake-chart span{flex:1;background:linear-gradient(var(--green),#8fd0b5);border-radius:9px 9px 0 0}

@media(max-width:850px){
  .product-app{padding:12px}
  .welcome-layout{grid-template-columns:1fr}.welcome-visual{min-height:260px}.welcome-copy{padding:36px 24px}.welcome-copy h1{font-size:31px}
  .screen-card,.dashboard-shell{padding:22px;border-radius:20px}
  .plan-grid,.goal-grid,.dashboard-grid,.summary-strip,.day-grid,.tracking-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .plan-grid,.goal-grid,.dashboard-grid,.summary-strip,.day-grid,.tracking-grid{grid-template-columns:1fr}
  .review-row{grid-template-columns:1fr;gap:5px}
  .navigation-row{flex-direction:column-reverse}.navigation-row .btn{width:100%}
}

.eligibility-intro{margin-top:24px}
.eligibility-intro h3{margin-bottom:6px}
.eligibility-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}
.eligibility-btn{min-height:74px!important;border-radius:16px!important;background:#fff!important;border:1px solid var(--line)!important;color:var(--ink)!important;font-weight:800!important}
.eligibility-btn:hover{border-color:var(--plum)!important;background:var(--plum-soft)!important}
.eligibility-other{grid-column:1/-1}
.compact-login{max-width:none}
.brand-mark-placeholder{color:var(--plum);font-weight:800}
.notice-card{text-align:center}
.notice-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:10px auto 14px;background:var(--plum-soft);color:var(--plum);font-size:34px;font-weight:800}
.goal-grid-compact{grid-template-columns:repeat(4,1fr)}
.special-goal{border-color:#D6C7D1}
.pregnancy-note{padding:14px;border-radius:14px;background:var(--plum-soft);color:var(--plum);margin:12px 0}
.result-tabs{display:flex;gap:8px;overflow-x:auto;margin:22px 0;padding-bottom:6px}
.result-tab{white-space:nowrap;min-height:44px!important;border-radius:13px!important;background:#F4F2EF!important;border:1px solid transparent!important;font-weight:700!important}
.result-tab.is-selected{background:var(--plum-soft)!important;border-color:var(--plum)!important;color:var(--plum)!important}
.result-panel{display:none}
.result-panel.is-active{display:block;animation:fadeUp .25s ease}
.table-wrap{overflow-x:auto;margin-top:18px}
.data-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.data-table th{background:var(--green-soft);font-weight:800}
.data-table tr:last-child td{border-bottom:0}
.advice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.advice-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.advice-card h4{margin-top:0;color:var(--plum)}
@media(max-width:850px){.goal-grid-compact{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.eligibility-grid,.goal-grid-compact,.advice-grid{grid-template-columns:1fr}.eligibility-other{grid-column:auto}}

/* Brighter signature brand palette */
body{background:radial-gradient(circle at 12% 8%,#FFE4DD 0,transparent 28%),radial-gradient(circle at 88% 18%,#DDF5F2 0,transparent 25%),var(--bg)}
.primary-btn{background:linear-gradient(135deg,var(--plum),#9A3E78)!important;box-shadow:0 10px 24px rgba(107,45,92,.24)!important}
.primary-btn:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(107,45,92,.32)!important}
.secondary-btn{border-color:var(--teal)!important;color:var(--teal)!important;background:#fff!important}
.brand-badge{background:linear-gradient(135deg,var(--coral-soft),var(--plum-soft));color:var(--plum);border:1px solid #F3CFC8}
.visual-circle{background:linear-gradient(145deg,#FFB59F,#F26B5E 42%,#8D3C75 100%)!important;box-shadow:0 25px 65px rgba(242,107,94,.30)!important;color:white!important}
.trust-item span{background:var(--teal)!important;color:#fff!important}
.hero-start{margin-top:24px;min-width:180px}
.eligibility-card-shell{position:relative;overflow:hidden}
.eligibility-card-shell:before{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:#FFE2D9;left:-70px;top:-70px;opacity:.8}
.eligibility-main-grid{position:relative}
.eligibility-btn{font-size:17px!important;box-shadow:0 8px 18px rgba(107,45,92,.07)!important}
.eligibility-btn:hover{border-color:var(--coral)!important;background:var(--coral-soft)!important;color:var(--plum)!important;transform:translateY(-2px)}
.disease-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:22px 0}
.disease-option{min-height:62px!important;border:1px solid var(--line)!important;border-radius:16px!important;background:#fff!important;color:var(--ink)!important;font-weight:800!important}
.disease-option:hover{border-color:var(--coral)!important;background:var(--coral-soft)!important;transform:translateY(-1px)}
.supported-condition{border-right:5px solid var(--teal)!important}
.unsupported-condition{border-right:5px solid #D99AAD!important}
.other-disease-wrap{margin-top:18px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#FFF4EF,#F9EDF4);border:1px solid var(--line)}
.meal-tab.is-selected,.result-tab.is-selected{background:linear-gradient(135deg,var(--plum),#984277)!important;color:white!important;border-color:transparent!important}
.food-chip.is-selected,.segment.is-selected,.choice-card.is-selected{background:var(--coral-soft)!important;border-color:var(--coral)!important;color:var(--plum)!important}
@media(max-width:560px){.disease-grid{grid-template-columns:1fr}}

/* v4 brand palette overrides */
body{background:radial-gradient(circle at 10% 8%,rgba(255,107,107,.18) 0,transparent 30%),radial-gradient(circle at 90% 14%,rgba(0,167,160,.16) 0,transparent 28%),linear-gradient(180deg,#FFF9F2,#F8F6FF)!important}
.primary-btn{background:linear-gradient(135deg,#4B3BC4,#6D5DE7)!important;border-color:#4B3BC4!important;color:#fff!important;box-shadow:0 12px 28px rgba(75,59,196,.28)!important}
.primary-btn:hover{background:linear-gradient(135deg,#3A2BAA,#5C4DD5)!important}
.secondary-btn{background:#fff!important;color:#4B3BC4!important;border-color:#BDB5EF!important}
.welcome-visual{background:linear-gradient(145deg,#FFF0E9 0%,#EEEAFE 56%,#E4FBF8 100%)!important}
.visual-circle{background:linear-gradient(145deg,#FFB65C 0%,#FF6B6B 40%,#4B3BC4 100%)!important;box-shadow:0 28px 70px rgba(75,59,196,.28)!important}
.brand-badge{background:linear-gradient(135deg,#FFF0EE,#EEEAFE)!important;color:#4B3BC4!important;border-color:#F0CFCB!important}
.trust-item{background:#FBFAFF!important}.trust-item span{background:#00A7A0!important;color:#fff!important}
.eligibility-btn:hover,.disease-option:hover{border-color:#FF6B6B!important;background:#FFF0EE!important;color:#4B3BC4!important}
.supported-condition{border-right:5px solid #00A7A0!important}.unsupported-condition{border-right:5px solid #FF8C8C!important}
.meal-tab.is-selected,.result-tab.is-selected{background:linear-gradient(135deg,#4B3BC4,#6D5DE7)!important;color:#fff!important;border-color:transparent!important}
.food-chip.is-selected,.segment.is-selected,.choice-card.is-selected{background:#FFF0EE!important;border-color:#FF6B6B!important;color:#4B3BC4!important}
.active-plan-card{background:linear-gradient(135deg,#4B3BC4,#302389)!important}
.summary-strip div{background:#EEEAFE!important}


/* =========================================================
   V6 — GRAYSCALE BRAND OVERRIDE
   Keeps the previously approved layout, font, spacing and flow.
   Only visual palette + requested persistent navigation are added.
   ========================================================= */
:root{
  --green:#111111 !important;
  --green-dark:#000000 !important;
  --green-soft:#F2F2F0 !important;
  --plum:#111111 !important;
  --plum-soft:#F2F2F0 !important;
  --gold:#CFCFCB !important;
  --teal:#444444 !important;
  --coral:#666666 !important;
  --coral-soft:#F5F5F3 !important;
  --ink:#171717 !important;
  --muted:#6F6F6B !important;
  --line:#E4E4E0 !important;
  --bg:#F7F7F5 !important;
  --white:#FFFFFF !important;
  --shadow:0 18px 48px rgba(0,0,0,.08) !important;
}

body{
  background:var(--bg) !important;
  font-family:'Vazirmatn',Tahoma,sans-serif !important;
  padding-top:72px;
  padding-bottom:84px;
}

.product-app{
  padding-top:22px !important;
  padding-bottom:30px !important;
}

/* Restore the old welcome composition, only grayscale */
.welcome-visual{
  background:linear-gradient(145deg,#F3F3F1 0%,#E8E8E5 55%,#DCDCD8 100%) !important;
}
.visual-circle{
  background:linear-gradient(145deg,#FFFFFF 0%,#F0F0ED 55%,#D8D8D4 100%) !important;
  color:#111 !important;
  box-shadow:0 24px 58px rgba(0,0,0,.11) !important;
}
.brand-badge{
  background:#F2F2F0 !important;
  color:#111 !important;
  border-color:#DEDEDA !important;
}
.trust-item{background:#F7F7F5 !important}
.trust-item span{
  background:#111 !important;
  color:#fff !important;
}
.primary-btn{
  background:#111 !important;
  border-color:#111 !important;
  color:#fff !important;
  box-shadow:none !important;
}
.primary-btn:hover{background:#000 !important}
.secondary-btn{
  background:#fff !important;
  color:#111 !important;
  border-color:#BFBFBA !important;
}
.light-btn{
  background:#fff !important;
  color:#111 !important;
}
.auth-tab.is-selected,.meal-tab.is-selected,.result-tab.is-selected{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}
.food-chip.is-selected,.segment.is-selected,.choice-card.is-selected,.selectable.is-selected{
  background:#F0F0ED !important;
  border-color:#111 !important;
  color:#111 !important;
  box-shadow:inset 0 0 0 1px #111 !important;
}
.eligibility-btn:hover,.disease-option:hover{
  border-color:#111 !important;
  background:#F2F2F0 !important;
  color:#111 !important;
}
.supported-condition{border-right:5px solid #555 !important}
.unsupported-condition{border-right:5px solid #B8B8B4 !important}
.active-plan-card{
  background:linear-gradient(135deg,#222,#000) !important;
}
.plan-card.is-featured{
  border-color:#111 !important;
  background:linear-gradient(180deg,#FAFAF8,#fff) !important;
}
.plan-ribbon{
  background:#111 !important;
}
.summary-strip div,
.day-card.completed,
.notice-icon,
.pregnancy-note{
  background:#F1F1EE !important;
  color:#111 !important;
}
.secure-note,.info-banner{
  background:#F2F2F0 !important;
  color:#292929 !important;
}
.discount-preview{
  border-color:#8E8E89 !important;
  color:#111 !important;
}
.fake-chart span{
  background:linear-gradient(#111,#9A9A95) !important;
}

/* Persistent top bar */
.global-topbar{
  position:fixed;
  top:0; left:0; right:0;
  height:68px;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  direction:rtl;
  padding:0 24px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.global-brand-mini{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:#171717;
}
.global-brand-star{
  width:32px;height:32px;
  border:1px solid #111;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.global-account-trigger{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:4px 6px !important;
}
.global-account-trigger .btn-default{
  border:0 !important;
}
.global-account-trigger > span{
  display:flex;
  align-items:center;
  gap:9px;
}
.global-user-name{font-weight:700}
.global-user-avatar{
  width:34px;height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#111;
  color:#fff;
}
.global-hamburger{font-size:20px}

/* Left drawer */
.account-drawer-overlay{
  position:fixed;
  inset:0;
  z-index:1190;
  background:rgba(0,0,0,.28);
  display:none;
}
.account-drawer-overlay.is-open{display:block}
.account-drawer{
  position:fixed;
  top:0;bottom:0;left:0;
  width:min(390px,88vw);
  z-index:1200;
  background:#fff;
  border-right:1px solid var(--line);
  box-shadow:18px 0 60px rgba(0,0,0,.14);
  transform:translateX(-103%);
  transition:transform .24s ease;
  padding:24px 22px;
  overflow-y:auto;
}
.account-drawer.is-open{transform:translateX(0)}
.account-drawer-header{
  text-align:center;
  border-bottom:1px solid var(--line);
  padding:18px 0 22px;
  position:relative;
}
.drawer-close-btn{
  position:absolute;
  top:-10px;
  right:-4px;
  min-height:0 !important;
  width:38px;height:38px;
  border:0 !important;
  background:transparent !important;
  font-size:28px !important;
  box-shadow:none !important;
}
.drawer-avatar{
  width:64px;height:64px;
  margin:0 auto 10px;
  border-radius:50%;
  background:#111;color:#fff;
  display:grid;place-items:center;
  font-weight:800;font-size:20px;
}
.account-drawer-header h3{margin:8px 0 2px}
.account-drawer-header p{margin:0;color:var(--muted)}
.drawer-menu{display:grid;padding-top:4px}
.drawer-menu-btn{
  text-align:right !important;
  justify-content:flex-start !important;
  min-height:54px !important;
  background:#fff !important;
  border:0 !important;
  border-bottom:1px solid var(--line) !important;
  border-radius:0 !important;
  color:#1C1C1C !important;
  font-family:inherit !important;
  font-weight:600 !important;
  box-shadow:none !important;
}

/* Bottom navigation */
.bottom-app-nav{
  position:fixed;
  bottom:0;left:0;right:0;
  z-index:1000;
  min-height:72px;
  display:flex;
  justify-content:center;
  align-items:stretch;
  background:rgba(255,255,255,.97);
  border-top:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.bottom-nav-btn{
  width:min(20%,150px);
  min-height:70px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#777 !important;
  font-family:inherit !important;
  box-shadow:none !important;
}
.bottom-nav-btn > span{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
}
.bottom-nav-icon{
  font-size:22px;
  line-height:1;
}
.bottom-nav-btn:hover{
  color:#111 !important;
  background:#F5F5F2 !important;
}

@media(max-width:650px){
  body{padding-top:64px;padding-bottom:78px}
  .global-topbar{height:62px;padding:0 12px}
  .global-brand-mini span:last-child{display:none}
  .global-user-name{display:none}
  .product-app{padding-top:12px !important}
  .bottom-nav-btn{font-size:11px !important}
}


/* =========================================================
   V7 — BLACK / WHITE / MUSTARD
   Visual-only override. Existing UI structure & behavior stay intact.
   ========================================================= */
:root{
  --brand-black:#171A20;
  --brand-black-2:#0C0E12;
  --brand-white:#FFFFFF;
  --brand-cream:#FFFDF7;
  --brand-mustard:#D8AE24;
  --brand-mustard-strong:#C49A10;
  --brand-mustard-soft:#FFF0A6;
  --brand-mustard-pale:#FFF8D8;

  --green:var(--brand-black)!important;
  --green-dark:var(--brand-black-2)!important;
  --green-soft:var(--brand-mustard-pale)!important;
  --plum:var(--brand-black)!important;
  --plum-soft:var(--brand-mustard-pale)!important;
  --gold:var(--brand-mustard)!important;
  --teal:var(--brand-black)!important;
  --coral:var(--brand-mustard)!important;
  --coral-soft:var(--brand-mustard-pale)!important;
  --ink:var(--brand-black)!important;
  --muted:#2D3035!important;
  --line:#E7D588!important;
  --bg:var(--brand-cream)!important;
  --white:var(--brand-white)!important;
}

html,body,.product-app,
button,input,select,textarea{
  font-family:'Vazirmatn',Tahoma,sans-serif!important;
}
body{background:var(--brand-cream)!important}

/* Welcome */
.welcome-visual{
  background:linear-gradient(150deg,var(--brand-black) 0%,var(--brand-black-2) 100%)!important;
  color:var(--brand-white)!important;
}
.visual-circle{
  background:var(--brand-white)!important;
  color:var(--brand-black)!important;
  border:0!important;
  box-shadow:0 18px 46px rgba(0,0,0,.24)!important;
}
.visual-circle *{color:var(--brand-black)!important}
.welcome-visual h3{
  color:var(--brand-white)!important;
  max-width:420px;
  line-height:1.9;
}
.brand-badge{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  color:var(--brand-black)!important;
}
.welcome-copy h1{
  font-size:clamp(28px,4vw,43px)!important;
  line-height:1.45!important;
}

/* Core surfaces: white, not gray */
.screen-card,.plan-card,.dashboard-tile,.advice-card,.result-panel{
  background:var(--brand-white)!important;
}

/* Buttons */
.primary-btn{
  background:var(--brand-black)!important;
  border-color:var(--brand-black)!important;
  color:var(--brand-white)!important;
}
.primary-btn:hover{background:var(--brand-black-2)!important}
.secondary-btn,.light-btn,.small-btn{
  background:var(--brand-white)!important;
  border-color:var(--brand-black)!important;
  color:var(--brand-black)!important;
}

/* Health eligibility */
.eligibility-card-shell:before{
  display:none!important;
  content:none!important;
}
.eligibility-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.eligibility-other{
  grid-column:auto!important;
}
.eligibility-btn{
  background:var(--brand-white)!important;
  border:1px solid var(--brand-black)!important;
  color:var(--brand-black)!important;
  box-shadow:none!important;
}
.eligibility-btn:hover{
  background:var(--brand-mustard-pale)!important;
  border-color:var(--brand-mustard-strong)!important;
  color:var(--brand-black)!important;
}

/* Plans and secure payment */
.plan-card.is-featured{
  background:var(--brand-white)!important;
  border-color:var(--brand-mustard)!important;
}
.plan-ribbon{
  background:var(--brand-mustard)!important;
  color:var(--brand-black)!important;
}
.active-plan-card{
  background:var(--brand-black)!important;
  color:var(--brand-white)!important;
}
.secure-note,.info-banner{
  background:var(--brand-mustard-soft)!important;
  color:var(--brand-black)!important;
  border:1px solid #E1C95D!important;
}

/* Meal tabs: selected black, rest white/mustard — no gray */
.meal-tab{
  background:var(--brand-white)!important;
  color:var(--brand-black)!important;
  border:1px solid #E4CF72!important;
}
.meal-tab:hover{background:var(--brand-mustard-pale)!important}
.meal-tab.is-selected{
  background:var(--brand-black)!important;
  color:var(--brand-white)!important;
  border-color:var(--brand-black)!important;
}

/* Result tabs same language */
.result-tab{
  background:var(--brand-white)!important;
  color:var(--brand-black)!important;
  border:1px solid #E4CF72!important;
}
.result-tab.is-selected{
  background:var(--brand-black)!important;
  color:var(--brand-white)!important;
  border-color:var(--brand-black)!important;
}

/* Selectable food/personal items */
.food-chip,.segment,.choice-card{
  background:var(--brand-white)!important;
  color:var(--brand-black)!important;
  border-color:#E4CF72!important;
}
.food-chip.is-selected,.segment.is-selected,.choice-card.is-selected,.selectable.is-selected{
  background:var(--brand-mustard-soft)!important;
  border-color:var(--brand-mustard-strong)!important;
  color:var(--brand-black)!important;
}

/* Persistent top bar */
.global-topbar{
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid #E4CF72!important;
}
.global-brand-star{
  background:var(--brand-white)!important;
  border-color:var(--brand-black)!important;
  color:var(--brand-black)!important;
}
.global-user-avatar{
  background:var(--brand-black)!important;
  color:var(--brand-white)!important;
}

/* Left drawer: black */
.account-drawer{
  background:var(--brand-black)!important;
  color:var(--brand-white)!important;
  border-right:0!important;
}
.account-drawer-header{border-bottom:1px solid rgba(255,255,255,.15)!important}
.account-drawer-header h3,.account-drawer-header p{color:var(--brand-white)!important}
.drawer-avatar{
  background:var(--brand-white)!important;
  color:var(--brand-black)!important;
}
.drawer-close-btn{color:var(--brand-white)!important}
.drawer-menu-btn{
  background:transparent!important;
  color:var(--brand-white)!important;
  border-bottom:1px solid rgba(255,255,255,.14)!important;
}
.drawer-menu-btn:hover{
  background:rgba(216,174,36,.14)!important;
  color:var(--brand-mustard)!important;
}
.account-drawer-overlay{background:rgba(0,0,0,.38)!important}

/* Bottom nav */
.bottom-app-nav{
  background:rgba(255,255,255,.98)!important;
  border-top:1px solid #E4CF72!important;
}
.bottom-nav-btn{color:var(--brand-black)!important}
.bottom-nav-btn:hover{
  background:var(--brand-mustard-pale)!important;
  color:var(--brand-black)!important;
}

/* Tables and small content blocks */
.data-table th{
  background:var(--brand-mustard-pale)!important;
  color:var(--brand-black)!important;
}
.data-table td,.data-table th{border-color:#EEE1AA!important}
.trust-item,.summary-strip div,.pregnancy-note,.notice-icon,.day-card.completed{
  background:var(--brand-mustard-pale)!important;
  color:var(--brand-black)!important;
}
.trust-item span{
  background:var(--brand-black)!important;
  color:var(--brand-white)!important;
}

@media(max-width:560px){
  .eligibility-grid{grid-template-columns:1fr 1fr!important}
}


/* =========================================================
   V7.1 — requested refinements only
   ========================================================= */

/* Darker, richer mustard closer to the uploaded reference image */
:root{
  --brand-mustard:#E0B51D !important;
  --brand-mustard-strong:#C99E00 !important;
  --brand-mustard-soft:#F6E18A !important;
  --brand-mustard-pale:#FFF5BF !important;
}

/* Food choices inside each meal:
   keep mustard border but WHITE interior — no gray fill */
.food-chip,
.segment,
.choice-card,
.food-option,
.option-chip,
.meal-panel .selectize-input,
.meal-panel .form-control,
.meal-panel select{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
}

/* For unselected selectable items inside meal sections specifically */
.meal-panel .food-chip:not(.is-selected),
.meal-panel .segment:not(.is-selected),
.meal-panel .choice-card:not(.is-selected),
.meal-panel .selectable:not(.is-selected){
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

/* Selectize/dropdown controls: white field with mustard border */
.meal-panel .selectize-control.single .selectize-input,
.meal-panel .selectize-control.multi .selectize-input,
.meal-panel .form-control{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

/* Dropdown list itself also white, not gray */
.selectize-dropdown,
.selectize-dropdown-content{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard) !important;
}
.selectize-dropdown .active{
  background:var(--brand-mustard-pale) !important;
  color:var(--brand-black) !important;
}

/* Keep selected chips tasteful: soft mustard only */
.food-chip.is-selected,
.segment.is-selected,
.choice-card.is-selected,
.selectable.is-selected{
  background:var(--brand-mustard-soft) !important;
  border-color:var(--brand-mustard-strong) !important;
  color:var(--brand-black) !important;
}

/* Reduce overly bright yellow on larger UI blocks */
.secure-note,
.info-banner,
.trust-item,
.summary-strip div,
.pregnancy-note,
.notice-icon,
.day-card.completed{
  background:var(--brand-mustard-pale) !important;
}

/* Make the check icons coordinated with the new mustard,
   instead of black check badges */
.trust-item span,
.check-icon,
.benefit-icon,
.plan-feature-icon{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}

/* If check marks are rendered as pseudo-elements */
.trust-item span::before,
.benefit-item::before,
.plan-feature::before{
  color:var(--brand-black) !important;
}

/* Keep large action areas mostly black/white, mustard only as accent */
.primary-btn{
  background:var(--brand-black) !important;
  border-color:var(--brand-black) !important;
}
.secondary-btn{
  background:#FFFFFF !important;
  border-color:var(--brand-black) !important;
}

/* Softer mustard borders throughout food area */
.meal-tabs,
.food-card,
.meal-panel,
.food-section{
  border-color:#E6C84D !important;
}

/* Avoid gray input backgrounds anywhere in the food selection screen */
#screen-foods input,
#screen-foods select,
#screen-foods textarea,
#screen-foods .selectize-input,
#screen-foods .selectize-dropdown{
  background:#FFFFFF !important;
}

/* Keep disabled controls from looking muddy gray */
#screen-foods .form-control:disabled,
#screen-foods .selectize-input.disabled{
  background:#FFFFFF !important;
  color:#7A7A70 !important;
  opacity:.65 !important;
}


/* =========================================================
   V7.2 — exact requested fixes
   Mustard sampled from reference image: #E8D931
   ========================================================= */
:root{
  --brand-mustard:#E8D931 !important;
  --brand-mustard-strong:#D8C51D !important;
  --brand-mustard-soft:#F4E978 !important;
  --brand-mustard-pale:#FFF9D2 !important;
}

/* Food-selection area: remove gray completely */
#screen-foods .food-selection-panel{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
}
#screen-foods .food-section,
#screen-foods .food-chip-row{
  background:#FFFFFF !important;
}

/* Inputs and food-choice boxes are white inside */
#screen-foods .food-chip,
#screen-foods .segment,
#screen-foods .choice-card,
#screen-foods .selectable,
#screen-foods .form-control,
#screen-foods .selectize-input,
#screen-foods select,
#screen-foods input,
#screen-foods textarea{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
}

/* Unselected options: white inside + mustard outline */
#screen-foods .food-chip:not(.is-selected),
#screen-foods .segment:not(.is-selected),
#screen-foods .choice-card:not(.is-selected),
#screen-foods .selectable:not(.is-selected),
#screen-foods .form-control,
#screen-foods .selectize-control.single .selectize-input,
#screen-foods .selectize-control.multi .selectize-input{
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
  box-shadow:none !important;
}

/* Dropdown list is also white, not gray */
#screen-foods .selectize-dropdown,
#screen-foods .selectize-dropdown-content,
.selectize-dropdown,
.selectize-dropdown-content{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard) !important;
}
.selectize-dropdown .active{
  background:var(--brand-mustard-pale) !important;
  color:var(--brand-black) !important;
}

/* Meal tab behavior stays exactly as approved */
#screen-foods .meal-tab.is-selected{
  background:var(--brand-black) !important;
  color:#FFFFFF !important;
  border-color:var(--brand-black) !important;
}
#screen-foods .meal-tab:not(.is-selected){
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard) !important;
}

/* Same mustard for "پیشنهاد ما" and secure-payment message */
.plan-ribbon,
.secure-note,
.info-banner{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard-strong) !important;
}

/* Welcome benefit ticks: plain mustard check only — no circle/box */
.trust-item{
  background:#FFFFFF !important;
}
.trust-item span{
  background:transparent !important;
  color:var(--brand-mustard-strong) !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  padding:0 !important;
  display:inline !important;
  font-size:20px !important;
  line-height:1 !important;
  font-weight:900 !important;
  margin-left:10px !important;
}

.check-icon,
.benefit-icon,
.plan-feature-icon{
  background:transparent !important;
  color:var(--brand-mustard-strong) !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Avoid large yellow surfaces elsewhere */
.summary-strip div,
.pregnancy-note,
.notice-icon,
.day-card.completed{
  background:var(--brand-mustard-pale) !important;
}

/* Primary actions remain black/white */
.primary-btn{
  background:var(--brand-black) !important;
  color:#FFFFFF !important;
  border-color:var(--brand-black) !important;
}


/* =========================================================
   V7.3 — SINGLE MUSTARD SYSTEM
   One mustard only: #E8D931
   Lighter states are the SAME hue mixed with white.
   ========================================================= */
:root{
  --brand-mustard:#E8D931 !important;
  --brand-mustard-light:color-mix(in srgb, var(--brand-mustard) 24%, white) !important;
  --brand-mustard-lighter:color-mix(in srgb, var(--brand-mustard) 12%, white) !important;
}

/* Fallbacks for browsers without color-mix */
@supports not (background: color-mix(in srgb, #000 50%, white)) {
  :root{
    --brand-mustard-light:#F8F3B7 !important;
    --brand-mustard-lighter:#FCF9DD !important;
  }
}

/* Everywhere: same mustard for yellow accents */
.plan-ribbon,
.progress-fill,
.discount-badge,
.trust-item span,
.check-icon,
.benefit-icon,
.plan-feature-icon{
  color:var(--brand-mustard) !important;
}
.plan-ribbon,
.progress-fill,
.discount-badge{
  background:var(--brand-mustard) !important;
}

/* Bottom navigation hover: same mustard, lighter only */
.bottom-nav-btn:hover{
  background:var(--brand-mustard-light) !important;
  color:var(--brand-black) !important;
}

/* Health-status cards: same mustard family only */
.eligibility-btn{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}
.eligibility-btn:hover{
  background:var(--brand-mustard-light) !important;
  border-color:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}

/* Goal cards / general selectable cards */
.choice-card,
.segment,
.selectable{
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
}
.choice-card:hover,
.segment:hover,
.selectable:hover{
  background:var(--brand-mustard-lighter) !important;
  border-color:var(--brand-mustard) !important;
}
.choice-card.is-selected,
.segment.is-selected,
.selectable.is-selected{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

/* "Suggested" ribbon stays the one master mustard */
.plan-ribbon{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard) !important;
}

/* Secure-payment message: plain text only, NO box/background/border */
.secure-note,
.info-banner{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:var(--brand-black) !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Today's programs / plan cards: same mustard outlines */
.day-card,
.active-plan-card,
.plan-card{
  border-color:var(--brand-mustard) !important;
}
.day-card:hover,
.plan-card:hover{
  background:var(--brand-mustard-lighter) !important;
}

/* Meal tabs: selected stays black; unselected uses same mustard border */
#screen-foods .meal-tab:not(.is-selected){
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}
#screen-foods .meal-tab:not(.is-selected):hover{
  background:var(--brand-mustard-light) !important;
}
#screen-foods .meal-tab.is-selected{
  background:var(--brand-black) !important;
  color:#FFFFFF !important;
  border-color:var(--brand-black) !important;
}

/* Food screen: white interiors, same mustard outline */
#screen-foods .food-selection-panel,
#screen-foods .food-section,
#screen-foods .food-chip-row,
#screen-foods .form-control,
#screen-foods .selectize-input,
#screen-foods select,
#screen-foods input,
#screen-foods textarea{
  background:#FFFFFF !important;
}
#screen-foods .food-chip,
#screen-foods .segment,
#screen-foods .choice-card,
#screen-foods .selectable,
#screen-foods .form-control,
#screen-foods .selectize-control.single .selectize-input,
#screen-foods .selectize-control.multi .selectize-input{
  border-color:var(--brand-mustard) !important;
  box-shadow:none !important;
}

/* Food option selected: FULL mustard fill + BLACK outline, exactly as requested */
#screen-foods .food-chip.is-selected,
#screen-foods .segment.is-selected,
#screen-foods .choice-card.is-selected,
#screen-foods .selectable.is-selected{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

/* Food option hover: only lighter same mustard */
#screen-foods .food-chip:not(.is-selected):hover,
#screen-foods .segment:not(.is-selected):hover,
#screen-foods .choice-card:not(.is-selected):hover,
#screen-foods .selectable:not(.is-selected):hover{
  background:var(--brand-mustard-light) !important;
  border-color:var(--brand-mustard) !important;
}

/* Dropdown: white list, hover from same mustard family */
.selectize-dropdown,
.selectize-dropdown-content{
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
}
.selectize-dropdown .active{
  background:var(--brand-mustard-light) !important;
  color:var(--brand-black) !important;
}

/* Welcome ticks: plain mustard check, no badge/circle */
.trust-item{
  background:#FFFFFF !important;
}
.trust-item span{
  background:transparent !important;
  color:var(--brand-mustard) !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  padding:0 !important;
  display:inline !important;
  font-size:20px !important;
  font-weight:900 !important;
}

/* Result tabs use same single-mustard system */
.result-tab:not(.is-selected){
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}
.result-tab:not(.is-selected):hover{
  background:var(--brand-mustard-light) !important;
}
.result-tab.is-selected{
  background:var(--brand-black) !important;
  border-color:var(--brand-black) !important;
  color:#FFFFFF !important;
}

/* Tables: only light tint of same mustard */
.data-table th{
  background:var(--brand-mustard-lighter) !important;
  color:var(--brand-black) !important;
}
.data-table td,
.data-table th{
  border-color:var(--brand-mustard-light) !important;
}

/* Remove legacy alternate-yellow fills */
.summary-strip div,
.pregnancy-note,
.notice-icon,
.day-card.completed{
  background:var(--brand-mustard-lighter) !important;
  color:var(--brand-black) !important;
}


/* =========================================================
   V7.4 — unify all remaining mustard + refine progress/tracking
   Master mustard stays #E8D931 everywhere.
   ========================================================= */
:root{
  --brand-mustard:#E8D931 !important;
  --brand-mustard-light:color-mix(in srgb, var(--brand-mustard) 24%, white) !important;
  --brand-mustard-lighter:color-mix(in srgb, var(--brand-mustard) 12%, white) !important;
}
@supports not (background: color-mix(in srgb, #000 50%, white)) {
  :root{
    --brand-mustard-light:#F8F3B7 !important;
    --brand-mustard-lighter:#FCF9DD !important;
  }
}

/* ---------- TABLES: use the one master mustard family ---------- */
.data-table,
.clean-table,
.result-table,
.nutrition-table,
.food-groups-table,
.meals-table{
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
}

.data-table th,
.clean-table th,
.result-table th,
.nutrition-table th,
.food-groups-table th,
.meals-table th{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard) !important;
}

.data-table td,
.clean-table td,
.result-table td,
.nutrition-table td,
.food-groups-table td,
.meals-table td{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard-light) !important;
}

/* Any striped/alternate rows should remain white, not a second yellow/gray */
.data-table tbody tr:nth-child(even) td,
.clean-table tbody tr:nth-child(even) td,
.result-table tbody tr:nth-child(even) td{
  background:#FFFFFF !important;
}

/* ---------- 7-DAY PROGRAM CARDS ---------- */
.day-card,
.program-day-card,
.week-day-card{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

.day-card:hover,
.program-day-card:hover,
.week-day-card:hover{
  background:var(--brand-mustard-lighter) !important;
  border-color:var(--brand-mustard) !important;
}

/* Completed / received day = master mustard */
.day-card.completed,
.program-day-card.completed,
.week-day-card.completed,
.day-card.is-complete,
.program-day-card.is-complete,
.week-day-card.is-complete{
  background:var(--brand-mustard) !important;
  border-color:var(--brand-black) !important;
  color:var(--brand-black) !important;
}

.day-card.completed *,
.program-day-card.completed *,
.week-day-card.completed *,
.day-card.is-complete *,
.program-day-card.is-complete *,
.week-day-card.is-complete *{
  color:var(--brand-black) !important;
}

/* Future/locked days stay white with mustard outline, not gray */
.day-card.locked,
.program-day-card.locked,
.week-day-card.locked{
  background:#FFFFFF !important;
  border-color:var(--brand-mustard) !important;
  color:#6C6550 !important;
  opacity:.72 !important;
}

/* ---------- TRACKING / FOLLOW-UP INPUTS ---------- */
/* Replace blue borders/focus with mustard */
#screen-tracking .form-control,
#screen-tracking .selectize-input,
#screen-tracking input,
#screen-tracking select,
#screen-tracking textarea,
#screen-questionnaire .form-control,
#screen-questionnaire .selectize-input,
#screen-questionnaire input,
#screen-questionnaire select,
#screen-questionnaire textarea{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

#screen-tracking .form-control:focus,
#screen-tracking input:focus,
#screen-tracking select:focus,
#screen-tracking textarea:focus,
#screen-questionnaire .form-control:focus,
#screen-questionnaire input:focus,
#screen-questionnaire select:focus,
#screen-questionnaire textarea:focus{
  border-color:var(--brand-black) !important;
  box-shadow:0 0 0 2px var(--brand-mustard-light) !important;
  outline:none !important;
}

/* Slider/range accents in tracking */
#screen-tracking input[type="range"],
#screen-questionnaire input[type="range"]{
  accent-color:var(--brand-mustard) !important;
}

/* ---------- PROGRESS CHART ---------- */
/* Remove gray chart shell and use black + mustard only */
.fake-chart,
.progress-chart,
.chart-card,
.progress-visual{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  box-shadow:none !important;
}

/* chart bars: alternate black / mustard for more energy */
.fake-chart span:nth-child(odd),
.progress-chart .bar:nth-child(odd),
.chart-bar:nth-child(odd){
  background:var(--brand-black) !important;
}

.fake-chart span:nth-child(even),
.progress-chart .bar:nth-child(even),
.chart-bar:nth-child(even){
  background:var(--brand-mustard) !important;
}

/* remove gray track/background around bars */
.chart-track,
.progress-track,
.fake-chart .track,
.bar-track{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* If bars use pseudo-elements / baseline */
.fake-chart::before,
.fake-chart::after,
.progress-chart::before,
.progress-chart::after{
  background:transparent !important;
  border-color:var(--brand-mustard) !important;
}

/* Labels and axes: black, no gray fill */
.chart-label,
.axis-label,
.progress-label{
  color:var(--brand-black) !important;
  background:transparent !important;
}

/* ---------- eliminate legacy alternate yellows ---------- */
.summary-strip div,
.notice-icon,
.pregnancy-note,
.day-card.completed,
.plan-ribbon,
.progress-fill,
.discount-badge,
.secure-note,
.info-banner,
.result-tab:not(.is-selected):hover,
.meal-tab:not(.is-selected):hover,
.bottom-nav-btn:hover,
.eligibility-btn:hover,
.choice-card:hover,
.segment:hover,
.selectable:hover{
  border-color:var(--brand-mustard) !important;
}

/* Keep secure message plain text as requested in V7.3 */
.secure-note,
.info-banner{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Make any small status badge use the same mustard */
.status-badge,
.completed-badge,
.received-badge,
.badge-success,
.day-status{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard) !important;
}


/* =========================================================
   V7.5 — state refinement requested by user
   - active/current = full mustard
   - completed = lighter mustard
   - tables = lighter mustard
   - nutrient summary cards = full mustard + black border
   ========================================================= */

:root{
  --brand-mustard:#E8D931 !important;
  --brand-mustard-complete:color-mix(in srgb, var(--brand-mustard) 34%, white) !important;
  --brand-mustard-table:color-mix(in srgb, var(--brand-mustard) 24%, white) !important;
}
@supports not (background: color-mix(in srgb, #000 50%, white)) {
  :root{
    --brand-mustard-complete:#F6F0A0 !important;
    --brand-mustard-table:#F9F4BD !important;
  }
}

/* ---------- 7-day program states ---------- */

/* Completed/past day = lighter mustard */
.day-card.completed,
.program-day-card.completed,
.week-day-card.completed,
.day-card.is-complete,
.program-day-card.is-complete,
.week-day-card.is-complete{
  background:var(--brand-mustard-complete) !important;
  border:1px solid var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}

/* Current / selected day = full mustard + black outline */
.day-card.is-selected,
.program-day-card.is-selected,
.week-day-card.is-selected,
.day-card.active,
.program-day-card.active,
.week-day-card.active{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

/* Hover on an available future day previews the active mustard */
.day-card:not(.locked):not(.completed):hover,
.program-day-card:not(.locked):not(.completed):hover,
.week-day-card:not(.locked):not(.completed):hover{
  background:var(--brand-mustard) !important;
  border-color:var(--brand-black) !important;
  color:var(--brand-black) !important;
}

/* ---------- Goal/choice cards ---------- */
/* Any selected choice = full mustard + black border */
.choice-card.is-selected,
.segment.is-selected,
.selectable.is-selected{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
}

/* ---------- Result tables ---------- */
/* Table headers return to a softer/lighter mustard */
.data-table th,
.clean-table th,
.result-table th,
.nutrition-table th,
.food-groups-table th,
.meals-table th{
  background:var(--brand-mustard-table) !important;
  color:var(--brand-black) !important;
  border-color:var(--brand-mustard) !important;
}

/* Body stays white */
.data-table td,
.clean-table td,
.result-table td,
.nutrition-table td,
.food-groups-table td,
.meals-table td{
  background:#FFFFFF !important;
  border-color:var(--brand-mustard-complete) !important;
}

/* ---------- Nutrition summary cards ---------- */
/* Energy / protein / carbohydrate / fat = full mustard + black border */
.summary-strip div,
.metric,
.nutrition-summary-card,
.macro-card{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}

.summary-strip div strong,
.summary-strip div span,
.metric strong,
.metric span,
.nutrition-summary-card *,
.macro-card *{
  color:var(--brand-black) !important;
}


/* =========================================================
   V7.6 FINAL — last requested refinements only
   ========================================================= */
:root{
  --brand-mustard:#E8D931 !important;
  --brand-mustard-light:color-mix(in srgb, var(--brand-mustard) 28%, white) !important;
}
@supports not (background: color-mix(in srgb, #000 50%, white)) {
  :root{ --brand-mustard-light:#F6F0A0 !important; }
}

/* 1) Health-status choices: hover/selection use the actual mustard family */
.eligibility-btn:hover{
  background:var(--brand-mustard) !important;
  border-color:var(--brand-black) !important;
  color:var(--brand-black) !important;
}
.eligibility-btn.is-selected,
.eligibility-btn.selected,
.eligibility-btn.active{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
}

/* 2) Dashboard tiles such as "برنامه امروز": mustard on hover */
.dashboard-tile:hover{
  background:var(--brand-mustard) !important;
  border-color:var(--brand-black) !important;
  color:var(--brand-black) !important;
}
.dashboard-tile:hover *{
  color:var(--brand-black) !important;
}

/* 3) Personal-info gender options: mustard hover + better proportions */
#screen-personal .segment-row{
  gap:14px !important;
}
#screen-personal .segment{
  min-height:54px !important;
  width:auto !important;
  min-width:135px !important;
  flex:0 0 auto !important;
  padding:0 26px !important;
  border-radius:14px !important;
}
#screen-personal .segment:hover{
  background:var(--brand-mustard) !important;
  border-color:var(--brand-black) !important;
  color:var(--brand-black) !important;
}
#screen-personal .segment.is-selected{
  background:var(--brand-mustard) !important;
  border-color:var(--brand-black) !important;
  color:var(--brand-black) !important;
}

/* 4) Review selections table/card: mustard outline */
#screen-review .review-table,
#screen-review .review-card,
#screen-review .review-list,
#screen-review .review-summary{
  border:1px solid var(--brand-mustard) !important;
  background:#FFFFFF !important;
}
#screen-review .review-table td,
#screen-review .review-table th,
#screen-review .review-list > div{
  border-color:var(--brand-mustard-light) !important;
}

/* 5) Recommendations: each recommendation card = full mustard + black border,
      same visual language as Energy/Protein/Carb/Fat cards */
#advice-panel .advice-card,
#result-advice .advice-card,
#screen-result .advice-card,
.recommendation-card{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}
#advice-panel .advice-card *,
#result-advice .advice-card *,
#screen-result .advice-card *,
.recommendation-card *{
  color:var(--brand-black) !important;
}

/* If recommendations are rendered as plain blocks rather than .advice-card */
#result-advice > div:not(.advice-grid):not(.result-tabs),
#screen-result .advice-grid > div{
  border-color:var(--brand-black) !important;
}

/* Keep all non-selected neutral surfaces white */
#screen-personal .segment:not(.is-selected){
  background:#FFFFFF !important;
}


/* V7.7 — compact + vertically centered status/gender option boxes */

/* Gender: shorter box and perfectly centered label */
#screen-personal .segment{
  min-height:42px !important;
  height:42px !important;
  padding:0 24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  text-align:center !important;
}
#screen-personal .segment > *{
  margin:0 !important;
  line-height:1 !important;
}

/* Health status: shorter box and perfectly centered label */
.eligibility-btn{
  min-height:48px !important;
  height:48px !important;
  padding:0 18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  text-align:center !important;
}
.eligibility-btn > *{
  margin:0 !important;
  line-height:1 !important;
}


/* =========================================================
   V7.8 — ONLY the two requested fixes
   1) Personal-info option boxes: compact + true center
   2) Questionnaire satisfaction selection: no blue, mustard only
   ========================================================= */

/* Personal information: gender + health-status rows */
#screen-personal .segmented-group .segment-row{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  width:100% !important;
  margin:14px 0 20px !important;
}

/* Fixed compact size so labels sit exactly in the middle */
#screen-personal .segmented-group .segment{
  flex:0 0 150px !important;
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
  height:42px !important;
  min-height:42px !important;
  padding:0 !important;

  display:grid !important;
  place-items:center !important;

  text-align:center !important;
  line-height:42px !important;
  vertical-align:middle !important;

  border-radius:14px !important;
}

/* Make sure plain text or nested content cannot float upward */
#screen-personal .segmented-group .segment,
#screen-personal .segmented-group .segment *{
  margin:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  line-height:1.2 !important;
  text-align:center !important;
}

/* Selected/hover remain the master mustard */
#screen-personal .segmented-group .segment:hover,
#screen-personal .segmented-group .segment.is-selected{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
}

/* Questionnaire satisfaction dropdown:
   remove every Bootstrap/Selectize blue state */
#screen-questionnaire .selectize-control.single .selectize-input,
#screen-questionnaire .selectize-control.single .selectize-input.focus,
#screen-questionnaire .selectize-control.single .selectize-input.dropdown-active{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
  outline:none !important;
}

#screen-questionnaire .selectize-dropdown{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  box-shadow:none !important;
}

/* Hover = lighter version of same mustard */
#screen-questionnaire .selectize-dropdown .option.active{
  background:var(--brand-mustard-light) !important;
  color:var(--brand-black) !important;
}

/* Selected option = full master mustard, never blue */
#screen-questionnaire .selectize-dropdown .option.selected,
#screen-questionnaire .selectize-dropdown .option.active.selected{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}

/* Also catch native/Bootstrap selection states */
#screen-questionnaire select:focus,
#screen-questionnaire .form-control:focus{
  border-color:var(--brand-mustard) !important;
  box-shadow:0 0 0 2px var(--brand-mustard-light) !important;
  outline:none !important;
}

#screen-questionnaire option:checked{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
}


/* =========================================================
   V7.9 — align gender/health choices under their labels
   Keep the compact box size and centered text inside each box.
   ========================================================= */

/* Do NOT center the whole row in the page.
   In RTL, flex-start places the options under the label on the right. */
#screen-personal .segmented-group .segment-row{
  justify-content:flex-start !important;
  align-items:center !important;
  width:100% !important;
  direction:rtl !important;
}

/* Keep the individual boxes compact and their text perfectly centered */
#screen-personal .segmented-group .segment{
  flex:0 0 150px !important;
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
  height:42px !important;
  min-height:42px !important;
  display:grid !important;
  place-items:center !important;
  text-align:center !important;
  padding:0 !important;
  margin:0 !important;
}

/* On mobile, keep them aligned under the label and fit comfortably */
@media(max-width:560px){
  #screen-personal .segmented-group .segment-row{
    justify-content:flex-start !important;
    gap:10px !important;
  }
  #screen-personal .segmented-group .segment{
    flex:0 0 120px !important;
    width:120px !important;
    min-width:120px !important;
    max-width:120px !important;
  }
}


/* =========================================================
   V8 — MOBILE OPTIMIZATION + REQUESTED FINAL REFINEMENTS
   Master mustard: #E8D931
   ========================================================= */

:root{
  --brand-mustard:#E8D931 !important;
  --brand-mustard-light:color-mix(in srgb, var(--brand-mustard) 28%, white) !important;
  --brand-mustard-lighter:color-mix(in srgb, var(--brand-mustard) 14%, white) !important;
}
@supports not (background: color-mix(in srgb, #000 50%, white)) {
  :root{
    --brand-mustard-light:#F6F0A0 !important;
    --brand-mustard-lighter:#FBF8D8 !important;
  }
}

/* ---------- Titles: one step smaller across the app ---------- */
.screen-card h2,
.dashboard-shell h2{
  font-size:27px !important;
  line-height:1.45 !important;
}
.screen-card h3,
.dashboard-shell h3{
  line-height:1.5 !important;
}

/* Welcome title is intentionally smaller than before */
.welcome-copy h1{
  font-size:clamp(25px,3.6vw,38px) !important;
  line-height:1.55 !important;
}

/* ---------- Welcome ---------- */
.trust-item{
  background:#FFFFFF !important;
}
.trust-item span{
  color:var(--brand-mustard) !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* ---------- Disease other-input: remove pink/blue ---------- */
#screen-disease #other-disease-wrap .form-control,
#screen-disease #other-disease-wrap input{
  background:#FFFFFF !important;
  border:1px solid var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}
#screen-disease #other-disease-wrap .form-control:focus,
#screen-disease #other-disease-wrap input:focus{
  border-color:var(--brand-black) !important;
  box-shadow:0 0 0 2px var(--brand-mustard-light) !important;
  outline:none !important;
}

/* ---------- Not eligible ---------- */
.notice-icon{
  width:64px !important;
  height:64px !important;
  border-radius:50% !important;
  background:var(--brand-mustard) !important;
  border:0 !important;
  box-shadow:none !important;
  margin:8px auto 14px !important;
}

/* ---------- Dashboard ---------- */
.user-chip{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  border:1px solid var(--brand-black) !important;
}
.user-chip *{
  color:var(--brand-black) !important;
}

.active-plan-card{
  display:block !important;
  text-align:center !important;
  padding:24px !important;
}
.active-plan-copy{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:4px !important;
}
.active-plan-copy p,
.active-plan-copy h3,
.active-plan-copy span{
  margin:0 !important;
  text-align:center !important;
}
.active-plan-copy h3{
  margin:6px 0 !important;
}
.dashboard-today-btn{
  width:100% !important;
  min-height:52px !important;
  margin:-12px 0 18px !important;
  border:1px solid var(--brand-mustard) !important;
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border-radius:14px !important;
  font-weight:800 !important;
}
.dashboard-today-btn:hover{
  background:var(--brand-mustard) !important;
  border-color:var(--brand-black) !important;
  color:var(--brand-black) !important;
}

/* ---------- Progress bars: future = mustard, completed/current = black ---------- */
.progress-row span{
  background:var(--brand-mustard) !important;
}
.progress-row .active,
.progress-row .done{
  background:var(--brand-black) !important;
}

/* ---------- Personal info segmented options ---------- */
#screen-personal .segmented-group{
  width:100% !important;
  text-align:right !important;
}
#screen-personal .segmented-group > label{
  display:block !important;
  width:100% !important;
  text-align:right !important;
  margin:0 0 10px !important;
}
#screen-personal .segmented-group .segment-row{
  display:grid !important;
  grid-template-columns:repeat(2,150px) !important;
  justify-content:start !important;
  justify-items:stretch !important;
  align-items:center !important;
  gap:12px !important;
  width:max-content !important;
  max-width:100% !important;
  margin:0 0 22px auto !important; /* pins the row to the right in RTL */
  direction:rtl !important;
}
#screen-personal .segmented-group .segment{
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
  height:42px !important;
  min-height:42px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:0 !important;
  text-align:center !important;
  line-height:1 !important;
}

/* ---------- Review ---------- */
#screen-review .review-list{
  border:1px solid var(--brand-mustard) !important;
  background:#FFFFFF !important;
}
#screen-review .review-row{
  border-color:var(--brand-mustard-light) !important;
}

/* ---------- Recommendations ---------- */
#screen-result .advice-card{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
}
#screen-result .advice-card *{
  color:var(--brand-black) !important;
}

/* ---------- Result summary cards ---------- */
.summary-strip div{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  min-height:112px !important;
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
}
.summary-strip div strong{
  font-size:18px !important;
  line-height:1.3 !important;
}
.summary-strip div span{
  font-size:16px !important;
  line-height:1.35 !important;
}

/* PDF button = white like save button */
.result-pdf-btn{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border:1px solid var(--brand-black) !important;
}

/* ---------- Tracking inputs ---------- */
#screen-tracking .form-group,
#screen-tracking .input-group,
#screen-tracking .form-control,
#screen-tracking input{
  width:100% !important;
  max-width:100% !important;
}
#screen-tracking .input-group{
  display:flex !important;
}
#screen-tracking .form-control{
  min-width:0 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media(max-width:650px){

  /* Main cards fit the phone */
  .product-app{
    padding-left:8px !important;
    padding-right:8px !important;
  }
  .screen-card,
  .dashboard-shell,
  .welcome-layout{
    width:100% !important;
    max-width:100% !important;
    border-radius:20px !important;
  }
  .screen-card,
  .dashboard-shell{
    padding:24px 16px !important;
  }

  /* Titles one step smaller on mobile */
  .screen-card h2,
  .dashboard-shell h2{
    font-size:22px !important;
    line-height:1.5 !important;
    margin-top:14px !important;
  }
  .screen-card h3,
  .dashboard-shell h3{
    font-size:18px !important;
  }

  /* Welcome: BLACK visual panel goes FIRST/top on mobile */
  .welcome-layout{
    display:flex !important;
    flex-direction:column !important;
  }
  .welcome-visual{
    order:1 !important;
    min-height:230px !important;
    padding:28px 18px !important;
  }
  .welcome-copy{
    order:2 !important;
    padding:30px 18px 34px !important;
  }
  .welcome-copy h1{
    font-size:24px !important;
    line-height:1.65 !important;
    margin:14px 0 18px !important;
  }
  .welcome-visual h3{
    font-size:16px !important;
    line-height:1.8 !important;
    max-width:320px !important;
  }
  .visual-circle{
    width:72px !important;
    height:72px !important;
    margin-bottom:14px !important;
  }
  .trust-grid{
    gap:10px !important;
  }
  .trust-item{
    font-size:14px !important;
    line-height:1.7 !important;
  }

  /* Eligibility / disease: compact title and true 2-column phone grid */
  .eligibility-grid,
  .disease-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .eligibility-btn,
  .disease-option{
    width:100% !important;
    min-width:0 !important;
    min-height:50px !important;
    height:auto !important;
    padding:10px 8px !important;
    white-space:normal !important;
    line-height:1.45 !important;
  }

  /* Dashboard */
  .dashboard-header{
    align-items:flex-start !important;
  }
  .active-plan-card{
    margin:18px 0 20px !important;
  }
  .dashboard-grid{
    gap:10px !important;
  }

  /* Personal info: options MUST sit directly under the corresponding label */
  #screen-personal .segmented-group .segment-row{
    grid-template-columns:repeat(2,118px) !important;
    width:max-content !important;
    margin:0 0 20px auto !important;
    justify-content:start !important;
    gap:10px !important;
  }
  #screen-personal .segmented-group .segment{
    width:118px !important;
    min-width:118px !important;
    max-width:118px !important;
    height:42px !important;
  }

  /* Food meal tabs: NO horizontal swipe needed; all six visible */
  #screen-foods .meal-tabs{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    overflow:visible !important;
    padding-bottom:0 !important;
  }
  #screen-foods .meal-tab{
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:46px !important;
    padding:9px 6px !important;
    white-space:normal !important;
    line-height:1.45 !important;
    text-align:center !important;
  }
  #screen-foods .food-selection-panel{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  #screen-foods .food-chip-row{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
  }
  #screen-foods .food-chip{
    flex:1 1 calc(50% - 8px) !important;
    min-width:110px !important;
    text-align:center !important;
  }

  /* Review */
  #screen-review .review-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:4px !important;
  }

  /* Result tabs: all visible on phone, no swipe */
  #screen-result .result-tabs{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    overflow:visible !important;
    padding-bottom:0 !important;
  }
  #screen-result .result-tab{
    width:100% !important;
    white-space:normal !important;
    min-height:44px !important;
    padding:8px 5px !important;
    font-size:13px !important;
    line-height:1.35 !important;
  }
  #screen-result .result-panel > h3{
    font-size:17px !important;
    line-height:1.5 !important;
    text-align:center !important;
  }

  /* Macro cards: 2x2, centered, larger */
  #screen-result .summary-strip{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  #screen-result .summary-strip div{
    min-height:105px !important;
    padding:12px 8px !important;
  }
  #screen-result .summary-strip div strong{
    font-size:18px !important;
  }
  #screen-result .summary-strip div span{
    font-size:15px !important;
  }

  /* Mobile tables: show FULL table without horizontal dragging */
  #screen-result .table-wrap{
    overflow:visible !important;
    width:100% !important;
    margin-top:14px !important;
  }
  #screen-result .data-table{
    width:100% !important;
    max-width:100% !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
    font-size:10.5px !important;
  }
  #screen-result .data-table th,
  #screen-result .data-table td{
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    padding:7px 3px !important;
    text-align:center !important;
    vertical-align:middle !important;
    line-height:1.35 !important;
  }
  #screen-result .data-table th{
    font-size:10px !important;
  }

  /* Result actions centered; PDF white */
  #screen-result .navigation-row{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:10px !important;
  }
  #screen-result .navigation-row .btn,
  #screen-result .navigation-row .shiny-download-link{
    width:100% !important;
    max-width:280px !important;
    margin:0 auto !important;
    text-align:center !important;
  }

  /* Programs */
  #screen-programs .day-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  /* Tracking: one column; inputs never leave the viewport */
  #screen-tracking .tracking-grid{
    grid-template-columns:1fr !important;
    gap:14px !important;
    width:100% !important;
  }
  #screen-tracking .form-group,
  #screen-tracking .input-group,
  #screen-tracking .form-control,
  #screen-tracking input{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  #screen-tracking .input-group-addon{
    flex:0 0 auto !important;
  }
  #screen-tracking .chart-placeholder{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  #screen-tracking .fake-chart{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
    padding:14px 10px !important;
  }
}


/* =========================================================
   V9 — splash + mobile polish
   ========================================================= */
:root{
  --brand-black:#171A20;
  --brand-white:#FFFFFF;
  --brand-mustard:#E8D931;
}

/* Splash */
.splash-screen{
  min-height:100vh;
  width:100%;
  background:var(--brand-black);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.splash-inner{
  min-height:82vh;
  width:100%;
  max-width:520px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}
.splash-logo-circle{
  width:96px;
  height:96px;
  border-radius:50%;
  background:#fff;
  display:grid;
  place-items:center;
  margin:0 auto 26px;
}
.splash-logo-circle span{
  display:block;
  color:var(--brand-black);
  font-size:38px;
  line-height:1;
  margin:0;
}
.splash-inner h1{
  color:#fff !important;
  font-size:32px !important;
  line-height:1.45 !important;
  margin:0 0 12px !important;
}
.splash-inner p{
  color:#fff !important;
  opacity:.9;
  max-width:420px;
  font-size:16px;
  line-height:1.8;
  margin:0;
}

/* RTL navigation convention: back is on the RIGHT in Persian RTL */
.screen-topbar{
  direction:rtl !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
}
.screen-topbar .icon-btn{order:1 !important;}
.screen-topbar .brand-mini{
  order:2 !important;
  text-align:left !important;
}

/* PDF genuinely centered */
.centered-pdf-btn,
.result-pdf-btn{
  display:block !important;
  width:min(100%,280px) !important;
  margin:18px auto 0 !important;
  float:none !important;
  text-align:center !important;
}
#screen-result .navigation-row{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
}
#screen-result .navigation-row > *{
  width:min(100%,280px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Result tabs in one mustard container */
.result-tabs-shell{
  background:var(--brand-mustard) !important;
  border:0 !important;
  border-radius:18px !important;
  padding:10px !important;
  gap:8px !important;
}
.result-tabs-shell .result-tab{
  background:transparent !important;
  border:0 !important;
  color:var(--brand-black) !important;
  border-radius:12px !important;
}
.result-tabs-shell .result-tab.is-selected{
  background:var(--brand-black) !important;
  color:#fff !important;
}
.result-tabs-shell .result-tab:hover:not(.is-selected){
  background:rgba(255,255,255,.4) !important;
}

/* Mobile */
@media(max-width:650px){
  .splash-inner{min-height:86vh;}
  .splash-logo-circle{
    width:84px;
    height:84px;
    margin-bottom:22px;
  }
  .splash-logo-circle span{font-size:34px;}
  .splash-inner h1{font-size:27px !important;}

  .welcome-layout{
    display:flex !important;
    flex-direction:column !important;
  }
  .welcome-visual{order:1 !important;}
  .welcome-copy{order:2 !important;}

  #screen-result .result-tabs-shell{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:100% !important;
    overflow:visible !important;
  }
  #screen-result .result-tabs-shell .result-tab{
    width:100% !important;
    min-height:42px !important;
    font-size:13px !important;
    line-height:1.35 !important;
    white-space:normal !important;
  }
}


/* =========================================================
   V10 — transition + final polish requested
   ========================================================= */
:root{
  --brand-black:#171A20;
  --brand-white:#FFFFFF;
  --brand-mustard:#E8D931;
  --brand-mustard-light:color-mix(in srgb, var(--brand-mustard) 28%, white);
}
@supports not (background: color-mix(in srgb, #000 50%, white)) {
  :root{ --brand-mustard-light:#F6F0A0; }
}

/* ---------- Splash: logo perfectly centered ---------- */
#screen-splash{
  position:fixed !important;
  inset:0 !important;
  z-index:5000 !important;
  display:block !important;
  background:transparent !important;
  pointer-events:none;
}
#screen-splash .splash-screen{
  position:absolute !important;
  inset:0 !important;
  background:var(--brand-black) !important;
  transition:
    top .75s cubic-bezier(.22,.8,.25,1),
    height .75s cubic-bezier(.22,.8,.25,1),
    border-radius .75s ease,
    opacity .35s ease .55s !important;
  overflow:hidden !important;
}
#screen-splash .splash-inner{
  position:absolute !important;
  inset:0 !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  transition:all .75s cubic-bezier(.22,.8,.25,1) !important;
}
#screen-splash .splash-logo-circle{
  width:94px !important;
  height:94px !important;
  border-radius:50% !important;
  background:#FFFFFF !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:0 auto 26px !important;
  overflow:hidden !important;
  transition:all .75s cubic-bezier(.22,.8,.25,1) !important;
}
#screen-splash .splash-logo-circle span{
  display:block !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--brand-black) !important;
  font-size:38px !important;
  line-height:1 !important;
  transform:none !important;
  position:static !important;
}
#screen-splash .splash-inner h1,
#screen-splash .splash-inner p{
  animation:splashGlow 1.05s ease-in-out 1 both;
  transition:all .55s ease !important;
}
@keyframes splashGlow{
  0%{opacity:.28;filter:brightness(.7)}
  45%{opacity:1;filter:brightness(1.35)}
  100%{opacity:1;filter:brightness(1)}
}

/* morph phase: splash rises and compresses into the top black section */
#screen-splash.morphing .splash-screen{
  top:0 !important;
  height:270px !important;
  border-radius:0 0 24px 24px !important;
}
#screen-splash.morphing .splash-inner{
  justify-content:flex-start !important;
  padding-top:42px !important;
}
#screen-splash.morphing .splash-logo-circle{
  width:60px !important;
  height:60px !important;
  margin-bottom:12px !important;
}
#screen-splash.morphing .splash-logo-circle span{
  font-size:26px !important;
}
#screen-splash.morphing .splash-inner h1{
  font-size:21px !important;
  margin-bottom:6px !important;
}
#screen-splash.morphing .splash-inner p{
  font-size:13px !important;
  line-height:1.55 !important;
  max-width:310px !important;
}
#screen-splash.splash-done{
  opacity:0 !important;
  visibility:hidden !important;
}

/* Welcome content appears underneath during morph */
#screen-welcome.welcome-reveal{
  display:block !important;
  opacity:0;
  animation:welcomeReveal .7s ease .12s forwards;
}
@keyframes welcomeReveal{
  to{opacity:1}
}

/* Larger benefit text */
.trust-item{
  font-size:16px !important;
  line-height:1.75 !important;
}

/* ---------- Account chip: remove black fill ---------- */
.user-chip,
.account-chip,
.profile-chip{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border:1px solid var(--brand-mustard) !important;
  box-shadow:none !important;
}
.user-chip *,
.account-chip *,
.profile-chip *{
  color:var(--brand-black) !important;
}

/* ---------- Goal selection: show FULL mustard before auto-advance ---------- */
#screen-goal .goal-auto-next:hover,
#screen-goal .goal-auto-next.is-selected,
#screen-goal .goal-auto-next.selected,
#screen-goal .goal-auto-next.active{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
  box-shadow:none !important;
}
#screen-goal .goal-auto-next:hover *,
#screen-goal .goal-auto-next.is-selected *,
#screen-goal .goal-auto-next.selected *,
#screen-goal .goal-auto-next.active *{
  color:var(--brand-black) !important;
}

/* ---------- Result navigation: WHITE, separated by strong mustard line ---------- */
#screen-result .result-tabs-shell{
  background:#FFFFFF !important;
  border:0 !important;
  border-radius:0 !important;
  border-bottom:4px solid var(--brand-mustard) !important;
  padding:0 0 12px !important;
  gap:8px !important;
  box-shadow:none !important;
}
#screen-result .result-tabs-shell .result-tab{
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border:1px solid var(--brand-mustard) !important;
  border-radius:12px !important;
}
#screen-result .result-tabs-shell .result-tab.is-selected{
  background:var(--brand-black) !important;
  color:#FFFFFF !important;
  border-color:var(--brand-black) !important;
}
#screen-result .result-tabs-shell .result-tab:hover:not(.is-selected){
  background:var(--brand-mustard-light) !important;
}

/* ---------- PDF: centered with real spacing from divider ---------- */
#screen-result .navigation-row{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  padding-top:26px !important;
  margin-top:24px !important;
}
#screen-result .navigation-row .result-pdf-btn,
#screen-result .navigation-row .centered-pdf-btn,
#screen-result a#mock_pdf,
#screen-result #mock_pdf{
  display:block !important;
  float:none !important;
  position:static !important;
  width:220px !important;
  max-width:85% !important;
  min-height:50px !important;
  margin:0 auto !important;
  padding:13px 18px !important;
  text-align:center !important;
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border:1px solid var(--brand-black) !important;
  border-radius:13px !important;
  line-height:1.4 !important;
}

/* Mobile morph aligns with top section size */
@media(max-width:650px){
  #screen-splash.morphing .splash-screen{
    height:245px !important;
  }
  #screen-splash.morphing .splash-inner{
    padding-top:32px !important;
  }
  #screen-splash.morphing .splash-logo-circle{
    width:56px !important;
    height:56px !important;
  }
  #screen-splash.morphing .splash-logo-circle span{
    font-size:24px !important;
  }

  .trust-item{
    font-size:15px !important;
  }

  #screen-result .result-tabs-shell{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}


/* =========================================================
   V11 — single-layer splash transition + final states
   ========================================================= */
:root{
  --brand-black:#171A20;
  --brand-white:#FFFFFF;
  --brand-mustard:#E8D931;
}

/* ONE black launch layer sliding upward; Welcome already sits underneath */
#screen-splash{
  position:fixed !important;
  inset:0 !important;
  z-index:5000 !important;
  display:block !important;
  background:var(--brand-black) !important;
  transform:translateY(0);
  transition:transform .82s cubic-bezier(.65,0,.35,1) !important;
  will-change:transform;
}
#screen-splash.splash-exit{ transform:translateY(-100%) !important; }
#screen-splash.splash-gone{ display:none !important; }

#screen-splash .splash-screen{
  position:absolute !important;
  inset:0 !important;
  min-height:100vh !important;
  background:var(--brand-black) !important;
}
#screen-splash .splash-inner{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  padding:24px !important;
}

/* Star guaranteed exactly in circle center */
#screen-splash .splash-logo-circle{
  position:relative !important;
  width:94px !important;
  height:94px !important;
  flex:0 0 94px !important;
  border-radius:50% !important;
  background:#FFFFFF !important;
  margin:0 auto 26px !important;
  padding:0 !important;
  overflow:hidden !important;
}
#screen-splash .splash-logo-circle span{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--brand-black) !important;
  font:38px/1 Arial,sans-serif !important;
}

/* Uber-like launch feel: subtle light pulse, then the whole screen slides away */
#screen-splash .splash-logo-circle,
#screen-splash .splash-inner h1,
#screen-splash .splash-inner p{
  animation:launchPulse 1.12s ease-in-out both;
}
@keyframes launchPulse{
  0%{opacity:.25}
  48%{opacity:1}
  100%{opacity:1}
}
#screen-splash .splash-inner h1{
  color:#fff !important;
  font-size:31px !important;
  line-height:1.45 !important;
  margin:0 0 10px !important;
}
#screen-splash .splash-inner p{
  color:#fff !important;
  font-size:16px !important;
  line-height:1.8 !important;
  margin:0 !important;
  opacity:.92 !important;
  max-width:430px;
}

/* Welcome mark centered too */
.visual-circle{
  display:grid !important;
  place-items:center !important;
  text-align:center !important;
  line-height:1 !important;
}
.visual-circle.brand-mark-placeholder{
  font-family:Arial,sans-serif !important;
}

/* Account/user chip: mustard fill, no outline */
.user-chip,
.account-chip,
.profile-chip,
.global-user-avatar{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  border:0 !important;
  box-shadow:none !important;
}
.user-chip *,
.account-chip *,
.profile-chip *,
.global-user-avatar *{
  color:var(--brand-black) !important;
}

/* "مشاهده برنامه امروز": mustard fill, no outline */
.dashboard-today-btn{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  border:0 !important;
  box-shadow:none !important;
}
.dashboard-today-btn:hover{
  background:var(--brand-mustard) !important;
  color:var(--brand-black) !important;
  filter:brightness(.97);
}

/* Goal selection: full mustard before auto advance */
#screen-goal .goal-auto-next.is-selected{
  background:var(--brand-mustard) !important;
  border:1px solid var(--brand-black) !important;
  color:var(--brand-black) !important;
}

/* Remove leftover spacing where text Back buttons used to be */
#screen-personal .navigation-row,
#screen-foods .navigation-row{
  justify-content:center !important;
}

/* Result navigation: white area, strong mustard divider only */
#screen-result .result-tabs-shell{
  background:#FFFFFF !important;
  border:0 !important;
  border-bottom:4px solid var(--brand-mustard) !important;
  border-radius:0 !important;
  padding:0 0 13px !important;
  box-shadow:none !important;
}

/* PDF centered with real space from divider */
#screen-result .navigation-row{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  margin-top:30px !important;
  padding-top:18px !important;
}
#screen-result #mock_pdf,
#screen-result .result-pdf-btn,
#screen-result .centered-pdf-btn{
  display:block !important;
  float:none !important;
  position:static !important;
  width:220px !important;
  max-width:85% !important;
  margin:0 auto !important;
  text-align:center !important;
  background:#FFFFFF !important;
  color:var(--brand-black) !important;
  border:1px solid var(--brand-black) !important;
}

@media(max-width:650px){
  #screen-splash .splash-logo-circle{
    width:84px !important;
    height:84px !important;
    flex-basis:84px !important;
  }
  #screen-splash .splash-logo-circle span{
    font-size:34px !important;
  }
  #screen-splash .splash-inner h1{
    font-size:27px !important;
  }
}

/* V11 integrated-server compatibility */
#legacy-compat-inputs{display:none!important}
.meal-panel{display:none!important}.meal-panel.is-active{display:block!important}
.food-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.food-form-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.integrated-review{border:1px solid var(--brand-mustard,#E8D931);border-radius:16px;overflow:hidden;background:#fff}.integrated-review .review-row{display:grid;grid-template-columns:minmax(120px,.7fr) 1.3fr;gap:12px;padding:13px 15px;border-bottom:1px solid rgba(232,217,49,.45)}.integrated-review .review-row:last-child{border-bottom:0}
.dt-mobile-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.real-output-panel{width:100%}.real-summary{margin:18px 0}
.calculate-btn{min-width:220px}
@media(max-width:650px){.food-form-grid,.food-form-grid.two-col{grid-template-columns:1fr!important}.integrated-review .review-row{grid-template-columns:1fr;gap:4px}.dt-mobile-wrap{overflow-x:auto}.dt-mobile-wrap table{font-size:11px!important}.dt-mobile-wrap th,.dt-mobile-wrap td{white-space:normal!important;padding:6px 4px!important}.real-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* =========================================================
   V13 — mobile food-card selectors + integrated result fixes
   ========================================================= */
.chip-select-field{
  width:100%;
  margin:0 0 22px;
  padding:0;
}
.chip-select-label{
  margin:0 0 10px !important;
  font-size:15px !important;
  font-weight:800 !important;
  color:var(--brand-black,#171A20) !important;
  text-align:right;
}
.chip-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  width:100%;
}
.legacy-select-chip{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-width:0;
  min-height:46px;
  padding:9px 8px;
  border:1px solid var(--brand-mustard,#E8D931);
  border-radius:12px;
  background:#fff;
  color:var(--brand-black,#171A20);
  font:inherit;
  font-size:13px;
  font-weight:650;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
  cursor:pointer;
  box-shadow:none;
}
.legacy-select-chip:hover{
  background:color-mix(in srgb,var(--brand-mustard,#E8D931) 20%,white);
}
.legacy-select-chip.is-selected{
  background:var(--brand-mustard,#E8D931);
  border-color:var(--brand-black,#171A20);
  color:var(--brand-black,#171A20);
}
.legacy-real-select{display:none!important;}
.calculate-btn.is-loading{opacity:.72;pointer-events:none;}

/* DataTables inside custom screens must fit phone width. */
.dt-mobile-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.dt-mobile-wrap .dataTables_wrapper{width:100%!important;max-width:100%!important;}

@media(max-width:650px){
  .chip-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .legacy-select-chip{min-height:44px;padding:8px 6px;font-size:12.5px;}
  .chip-select-label{font-size:14px!important;}
  .food-form-grid,.food-form-grid.two-col{display:block!important;}
  .food-selection-panel{overflow:visible!important;}
}
@media(max-width:380px){
  .chip-grid{grid-template-columns:1fr 1fr;}
  .legacy-select-chip{font-size:12px;}
}


/* V14 result transition helper */
.result-loading-note{
  margin:12px auto 16px;
  padding:10px 14px;
  max-width:520px;
  text-align:center;
  background:#fff;
  border-bottom:3px solid var(--brand-mustard);
  color:var(--brand-black);
  font-size:14px;
}


/* =========================================================
   V15 — REAL RESULTS STYLED LIKE THE APPROVED MOCK
   No DataTables chrome/search/pagination; lightweight HTML.
   ========================================================= */

.mock-result-wrap{
  width:100%;
  margin-top:16px;
}

.mock-table-shell{
  width:100%;
  overflow:hidden;
  background:#fff;
  border-radius:16px;
  border:1px solid var(--brand-mustard);
}

.mock-result-table{
  width:100%;
  border-collapse:collapse;
  table-layout:auto;
  direction:rtl;
  background:#fff;
  color:var(--brand-black);
  font-family:'Vazirmatn',Tahoma,sans-serif;
}

.mock-result-table thead th{
  background:color-mix(in srgb, var(--brand-mustard) 28%, white);
  color:var(--brand-black);
  font-weight:800;
  text-align:center;
  padding:12px 10px;
  border-bottom:2px solid var(--brand-mustard);
  border-left:1px solid color-mix(in srgb, var(--brand-mustard) 35%, white);
  white-space:normal;
}

.mock-result-table tbody td{
  background:#fff;
  color:var(--brand-black);
  text-align:center;
  vertical-align:middle;
  padding:11px 10px;
  border-bottom:1px solid color-mix(in srgb, var(--brand-mustard) 22%, white);
  border-left:1px solid color-mix(in srgb, var(--brand-mustard) 22%, white);
  line-height:1.55;
}

.mock-result-table tbody tr:last-child td{
  border-bottom:0;
}

.mock-result-table th:last-child,
.mock-result-table td:last-child{
  border-left:0;
}

/* No gray zebra striping */
.mock-result-table tbody tr:nth-child(even) td{
  background:#fff;
}

/* Nutrition detail table keeps sections visually clear */
.nutrition-detail-table .mock-result-table tbody tr td:first-child{
  font-weight:700;
}

/* Recommendations become cards, not a DataTable */
.mock-advice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.mock-advice-card{
  background:var(--brand-mustard);
  color:var(--brand-black);
  border:1px solid var(--brand-black);
  border-radius:16px;
  padding:16px 18px;
  box-shadow:none;
  text-align:right;
}
.mock-advice-card p{
  margin:0 0 7px;
  color:var(--brand-black);
  line-height:1.75;
  font-size:14px;
}
.mock-advice-card p:last-child{
  margin-bottom:0;
}

.mock-empty-state{
  width:100%;
  padding:22px;
  text-align:center;
  background:#fff;
  border-bottom:3px solid var(--brand-mustard);
}

/* Results buttons: save first, PDF below */
#screen-result .result-download-row{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  margin-top:26px !important;
  padding-top:8px !important;
}
#screen-result .result-download-row #save_plan,
#screen-result .result-download-row #download{
  width:230px !important;
  max-width:88% !important;
  margin:0 auto !important;
  text-align:center !important;
}

/* Hide the old transient note once outputs start populating more gracefully */
#screen-result .result-loading-note{
  margin-bottom:12px;
}

/* Desktop: cap very wide result area for visual polish */
@media(min-width:900px){
  #screen-result .result-panel{
    max-width:1120px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* Mobile: no horizontal drag; cells wrap and shrink intelligently */
@media(max-width:650px){
  .mock-table-shell{
    border-radius:13px;
    overflow:visible;
  }

  .mock-result-table{
    width:100%;
    table-layout:fixed;
    font-size:10.5px;
  }

  .mock-result-table thead th{
    font-size:10px;
    padding:8px 3px;
    line-height:1.35;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .mock-result-table tbody td{
    font-size:10.5px;
    padding:8px 3px;
    line-height:1.4;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .mock-advice-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .mock-advice-card{
    padding:14px;
  }
}

@supports not (background: color-mix(in srgb, #000 50%, white)) {
  .mock-result-table thead th{background:#F6F0A0;}
  .mock-result-table thead th,
  .mock-result-table tbody td{border-color:#F3EEA0;}
}


/* =========================================================
   V16 — RESULT LAYOUT MATCHING THE APPROVED MOCK
   ========================================================= */

/* -------- Meal plan: no generic table header -------- */
.meal-plan-sections{
  width:100%;
  display:grid;
  gap:22px;
}

.meal-plan-section{
  background:#fff;
  border:0;
  padding:0;
}

.meal-plan-section-title{
  width:100%;
  text-align:right;
  direction:rtl;
  font-size:19px;
  font-weight:900;
  color:var(--brand-black);
  padding:2px 2px 8px;
}

.meal-plan-section-rule{
  width:100%;
  height:4px;
  background:var(--brand-mustard);
  border-radius:4px;
  margin-bottom:8px;
}

.meal-plan-items{
  display:grid;
  gap:0;
}

.meal-plan-item{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);
  align-items:center;
  gap:12px;
  direction:rtl;
  padding:11px 8px;
  border-bottom:1px solid color-mix(in srgb, var(--brand-mustard) 24%, white);
}

.meal-plan-item:last-child{
  border-bottom:0;
}

.meal-plan-food{
  text-align:right;
  font-weight:700;
  line-height:1.55;
  color:var(--brand-black);
}

.meal-plan-value{
  text-align:left;
  direction:rtl;
  line-height:1.55;
  color:var(--brand-black);
}

.meal-plan-empty{
  padding:10px 6px;
  text-align:right;
  color:#666;
}

/* -------- Result tables: right-most first column -------- */
.mock-result-table{
  direction:rtl !important;
}

.mock-result-table th:first-child,
.mock-result-table td:first-child{
  text-align:right !important;
  font-weight:700;
}

.mock-result-table th:not(:first-child),
.mock-result-table td:not(:first-child){
  text-align:center !important;
}

/* Nutrition: definition on right, value on left */
.nutrition-detail-table .mock-result-table{
  table-layout:fixed;
}
.nutrition-detail-table .mock-result-table th:first-child,
.nutrition-detail-table .mock-result-table td:first-child{
  width:68%;
}
.nutrition-detail-table .mock-result-table th:nth-child(2),
.nutrition-detail-table .mock-result-table td:nth-child(2){
  width:32%;
  text-align:left !important;
}

/* -------- Recommendations: numbered clean lines -------- */
.recommendation-list{
  display:grid;
  gap:11px;
  width:100%;
}

.recommendation-line{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:9px;
  direction:rtl;
  background:#FFFFFF;
  color:var(--brand-black);
  border:1.5px solid var(--brand-mustard);
  border-radius:14px;
  padding:14px 16px;
  line-height:1.75;
}

.recommendation-number{
  font-weight:900;
  min-width:24px;
  text-align:right;
}

.recommendation-text{
  text-align:right;
}

.recommendation-heading{
  margin-top:8px;
  padding:12px 4px 7px;
  border-bottom:4px solid var(--brand-mustard);
  font-weight:900;
  font-size:17px;
  text-align:right;
  direction:rtl;
  color:var(--brand-black);
  background:#fff;
}

/* Old recommendation-card layout is no longer used. */
.mock-advice-grid,
.mock-advice-card{
  all:unset;
}

/* Mobile refinements */
@media(max-width:650px){
  .meal-plan-section-title{
    font-size:17px;
  }

  .meal-plan-item{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    padding:10px 4px;
    gap:8px;
    font-size:13px;
  }

  .mock-result-table{
    font-size:10px !important;
  }

  .nutrition-detail-table .mock-result-table th:first-child,
  .nutrition-detail-table .mock-result-table td:first-child{
    width:70%;
  }

  .nutrition-detail-table .mock-result-table th:nth-child(2),
  .nutrition-detail-table .mock-result-table td:nth-child(2){
    width:30%;
  }

  .recommendation-line{
    padding:12px 13px;
    gap:7px;
    font-size:13px;
  }
}


/* =========================================================
   V17 — HOME POSITIONING
   ========================================================= */
.welcome-positioning-copy{
  margin:0 0 22px !important;
  max-width:620px;
  color:var(--muted) !important;
  font-size:16px !important;
  line-height:1.95 !important;
  text-align:right !important;
}

.welcome-copy h1{
  max-width:720px;
}

@media(max-width:650px){
  .welcome-positioning-copy{
    font-size:14px !important;
    line-height:1.9 !important;
    margin-bottom:18px !important;
  }
  .welcome-copy h1{
    font-size:23px !important;
    line-height:1.65 !important;
  }
}


/* V18.1 — long option lists */
.food-more-btn{display:block;margin:12px 0 0 auto;padding:9px 18px;border:0;border-radius:12px;background:var(--brand-mustard);color:var(--brand-black);font-family:'Vazirmatn',Tahoma,sans-serif;font-weight:800;cursor:pointer;box-shadow:none;}
.food-more-btn:hover{filter:brightness(.97);}
@media(max-width:650px){.food-more-btn{width:100%;text-align:center;margin-top:10px;}}


/* =========================================================
   V20 — saved program / printable day
   ========================================================= */
.result-document-head,
.saved-document-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin:8px 0 18px;
}
.result-document-head h2,
.saved-document-header h2{
  margin-bottom:5px;
}
.result-user-line{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-size:14px;
}
#result-user-name,
#saved-user-name{
  font-size:16px;
  font-weight:900;
}
#result-today-date,
.saved-program-date{
  font-size:13px;
  opacity:.72;
}
.autosave-badge,
.saved-day-badge{
  background:var(--brand-mustard);
  color:var(--brand-black);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.day-card{
  font-family:'Vazirmatn',Tahoma,sans-serif;
}
button.day-card{
  width:100%;
  text-align:right;
  cursor:pointer;
}
.day-card.has-saved-program{
  outline:2px solid var(--brand-mustard);
  outline-offset:2px;
}
.program-status-note{
  margin:-3px 0 16px;
  font-size:13px;
  line-height:1.8;
}
.saved-program-sections{
  display:grid;
  gap:18px;
}
.saved-result-section{
  border:1px solid #111;
  border-radius:16px;
  padding:18px;
  background:#fff;
}
.saved-result-section > h3{
  margin:0 0 14px;
  padding-bottom:10px;
  border-bottom:4px solid var(--brand-mustard);
}
.saved-section-body .result-tabs,
.saved-section-body .result-tabs-shell{
  display:none !important;
}
.saved-section-body .result-panel{
  display:block !important;
}
.saved-section-body .result-panel > h3{
  display:none;
}
.saved-section-body .real-output-panel{
  display:block !important;
}
.saved-program-card{
  direction:rtl;
}

@media(max-width:650px){
  .result-document-head,
  .saved-document-header{
    flex-direction:column;
    align-items:stretch;
  }
  .autosave-badge,
  .saved-day-badge{
    align-self:flex-start;
  }
}

/* Browser Print / Save as PDF.
   Keeps the same result design but removes app navigation and buttons. */
@media print{
  @page{
    size:A4;
    margin:12mm;
  }
  body.print-live-program *,
  body.print-saved-program *{
    visibility:hidden !important;
  }
  body.print-live-program #screen-result,
  body.print-live-program #screen-result *,
  body.print-saved-program #screen-saved-program,
  body.print-saved-program #screen-saved-program *{
    visibility:visible !important;
  }
  body.print-live-program #screen-result,
  body.print-saved-program #screen-saved-program{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
  }
  body.print-live-program #screen-result .screen-card,
  body.print-saved-program #screen-saved-program .screen-card{
    box-shadow:none !important;
    border:0 !important;
    max-width:none !important;
    width:100% !important;
    padding:0 !important;
  }
  body.print-live-program .screen-topbar,
  body.print-live-program .result-tabs-shell,
  body.print-live-program .result-download-row,
  body.print-live-program #result-loading-note,
  body.print-saved-program .screen-topbar,
  body.print-saved-program .result-download-row{
    display:none !important;
  }
  body.print-live-program .result-panel{
    display:block !important;
    break-inside:avoid;
    margin:0 0 16px !important;
  }
  body.print-live-program .result-panel > h3{
    display:block !important;
    border-bottom:4px solid var(--brand-mustard);
    padding-bottom:8px;
  }
  .saved-result-section{
    break-inside:avoid;
    border:1px solid #222 !important;
    margin-bottom:14px;
  }
  table{
    width:100% !important;
    font-size:10pt !important;
  }
}


/* =========================================================
   V21 — weekly day cards + clean multi-page PDF
   ========================================================= */
.weekly-day-card{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
}
.weekly-day-card:disabled{
  cursor:not-allowed;
}
.print-page-header{
  display:none;
}

/* PDF / Print */
@media print{
  *{
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }

  @page{
    size:A4;
    margin:24mm 12mm 15mm;
  }

  /* Dedicated header repeats at the top of each printed page in modern browsers. */
  .print-page-header{
    display:grid !important;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    position:fixed !important;
    top:-17mm;
    right:0;
    left:0;
    z-index:99999;
    min-height:12mm;
    padding:0 2mm 4mm;
    border-bottom:2px solid #111;
    background:#fff !important;
    color:#111 !important;
    direction:rtl;
  }
  .print-user-name{
    justify-self:start;
    font-weight:900;
    font-size:10.5pt;
  }
  .print-app-name{
    justify-self:center;
    font-weight:900;
    font-size:12pt;
    white-space:nowrap;
  }
  .print-program-date{
    justify-self:end;
    font-size:10pt;
    font-weight:700;
  }

  body.print-live-program .result-document-head,
  body.print-saved-program .saved-document-header,
  body.print-live-program .autosave-badge,
  body.print-live-program .result-tabs-shell,
  body.print-live-program .result-download-row,
  body.print-saved-program .result-download-row,
  body.print-live-program .screen-topbar,
  body.print-saved-program .screen-topbar,
  body.print-live-program #result-loading-note{
    display:none !important;
  }

  /* Do not print app-only controls or footer buttons. */
  body.print-live-program button,
  body.print-live-program .btn,
  body.print-live-program .shiny-download-link,
  body.print-saved-program button,
  body.print-saved-program .btn,
  body.print-saved-program .shiny-download-link{
    display:none !important;
  }

  /* The content begins directly under the repeating header. */
  body.print-live-program #screen-result .screen-card,
  body.print-saved-program #screen-saved-program .screen-card{
    padding-top:0 !important;
  }

  /* Preserve the mustard visual language in print. */
  body.print-live-program .result-panel > h3,
  body.print-saved-program .saved-result-section > h3{
    border-bottom:4px solid #E8D931 !important;
  }
  body.print-live-program .summary-strip > div,
  body.print-saved-program .summary-strip > div{
    background:#fff !important;
    border:1px solid #111 !important;
  }
  body.print-live-program .meal-result-section > h4,
  body.print-saved-program .meal-result-section > h4{
    border-bottom-color:#E8D931 !important;
  }

  /* Avoid a blank first page caused by app chrome. */
  body.print-live-program #screen-result,
  body.print-saved-program #screen-saved-program{
    top:0 !important;
  }

  /* Keep each content block together when practical, but allow long tables to flow. */
  .saved-result-section,
  .result-panel{
    break-inside:auto !important;
    page-break-inside:auto !important;
  }
  .meal-result-section,
  .summary-strip,
  table tr{
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }

  /* Ensure the app-only headline "برنامه غذایی امروز" never appears in PDF. */
  body.print-live-program #result-plan > h3{
    display:none !important;
  }
}


/* =========================================================
   V22 — clean PDF pages
   Every result tab starts on a fresh page.
   ========================================================= */
.section-print-header{
  display:none;
}

@media print{
  *{
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }

  @page{
    size:A4;
    margin:12mm 12mm 14mm;
  }

  /* Keep print-mode content only. */
  body.print-live-program .screen-topbar,
  body.print-live-program .result-document-head,
  body.print-live-program .result-tabs-shell,
  body.print-live-program .result-download-row,
  body.print-live-program #result-loading-note,
  body.print-live-program .autosave-badge,
  body.print-saved-program .screen-topbar,
  body.print-saved-program .saved-document-header,
  body.print-saved-program .result-download-row,
  body.print-live-program button,
  body.print-live-program .btn,
  body.print-live-program .shiny-download-link,
  body.print-saved-program button,
  body.print-saved-program .btn,
  body.print-saved-program .shiny-download-link{
    display:none !important;
  }

  body.print-live-program #screen-result,
  body.print-saved-program #screen-saved-program{
    position:static !important;
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
  }

  body.print-live-program #screen-result .screen-card,
  body.print-saved-program #screen-saved-program .screen-card{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    box-shadow:none !important;
    background:#fff !important;
  }

  /* One tab/section starts on a new printed page. */
  body.print-live-program .result-panel,
  body.print-saved-program .saved-result-section{
    display:block !important;
    page-break-before:always !important;
    break-before:page !important;
    page-break-inside:auto !important;
    break-inside:auto !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:#fff !important;
  }

  body.print-live-program .result-panel:first-of-type,
  body.print-saved-program .saved-result-section:first-child{
    page-break-before:auto !important;
    break-before:auto !important;
  }

  /* Header at top of each tab/page. */
  .section-print-header{
    display:grid !important;
    grid-template-columns:1fr auto 1fr;
    align-items:start;
    gap:8px;
    direction:rtl;
    min-height:18mm;
    padding:0 0 6mm;
    margin:0 0 8mm;
    border-bottom:2px solid #111 !important;
    color:#111 !important;
    background:#fff !important;
  }

  .section-print-user{
    justify-self:start;
    font-size:10.5pt;
    font-weight:900;
  }

  .section-print-center{
    justify-self:center;
    text-align:center;
    line-height:1.45;
  }

  .section-print-center strong{
    display:block;
    font-size:12.5pt;
    font-weight:900;
    white-space:nowrap;
  }

  .section-print-goal{
    display:block;
    margin-top:2px;
    font-size:9.5pt;
    font-weight:700;
  }

  .section-print-date{
    justify-self:end;
    font-size:10pt;
    font-weight:700;
    white-space:nowrap;
  }

  /* Preserve the exact visual hierarchy and mustard accents. */
  body.print-live-program .result-panel > h3,
  body.print-saved-program .saved-result-section > h3{
    display:block !important;
    margin:0 0 6mm !important;
    padding:0 0 3mm !important;
    border-bottom:4px solid #E8D931 !important;
    color:#111 !important;
    background:#fff !important;
  }

  body.print-live-program #result-plan > h3{
    display:none !important;
  }

  body.print-live-program .summary-strip > div,
  body.print-saved-program .summary-strip > div{
    background:#fff !important;
    border:1.2px solid #111 !important;
    color:#111 !important;
  }

  body.print-live-program .meal-result-section > h4,
  body.print-saved-program .meal-result-section > h4,
  body.print-live-program table th,
  body.print-saved-program table th{
    border-color:#E8D931 !important;
  }

  body.print-live-program table,
  body.print-saved-program table{
    width:100% !important;
    border-collapse:collapse !important;
  }

  body.print-live-program table tr,
  body.print-saved-program table tr,
  .meal-result-section,
  .summary-strip{
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }

  /* Never print the old generic print header from V21 if it remains cached. */
  .print-page-header{
    display:none !important;
  }
}


/* =========================================================
   V23 — final PDF cleanup
   1) no blank first page
   2) no app buttons in PDF
   3) page numbers
   ========================================================= */
@media print {

  /* The first printed section must start on page 1, not after a forced break. */
  body.print-live-program #result-plan,
  body.print-saved-program #saved-plan-content > .saved-result-section:first-child {
    page-break-before: auto !important;
    break-before: auto !important;
  }

  /* Every following section begins on a new page. */
  body.print-live-program #result-nutrients,
  body.print-live-program #result-groups,
  body.print-live-program #result-meals,
  body.print-live-program #result-advice,
  body.print-saved-program #saved-plan-content > .saved-result-section:not(:first-child) {
    page-break-before: always !important;
    break-before: page !important;
  }

  /* Absolutely never print app controls. */
  body.print-live-program .result-download-row,
  body.print-live-program #view_saved_plan,
  body.print-live-program #print_pdf,
  body.print-live-program #download,
  body.print-live-program .result-pdf-btn,
  body.print-saved-program .result-download-row,
  body.print-saved-program #saved_print_pdf,
  body.print-saved-program #saved_back_programs,
  body.print-saved-program .result-pdf-btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Reserve footer space for page numbers. */
  @page {
    size: A4;
    margin: 12mm 12mm 18mm;
    @bottom-center {
      content: "صفحه " counter(page);
      font-size: 9pt;
      font-family: sans-serif;
      color: #444;
    }
  }
}


/* =========================================================
   V13.1 — Safari-safe print controls + visible page number footer
   ========================================================= */
.print-page-number-footer{
  display:none;
}

@media print{
  .print-page-number-footer{
    display:block !important;
    position:fixed !important;
    left:0;
    right:0;
    bottom:2mm;
    text-align:center;
    font-size:9pt;
    font-weight:700;
    color:#444 !important;
    background:#fff !important;
    z-index:999999;
  }

  .print-page-number-footer::after{
    content:counter(page);
  }

  /* Extra hard CSS fallback in addition to JS inline hiding. */
  #view_saved_plan,
  #print_pdf,
  #saved_print_pdf,
  #saved_back_programs,
  #download,
  .result-download-row{
    display:none !important;
    visibility:hidden !important;
  }
}


/* =========================================================
   V14 — Tracking date input desktop containment
   Fixes the date picker/input extending outside its card on desktop.
   Mobile behavior is unchanged.
   ========================================================= */
#screen-tracking .tracking-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;
  max-width:100%;
}
#screen-tracking .tracking-grid > *{
  min-width:0;
  max-width:100%;
}
#screen-tracking .shiny-input-container,
#screen-tracking .form-group,
#screen-tracking .input-group{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
#screen-tracking input,
#screen-tracking input[type="date"],
#screen-tracking .form-control{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
#screen-tracking .input-group{
  display:flex !important;
}
#screen-tracking .input-group .form-control{
  flex:1 1 auto !important;
  width:1% !important;
}
#screen-tracking .input-group-addon{
  flex:0 0 auto !important;
}

@media(max-width:650px){
  #screen-tracking .tracking-grid{
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   V15 — tracking date picker desktop visibility
   ========================================================= */
#screen-tracking,
#screen-tracking .screen-card,
#screen-tracking .tracking-grid{
  overflow:visible !important;
}

.datepicker.datepicker-dropdown{
  z-index:100000 !important;
}

@media(min-width:651px){
  #screen-tracking .screen-card{
    overflow:visible !important;
  }
}


/* ===== V20 account access ===== */
.auth-card{max-width:520px!important}
.auth-panel{margin-top:10px}
.auth-panel-title{font-size:21px;font-weight:800;margin:8px 0 6px}
.auth-panel-copy{margin:0 0 18px;color:#566963;line-height:1.8}
.auth-main-btn,.auth-guest-btn{width:100%;margin-top:10px}
.auth-inline-link{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  color:var(--green)!important;
  padding:4px 0!important;
  min-height:auto!important;
  height:auto!important;
  font-family:inherit!important;
  font-weight:600!important;
  text-decoration:none!important;
}
.auth-inline-link:hover{text-decoration:underline!important;background:transparent!important}
.strong-link{font-weight:800!important;margin-right:5px}
.auth-back-link{display:block!important;margin:15px auto 0!important}
.auth-switch-row{
  display:flex;align-items:center;justify-content:center;gap:4px;
  margin-top:17px;color:#566963;flex-wrap:wrap
}
.auth-guest-divider{
  display:flex;align-items:center;gap:12px;margin:24px 0 8px;color:#7b8884
}
.auth-guest-divider:before,.auth-guest-divider:after{
  content:"";height:1px;background:#e0e7e4;flex:1
}
.auth-message{
  border-radius:12px;padding:10px 12px;margin:8px 0 2px;
  font-size:13px;line-height:1.7
}
.auth-message.is-error{display:block!important;background:#fff3f3;color:#a52b2b;border:1px solid #f1cccc}
.auth-message.is-success{display:block!important;background:#f0f8f4;color:#236344;border:1px solid #cce4d7}
#screen-auth .form-group{margin-bottom:14px}
#screen-auth label{font-weight:700;color:#24332e}
@media(max-width:600px){
  .auth-card{padding-left:20px!important;padding-right:20px!important}
  .auth-panel-title{font-size:20px}
}


/* ===== V22 exact UI corrections ===== */

/* Top account control: hamburger + ONE mustard name badge. No separate name and no K. */
.global-account-trigger > span{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
.global-user-avatar.global-user-name{
  width:auto!important;
  min-width:70px!important;
  height:auto!important;
  min-height:42px!important;
  padding:9px 16px!important;
  border-radius:999px!important;
  background:var(--brand-mustard)!important;
  color:var(--brand-black)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  font-weight:800!important;
  line-height:1.3!important;
  white-space:nowrap!important;
}
@media(max-width:700px){
  .global-user-avatar.global-user-name{
    display:inline-flex!important;
    min-width:62px!important;
    padding:8px 12px!important;
    font-size:13px!important;
  }
}

/* Dashboard account chip: show the logged-in user's name, no person icon/text. */
.dashboard-user-name{
  background:var(--brand-mustard)!important;
  color:var(--brand-black)!important;
  font-weight:800!important;
}

/* Goal choices: no icons/emojis; labels exactly centered. */
#screen-goal .choice-card{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  min-height:92px!important;
  padding:18px 14px!important;
}
#screen-goal .choice-card h3{
  margin:0!important;
  width:100%!important;
  text-align:center!important;
}

/* Recommendations: ONLY each recommendation gets a mustard border.
   No mustard fill and no extra outer recommendation frame. */
#result-advice .recommendation-output,
#view_recommendations,
#view_recommendations > .recommendation-list{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding-left:0!important;
  padding-right:0!important;
}
#result-advice .recommendation-line,
#view_recommendations .recommendation-line{
  background:#FFFFFF!important;
  border:1.5px solid var(--brand-mustard)!important;
  color:var(--brand-black)!important;
  box-shadow:none!important;
}
#result-advice .recommendation-line *,
#view_recommendations .recommendation-line *{
  color:var(--brand-black)!important;
}


/* ===== V23.4: make password recovery an unmistakable clickable control ===== */
.auth-forgot-btn{
  display:block!important;
  width:auto!important;
  margin:10px 0 6px auto!important;
  padding:7px 10px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#171a1f!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.5!important;
  text-decoration:underline!important;
  text-underline-offset:4px!important;
  cursor:pointer!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
.auth-forgot-btn:hover,.auth-forgot-btn:focus{
  color:#566963!important;
  background:transparent!important;
  outline:2px solid #E8D931!important;
  outline-offset:2px!important;
  border-radius:6px!important;
}

/* Saved program: educational exchange tables (collapsed until opened) */
#screen-saved-program .exchange-reference details{border:2px solid #D8AE24;border-radius:10px;margin:10px 0;overflow:hidden}
#screen-saved-program .exchange-reference summary{padding:12px;background:#FFF8D8;cursor:pointer;font-weight:700}
#screen-saved-program .exchange-reference table{width:100%;border-collapse:collapse}
#screen-saved-program .exchange-reference th,#screen-saved-program .exchange-reference td{border:1px solid #D8AE24;padding:8px;text-align:right}

/* Trial: identical action appearance for all days; mustard outline, cream hover, black active. */
#screen-result .result-download-row > .btn,
#screen-result .result-download-row > button {
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width: min(100%, 310px) !important;
  max-width: 100% !important;
  min-height: 48px !important;
  margin: 0 auto !important;
  padding: 10px 16px !important;
  text-align:center !important;
  white-space:normal !important;
  background:#fff !important;
  color:#111 !important;
  border:2px solid var(--brand-mustard, #E8D931) !important;
  border-radius:12px !important;
  box-shadow:none !important;
  transition:background-color .15s ease, color .15s ease !important;
}
#screen-result .result-download-row > .btn:hover,
#screen-result .result-download-row > button:hover {
  background:var(--brand-mustard-lighter, #FCFAE5) !important;
  color:#111 !important;
}
#screen-result .result-download-row > .btn:active,
#screen-result .result-download-row > button:active,
#screen-result .result-download-row > .btn:focus-visible,
#screen-result .result-download-row > button:focus-visible {
  background:#111 !important;
  color:#fff !important;
}


/* Consistent three result actions: same width, mustard stroke, cream hover,
   dark pressed/focused state. Override older primary/secondary and PDF rules. */
#screen-result .navigation-row.result-download-row {
  display:flex !important; flex-direction:column !important;
  align-items:center !important; justify-content:center !important;
  gap:14px !important; width:100% !important;
}
#screen-result .navigation-row.result-download-row > button.btn {
  float:none !important; position:relative !important;
  box-sizing:border-box !important; flex:0 0 auto !important;
  width:min(100%, 360px) !important; max-width:calc(100% - 20px) !important;
  min-width:0 !important; min-height:58px !important;
  margin:0 auto !important; padding:12px 18px !important;
  display:flex !important; align-items:center !important;
  justify-content:center !important; text-align:center !important;
  font:inherit !important; font-weight:700 !important;
  white-space:normal !important; line-height:1.5 !important;
  background:#fff !important; color:#191b20 !important;
  border:2px solid #D8AE24 !important; border-radius:16px !important;
  box-shadow:none !important; outline:none !important;
  transition:background-color .15s ease,color .15s ease !important;
}
#screen-result .navigation-row.result-download-row > button.btn:hover:not(:disabled) {
  background:#FFF8D8 !important; color:#191b20 !important;
  border-color:#D8AE24 !important;
}
#screen-result .navigation-row.result-download-row > button.btn:active,
#screen-result .navigation-row.result-download-row > button.btn:focus-visible {
  background:#191b20 !important; color:white !important;
  border-color:#D8AE24 !important;
}
/* The editing button is shown/hidden by the day-state JavaScript using
   inline display with !important; avoid forcing it visible on locked days. */

/* Unified result/saved action buttons, using the exact bright mustard divider. */
#screen-result .navigation-row.result-download-row > button.btn,
#screen-saved-program .navigation-row.result-download-row > button.btn {
 background:#fff!important;color:#171A20!important;border:2px solid #E8D931!important;
 border-radius:16px!important;box-shadow:none!important;text-align:center!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:min(100%,360px)!important;max-width:calc(100% - 20px)!important;
 min-height:58px!important;margin:0 auto!important;padding:12px 18px!important;
 font-weight:700!important;opacity:1!important;
}
#screen-saved-program .navigation-row.result-download-row {
 display:flex!important;flex-direction:column!important;align-items:center!important;gap:14px!important;
}
#screen-result .navigation-row.result-download-row > button.btn:hover:not(.is-action-selected):not(:disabled),
#screen-saved-program .navigation-row.result-download-row > button.btn:hover:not(.is-action-selected):not(:disabled) {
 background:#FFF8D8!important;color:#171A20!important;
}
#screen-result .navigation-row.result-download-row > button.btn.is-action-selected,
#screen-saved-program .navigation-row.result-download-row > button.btn.is-action-selected,
#screen-result .navigation-row.result-download-row > button.btn:active,
#screen-saved-program .navigation-row.result-download-row > button.btn:active {
 background:#171A20!important;color:#fff!important;border-color:#171A20!important;
}
#screen-result .navigation-row.result-download-row > button.btn.is-action-selected *,
#screen-saved-program .navigation-row.result-download-row > button.btn.is-action-selected * {
 color:#fff!important;
}

/* FINAL action design: match the exact thin yellow divider and tabs. */
:root { --diet-action-yellow: #E8D931; }
#screen-result .result-download-row,
#screen-saved-program .result-download-row {
 display:flex!important; flex-direction:column!important; align-items:center!important;
 justify-content:center!important; gap:14px!important; width:100%!important;
}
#screen-result .result-download-row > button,
#screen-saved-program .result-download-row > button {
 box-sizing:border-box!important; position:static!important; float:none!important;
 flex:0 0 auto!important; width:min(100%,360px)!important; max-width:calc(100% - 20px)!important;
 min-height:58px!important; margin:0 auto!important; padding:12px 18px!important;
 display:flex!important; align-items:center!important; justify-content:center!important;
 background:#fff!important; color:#171A20!important;
 -webkit-text-fill-color:#171A20!important;
 border:2px solid var(--diet-action-yellow)!important; border-radius:16px!important;
 box-shadow:none!important; opacity:1!important; text-align:center!important;
 font-weight:700!important; line-height:1.5!important; text-shadow:none!important;
}
#screen-result .result-download-row > button:hover:not(:disabled):not(.is-action-selected),
#screen-saved-program .result-download-row > button:hover:not(:disabled):not(.is-action-selected) {
 background:#FFF9DE!important; color:#171A20!important; -webkit-text-fill-color:#171A20!important;
}
#screen-result .result-download-row > button.is-action-selected,
#screen-saved-program .result-download-row > button.is-action-selected,
#screen-result .result-download-row > button:active,
#screen-saved-program .result-download-row > button:active {
 background:#171A20!important; color:#fff!important; -webkit-text-fill-color:#fff!important;
 border-color:var(--diet-action-yellow)!important;
}
#screen-result .result-download-row > button.is-action-selected *,
#screen-saved-program .result-download-row > button.is-action-selected *,
#screen-result .result-download-row > button:active *,
#screen-saved-program .result-download-row > button:active * {
 color:#fff!important; -webkit-text-fill-color:#fff!important;
}
#day1_edit_choices:disabled { opacity:.75!important; cursor:not-allowed!important; }

#screen-result .result-download-row button.is-action-selected,
#screen-saved-program .result-download-row button.is-action-selected {
 background:#171A20!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border-color:#E8D931!important;
}
#screen-result .result-download-row button.is-action-selected *,
#screen-saved-program .result-download-row button.is-action-selected * {
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* NutriNovin brand assets — visual only; no diet calculation changes */
#screen-splash .splash-logo-circle.nutrinovin-splash-logo{width:min(430px,88vw)!important;height:auto!important;aspect-ratio:3/2!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important;margin:0 auto 20px!important;display:flex!important;align-items:center!important;justify-content:center!important}
#screen-splash .nutrinovin-splash-logo img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
.global-brand-star.nutrinovin-header-mark{width:56px!important;height:56px!important;min-width:56px!important;overflow:hidden!important;background:#fff!important;border:1px solid #e7d9a6!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important}
.global-brand-star.nutrinovin-header-mark img{width:120%!important;max-width:none!important;height:100%!important;object-fit:contain!important}
.nutrinovin-header-copy{display:flex;flex-direction:column;gap:2px;line-height:1.3}
.nutrinovin-header-copy small{font-size:10px;font-weight:500;color:#555;line-height:1.4;max-width:340px}
.visual-circle.nutrinovin-welcome-logo{background:#fff!important;overflow:hidden!important;border-radius:20px!important;box-shadow:none!important;width:min(340px,80vw)!important;height:235px!important}
.visual-circle.nutrinovin-welcome-logo img{width:100%!important;height:100%!important;object-fit:contain!important}
@media(max-width:600px){.global-brand-star.nutrinovin-header-mark{width:44px!important;height:44px!important;min-width:44px!important}.nutrinovin-header-copy small{font-size:9px;max-width:190px}#screen-splash .splash-logo-circle.nutrinovin-splash-logo{width:min(350px,88vw)!important}}

/* NutriNovin round brand, responsive */
#screen-splash .splash-logo-circle.nutrinovin-splash-logo {width:min(360px,76vw)!important;height:auto!important;aspect-ratio:1/1!important;border-radius:50%!important;background:transparent!important;overflow:hidden!important;margin:0 auto 16px!important;}
#screen-splash .nutrinovin-splash-logo img {width:100%!important;height:100%!important;object-fit:contain!important;border-radius:50%!important;}
.global-brand-star.nutrinovin-header-mark {width:66px!important;height:66px!important;min-width:66px!important;padding:0!important;box-sizing:border-box!important;}
.global-brand-star.nutrinovin-header-mark img {width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;}
@media(max-width:600px){#screen-splash .splash-logo-circle.nutrinovin-splash-logo{width:min(310px,78vw)!important}.global-brand-star.nutrinovin-header-mark{width:52px!important;height:52px!important;min-width:52px!important}}

/* V12: Full circular brand, no clipping of text or icon */
#screen-splash .splash-logo-circle.nutrinovin-splash-logo {
 width:min(380px,78vw)!important;height:min(380px,78vw)!important;aspect-ratio:1/1!important;
 border-radius:50%!important;background:#fff!important;overflow:hidden!important;
 padding:0!important;margin:0 auto 16px!important;box-shadow:none!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
#screen-splash .splash-logo-circle.nutrinovin-splash-logo img {
 width:100%!important;height:100%!important;object-fit:contain!important;border-radius:50%!important;
 max-width:none!important;max-height:none!important;
}
#screen-welcome .visual-circle.nutrinovin-welcome-logo {
 width:min(350px,75vw)!important;height:min(350px,75vw)!important;aspect-ratio:1/1!important;
 border-radius:50%!important;overflow:hidden!important;background:#fff!important;
 padding:0!important;margin-inline:auto!important;
}
#screen-welcome .visual-circle.nutrinovin-welcome-logo img {
 width:100%!important;height:100%!important;object-fit:contain!important;border-radius:50%!important;
}
#screen-splash .splash-inner p {max-width:750px!important;margin-inline:auto!important;}
#screen-welcome .welcome-visual p {text-align:center!important;}
@media(max-width:600px){#screen-splash .splash-logo-circle.nutrinovin-splash-logo{width:min(300px,78vw)!important;height:min(300px,78vw)!important}}

/* V13: prevent old 94px flex basis and morphing from distorting launch logo. */
#screen-splash .splash-logo-circle.nutrinovin-splash-logo {
  box-sizing:border-box!important;flex:0 0 auto!important;
  width:min(380px,78vw)!important;height:min(380px,78vw)!important;
  min-width:0!important;min-height:0!important;
  aspect-ratio:1/1!important;overflow:hidden!important;border-radius:50%!important;
  background:#fff!important;transform:none!important;
  transition:none!important;animation:none!important;
}
#screen-splash .splash-logo-circle.nutrinovin-splash-logo img {
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;animation:none!important;
}
#screen-splash.morphing .splash-logo-circle.nutrinovin-splash-logo {
  width:min(380px,78vw)!important;height:min(380px,78vw)!important;
}
@media(max-width:600px){#screen-splash .splash-logo-circle.nutrinovin-splash-logo{width:min(300px,78vw)!important;height:min(300px,78vw)!important}}

/* V47: keep signed-in name visible in mobile header. */
@media (max-width:650px) {
  .global-topbar .global-user-name { display:inline-flex; max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; align-items:center; }
}

/* V58: keep new plan option visible in the account drawer. */
#account-drawer .drawer-menu #drawer_renew_plan {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  text-align: right !important;
}

/* V76: four real stages, mustard numeric controls, food grouping */
#screen-goal .progress-row-labeled,#screen-personal .progress-row-labeled,#screen-foods .progress-row-labeled,#screen-review .progress-row-labeled{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 20px;direction:rtl}
.progress-row-labeled span{height:auto;min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.5;padding:7px 4px;background:#252525!important;color:#fff;border-radius:11px;font-size:clamp(10px,2.4vw,13px);font-weight:700}
.progress-row-labeled span.active{background:#E9DE2D!important;color:#161616}
.progress-row-labeled span.done{background:#555!important;color:#fff}
#screen-personal .personal-number-fields{display:grid;gap:14px;margin:24px 0}
#screen-personal .personal-number-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#fff;border:1px solid #e7d99a;border-radius:21px;box-shadow:0 7px 22px rgba(75,61,0,.07)}
#screen-personal .personal-number-label{display:flex;flex-direction:column;gap:3px;min-width:80px}
#screen-personal .personal-number-label strong{font-size:19px}
#screen-personal .personal-number-label small{color:#666;font-size:12px}
#screen-personal .personal-number-controls{display:flex;align-items:center;gap:8px;direction:ltr}
#screen-personal .personal-number-controls .shiny-input-container{width:105px!important;margin:0!important}
#screen-personal .personal-number-controls input{height:46px;text-align:center;font-size:20px;font-weight:750;border:1px solid #dec862!important;background:#fff9db;border-radius:13px!important;padding:4px!important;direction:ltr}
#screen-personal .personal-step-btn{width:45px;height:46px;border:0;border-radius:13px;background:#E9DE2D;color:#111;font-size:27px;font-weight:700;cursor:pointer;touch-action:manipulation}
#screen-personal .personal-step-btn:active{background:#d4c824;transform:scale(.97)}
#screen-personal .navigation-row .primary-btn{background:#E9DE2D!important;color:#151515!important;border-color:#E9DE2D!important}
#screen-foods .food-selection-panel .chip-select-field,#screen-foods .food-selection-panel .nuts-breakfast-field{border:1px solid #eadb9a;border-radius:18px;padding:15px;background:#fff;margin-bottom:12px}
#screen-foods .food-selection-panel .chip-select-label{border-bottom:1px solid #f0e5bc;padding-bottom:10px;margin-bottom:12px}
@media(max-width:440px){#screen-personal .personal-number-row{padding:11px 9px;gap:6px}#screen-personal .personal-number-label{min-width:65px}#screen-personal .personal-number-controls{gap:5px}#screen-personal .personal-number-controls .shiny-input-container{width:85px!important}#screen-personal .personal-step-btn{width:37px;height:42px}}

/* V77 — mobile-first food selection: one open surface, clear mustard rules. */
#screen-foods .screen-card{box-sizing:border-box!important;min-width:0!important;}
#screen-foods .meal-tabs{border:0!important;border-bottom:4px solid #E8D931!important;border-radius:0!important;padding:0 0 15px!important;margin:14px 0 20px!important;background:transparent!important;box-shadow:none!important;}
#screen-foods .meal-tab{border:2px solid #D3BD13!important;border-radius:17px!important;background:#fff!important;color:#171717!important;box-shadow:none!important;font-weight:750!important;}
#screen-foods .meal-tab.is-selected{background:#E8D931!important;border-color:#9C8700!important;color:#151515!important;box-shadow:inset 0 0 0 1px #9C8700!important;}
#screen-foods .food-selection-panel{width:100%!important;max-width:100%!important;min-width:0!important;padding:4px 0 10px!important;margin:0!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;box-sizing:border-box!important;}
#screen-foods .food-selection-panel>h3{margin:4px 0 12px!important;text-align:right!important;padding:0 4px 12px!important;border-bottom:3px solid #E8D931!important;font-size:23px!important;}
#screen-foods .food-form-grid,#screen-foods .food-form-grid.two-col{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;}
#screen-foods .food-form-grid>.chip-select-field,
#screen-foods .food-form-grid>.shiny-bound-output,
#screen-foods .food-form-grid>.shiny-html-output,
#screen-foods .food-form-grid>.nuts-breakfast-field,
#screen-foods .food-form-grid>.shiny-panel-conditional{display:block;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;padding:17px 2px 19px!important;background:transparent!important;border:0!important;border-bottom:3px solid #E8D931!important;border-radius:0!important;box-shadow:none!important;}
#screen-foods .food-form-grid>.chip-select-field:last-child,
#screen-foods .food-form-grid>.nuts-breakfast-field:last-child,
#screen-foods .food-form-grid>.shiny-panel-conditional:last-child{border-bottom:0!important;}
#screen-foods .nuts-breakfast-field .chip-select-field,
#screen-foods .shiny-panel-conditional .chip-select-field{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:10px 0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
#screen-foods .nuts-breakfast-field .chip-select-field + .shiny-panel-conditional{margin-top:12px!important;padding-top:12px!important;border-top:2px solid #E8D931!important;}
#screen-foods .chip-select-label{border:0!important;margin:0 0 12px!important;padding:0 0 0 4px!important;display:flex!important;gap:10px!important;align-items:center!important;justify-content:flex-start!important;font-size:18px!important;line-height:1.5!important;}
#screen-foods .chip-select-label::before{content:'◈';display:inline-flex;align-items:center;justify-content:center;flex:0 0 35px;width:35px;height:35px;border-radius:50%;background:#FFF5BD;color:#A78100;font-size:21px;font-weight:600;}
#screen-foods .chip-select-field:has([data-chip-group="BreadBreakfast"]) .chip-select-label::before{content:'▤';}
#screen-foods .chip-select-field:has([data-chip-group="ProBreakfast"]) .chip-select-label::before{content:'◉';}
#screen-foods .chip-select-field:has([data-chip-group="SnackB"]) .chip-select-label::before,
#screen-foods .chip-select-field:has([data-chip-group="SnackL"]) .chip-select-label::before,
#screen-foods .chip-select-field:has([data-chip-group="SnackD"]) .chip-select-label::before{content:'♧';}
#screen-foods .chip-select-field:has([data-chip-group="SnackBB"]) .chip-select-label::before,
#screen-foods .chip-select-field:has([data-chip-group="SnackLL"]) .chip-select-label::before{content:'◌';}
#screen-foods .chip-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
#screen-foods .chip-grid>.food-chip{width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;box-sizing:border-box!important;min-height:48px!important;margin:0!important;padding:9px 6px!important;overflow-wrap:anywhere!important;white-space:normal!important;border:2px solid #E0C71A!important;border-radius:15px!important;font-size:clamp(12px,3.4vw,15px)!important;line-height:1.5!important;}
#screen-foods .chip-grid>.food-chip.is-selected{background:#E8D931!important;color:#161616!important;border-color:#9B8700!important;}
#screen-foods .chip-grid>.food-chip.is-selected::before{content:'✓';font-weight:900;margin-inline-end:7px;}
#screen-foods .food-more-btn{background:#E8D931!important;color:#171717!important;border:0!important;border-radius:14px!important;max-width:100%!important;}
@media(max-width:650px){
 #screen-foods .screen-card{padding-left:14px!important;padding-right:14px!important;}
 #screen-foods .meal-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
 #screen-foods .meal-tab{min-width:0!important;width:100%!important;padding:10px 5px!important;}
 #screen-foods .food-selection-panel{overflow:visible!important;}
 #screen-foods .food-chip-row{min-width:0!important;}
}

/* V78: restore black active meal tabs, real bundled SVG icons, compact desktop choices. */
#screen-foods .meal-tabs{border-bottom:5px solid #E9DE2D!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:9px!important;padding-bottom:14px!important}
#screen-foods .meal-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:auto!important;min-width:0!important;flex:0 0 auto!important;border:2px solid #E2CB2B!important;border-radius:15px!important;background:white!important;color:#171717!important;padding:10px 13px!important;box-shadow:none!important}
#screen-foods .meal-tab.is-selected{background:#181A1F!important;color:white!important;border-color:#181A1F!important;box-shadow:none!important}
#screen-foods .meal-tab::before{content:""!important;display:inline-block!important;width:26px;height:26px;flex:0 0 26px;background-position:center;background-repeat:no-repeat;background-size:contain;filter:none}
#screen-foods #meal_breakfast::before{background-image:url('../icons/meal-breakfast.svg')}
#screen-foods #meal_morning::before{background-image:url('../icons/meal-morning.svg')}
#screen-foods #meal_lunch::before{background-image:url('../icons/meal-lunch.svg')}
#screen-foods #meal_evening::before{background-image:url('../icons/meal-evening.svg')}
#screen-foods #meal_dinner::before{background-image:url('../icons/meal-dinner.svg')}
#screen-foods #meal_night::before{background-image:url('../icons/meal-night.svg')}
#screen-foods .chip-select-label::before{content:""!important;width:13px!important;height:13px!important;flex:0 0 13px!important;border-radius:50%!important;background:#E9DE2D!important;border:1px solid #B99E13!important;font-size:0!important}
#screen-foods .chip-select-field:has([data-chip-group]) .chip-select-label::before{content:""!important}
#screen-foods .chip-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,290px))!important;justify-content:start!important;gap:10px!important;width:100%!important}
#screen-foods .chip-grid>.food-chip{width:100%!important;max-width:290px!important;min-height:49px!important;padding:10px 12px!important;font-size:15px!important}
#screen-foods .food-form-grid>.chip-select-field,#screen-foods .food-form-grid>.nuts-breakfast-field,#screen-foods .food-form-grid>.shiny-panel-conditional{border-bottom:1px solid #E8DC9D!important;padding-top:20px!important;padding-bottom:22px!important}
#screen-foods .food-selection-panel>h3{border-bottom:0!important;margin-bottom:8px!important}
@media(max-width:650px){
 #screen-foods .meal-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #screen-foods .meal-tab{width:100%!important;white-space:normal!important;padding:9px 5px!important;font-size:13px!important}
 #screen-foods .meal-tab::before{width:23px;height:23px;flex-basis:23px}
 #screen-foods .chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #screen-foods .chip-grid>.food-chip{max-width:100%!important;font-size:13px!important;padding:9px 5px!important}
}

/* V79: restore original compact food buttons; only clean dividers and correct SVG icons. */
#screen-foods .meal-tabs{border-bottom:5px solid #E9DE2D!important;padding-bottom:14px!important;margin-bottom:18px!important}
#screen-foods .meal-tab.is-selected{background:#181A1F!important;color:#fff!important;border-color:#181A1F!important}
#screen-foods .meal-tab:not(.is-selected){background:#fff!important;color:#171717!important;border-color:#E0C71A!important}
#screen-foods .food-selection-panel{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
#screen-foods .food-selection-panel>h3{border:0!important;padding:5px 0 9px!important;margin:0!important}
#screen-foods .food-form-grid>.chip-select-field,#screen-foods .food-form-grid>.nuts-breakfast-field,#screen-foods .food-form-grid>.shiny-panel-conditional{border:0!important;border-bottom:1px solid #E7D68B!important;border-radius:0!important;padding:18px 0!important;margin:0!important;box-shadow:none!important;background:transparent!important}
#screen-foods .chip-select-label{border:0!important;padding:0!important;margin:0 0 12px!important}
#screen-foods .chip-select-label::before{display:none!important}
#screen-foods .chip-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,204px))!important;gap:12px 16px!important;justify-content:start!important;width:100%!important}
#screen-foods .chip-grid>.food-chip{width:100%!important;max-width:204px!important;min-height:64px!important;padding:11px 8px!important;border-radius:19px!important;font-size:17px!important;line-height:1.45!important;overflow-wrap:break-word!important;white-space:normal!important}
#screen-foods .chip-grid>.food-chip.is-selected{background:#E9DE2D!important;color:#151515!important;border:2px solid #171717!important}
#screen-foods .chip-grid>.food-chip.is-selected::before{display:none!important;content:none!important}
#screen-foods .meal-tab::before{background-size:contain!important}
@media(max-width:650px){
 #screen-foods .meal-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #screen-foods .meal-tab{width:100%!important;min-width:0!important;white-space:normal!important}
 #screen-foods .chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 #screen-foods .chip-grid>.food-chip{max-width:100%!important;min-height:54px!important;font-size:14px!important;padding:10px 6px!important}
}

/* V80: reference-image meal icons and restored smaller food choice buttons. */
#screen-foods #meal_breakfast::before{background-image:url('../icons/meal-breakfast.png?v=80')!important}
#screen-foods #meal_morning::before{background-image:url('../icons/meal-morning.png?v=80')!important}
#screen-foods #meal_lunch::before{background-image:url('../icons/meal-lunch.png?v=80')!important}
#screen-foods #meal_evening::before{background-image:url('../icons/meal-evening.png?v=80')!important}
#screen-foods #meal_dinner::before{background-image:url('../icons/meal-dinner.png?v=80')!important}
#screen-foods #meal_night::before{background-image:url('../icons/meal-night.png?v=80')!important}
#screen-foods .meal-tab::before{width:29px!important;height:29px!important;flex:0 0 29px!important;background-size:contain!important}
#screen-foods .chip-grid{grid-template-columns:repeat(3,minmax(0,176px))!important;gap:10px 12px!important}
#screen-foods .chip-grid>.food-chip{max-width:176px!important;min-height:48px!important;padding:8px 9px!important;border-radius:15px!important;font-size:15px!important;line-height:1.35!important}
@media(max-width:650px){
 #screen-foods .chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #screen-foods .chip-grid>.food-chip{max-width:100%!important;min-height:46px!important;padding:8px 5px!important;font-size:13px!important;border-radius:14px!important}
 #screen-foods .meal-tab::before{width:25px!important;height:25px!important;flex-basis:25px!important}
}

/* V81: requested icon-only correction. Keep food options and selected-tab styling unchanged. */
#screen-foods #meal_breakfast::before{background-image:url('../icons/meal-breakfast-cup-v81.svg')!important}
#screen-foods #meal_dinner::before{background-image:url('../icons/meal-dinner-v81.png')!important}
#screen-foods .meal-tab::before{width:24px!important;height:24px!important;flex:0 0 24px!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
@media(max-width:650px){#screen-foods .meal-tab::before{width:22px!important;height:22px!important;flex-basis:22px!important}}

/* V82: compact desktop choices and personal inputs; no changes to food values. */
@media (min-width: 651px) {
 #screen-foods .chip-grid {grid-template-columns:repeat(3,minmax(0,204px))!important;gap:10px 14px!important;justify-content:start!important;}
 #screen-foods .chip-grid > .food-chip {width:100%!important;max-width:204px!important;min-height:46px!important;height:auto!important;padding:8px 10px!important;font-size:14px!important;line-height:1.4!important;border-radius:14px!important;}
 #screen-personal .personal-number-fields {max-width:660px!important;gap:9px!important;margin:14px 0!important;}
 #screen-personal .personal-number-row {width:100%!important;min-height:68px!important;padding:9px 13px!important;gap:8px!important;justify-content:flex-end!important;direction:rtl!important;}
 #screen-personal .personal-number-label {width:110px!important;min-width:110px!important;flex:none!important;text-align:right!important;}
 #screen-personal .personal-number-controls {margin-right:0!important;margin-left:auto!important;gap:6px!important;}
 #screen-personal .personal-number-controls .shiny-input-container {width:92px!important;}
 #screen-personal .personal-number-controls input {height:41px!important;font-size:18px!important;}
 #screen-personal .personal-step-btn {width:39px!important;height:41px!important;font-size:23px!important;}
}
#screen-foods .food-navigation-row {display:flex!important;direction:rtl!important;gap:12px!important;align-items:stretch!important;margin-top:25px!important;}
#screen-foods .food-navigation-row > button {flex:1 1 0!important;min-width:0!important;min-height:52px!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;border-radius:14px!important;padding:11px 10px!important;font-weight:750!important;}
#screen-foods .food-navigation-row #foods_next {background:#181A1F!important;color:white!important;border:2px solid #181A1F!important;}
#screen-foods .food-navigation-row #foods_prev {background:white!important;color:#181A1F!important;border:2px solid #181A1F!important;}
#screen-foods .meal-choice-summary {color:#554b18!important;background:#fff9db!important;border-radius:10px!important;display:inline-block!important;padding:6px 12px!important;font-size:13px!important;font-weight:700!important;margin:0 0 10px!important;}
#screen-foods .meal-choice-number {display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:25px!important;height:25px!important;border-radius:50%!important;background:#E9DE2D!important;color:#171717!important;font-size:13px!important;font-weight:800!important;margin-left:9px!important;}
@media (max-width:650px) {
 #screen-foods .food-navigation-row {gap:8px!important;}
 #screen-foods .food-navigation-row > button {font-size:12px!important;padding:9px 5px!important;}
}

/* V83: desktop compact, right-aligned personal fields and navigation. */
@media(min-width:651px){
 #screen-personal .personal-number-fields{width:min(100%,660px)!important;max-width:660px!important;margin:16px 0 18px auto!important;}
 #screen-personal .personal-number-row{width:100%!important;justify-content:flex-start!important;direction:rtl!important;}
 #screen-personal .personal-number-label{width:115px!important;min-width:115px!important;}
 #screen-personal .personal-number-controls{margin:0!important;flex:none!important;}
 #screen-personal .navigation-row{justify-content:flex-start!important;direction:rtl!important;}
 #screen-personal .navigation-row .primary-btn{flex:none!important;width:auto!important;min-width:110px!important;max-width:150px!important;margin:0!important;}
 #screen-foods .food-navigation-row{justify-content:flex-start!important;direction:rtl!important;max-width:430px!important;margin-left:auto!important;margin-right:0!important;}
 #screen-foods .food-navigation-row>button{flex:0 1 auto!important;width:auto!important;min-width:150px!important;max-width:205px!important;white-space:normal!important;}
 #screen-foods .chip-grid{grid-template-columns:repeat(3,minmax(0,190px))!important;gap:9px 12px!important;}
 #screen-foods .chip-grid>.food-chip{max-width:190px!important;min-height:44px!important;padding:7px 8px!important;font-size:14px!important;}
}
#screen-goal .progress-row-labeled>span,#screen-personal .progress-row-labeled>span,#screen-foods .progress-row-labeled>span,#screen-review .progress-row-labeled>span{cursor:pointer!important;user-select:none!important;}
.progress-row-labeled>span:focus-visible{outline:3px solid #B6A100!important;outline-offset:3px!important;}

/* V84: one consistent control scale across personal and food screens. */
#screen-personal .personal-number-fields,
#screen-personal .segmented-group,
#screen-personal .navigation-row {
  box-sizing:border-box!important;
  width:min(100%,620px)!important;
  max-width:620px!important;
  margin-left:auto!important;
  margin-right:0!important;
}
#screen-personal .personal-number-row {
  box-sizing:border-box!important;
  display:flex!important;
  direction:rtl!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:70px!important;
  padding:10px 14px!important;
}
#screen-personal .personal-number-label {
  flex:0 0 100px!important;
  width:100px!important;
  min-width:0!important;
  text-align:right!important;
}
#screen-personal .personal-number-label strong,
#screen-personal .segmented-group > label {font-size:19px!important;font-weight:750!important;}
#screen-personal .personal-number-controls {
  margin:0!important;
  flex:0 0 auto!important;
  gap:6px!important;
}
#screen-personal .segmented-group .segment-row {
  width:100%!important;
  max-width:620px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  justify-content:stretch!important;
  gap:12px!important;
  margin:0 0 18px 0!important;
}
#screen-personal .segmented-group .segment {
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:15px!important;
  font-size:16px!important;
}
#screen-personal .navigation-row {
  display:flex!important;
  direction:rtl!important;
  justify-content:flex-start!important;
  gap:10px!important;
}
#screen-personal .navigation-row .primary-btn {
  box-sizing:border-box!important;
  width:150px!important;
  min-width:0!important;
  max-width:150px!important;
  min-height:48px!important;
  flex:0 0 150px!important;
  margin:0!important;
}
#screen-foods .chip-grid {
  grid-template-columns:repeat(3,minmax(0,150px))!important;
  gap:10px 12px!important;
  justify-content:start!important;
}
#screen-foods .chip-grid > .food-chip {
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:150px!important;
  min-height:48px!important;
  height:auto!important;
  padding:9px 8px!important;
  border-radius:15px!important;
  font-size:16px!important;
  line-height:1.35!important;
  border-width:2px!important;
}
#screen-foods .food-navigation-row {
  box-sizing:border-box!important;
  width:min(100%,474px)!important;
  max-width:474px!important;
  margin-left:auto!important;
  margin-right:0!important;
  justify-content:flex-start!important;
  gap:12px!important;
  direction:rtl!important;
}
#screen-foods .food-navigation-row > button {
  box-sizing:border-box!important;
  flex:0 1 150px!important;
  width:150px!important;
  min-width:0!important;
  max-width:150px!important;
  min-height:48px!important;
  padding:9px 7px!important;
  font-size:14px!important;
  border-radius:15px!important;
}
@media(max-width:650px) {
 #screen-personal .personal-number-fields,
 #screen-personal .segmented-group,
 #screen-personal .navigation-row {width:100%!important;max-width:100%!important;}
 #screen-personal .personal-number-row {gap:5px!important;padding:9px 8px!important;}
 #screen-personal .personal-number-label {flex:0 0 67px!important;width:67px!important;}
 #screen-personal .personal-number-label strong,
 #screen-personal .segmented-group > label {font-size:17px!important;}
 #screen-personal .personal-number-controls {gap:4px!important;}
 #screen-personal .personal-number-controls .shiny-input-container {width:75px!important;}
 #screen-personal .personal-step-btn {width:34px!important;height:40px!important;}
 #screen-personal .segmented-group .segment-row {gap:8px!important;}
 #screen-personal .segmented-group .segment {height:44px!important;min-height:44px!important;font-size:14px!important;}
 #screen-personal .navigation-row .primary-btn {flex:0 0 135px!important;width:135px!important;max-width:135px!important;}
 #screen-foods .chip-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
 #screen-foods .chip-grid > .food-chip {max-width:none!important;min-height:44px!important;font-size:14px!important;padding:8px 5px!important;}
 #screen-foods .food-navigation-row {width:100%!important;max-width:100%!important;gap:8px!important;}
 #screen-foods .food-navigation-row > button {flex:1 1 0!important;width:auto!important;max-width:none!important;min-height:46px!important;font-size:12px!important;}
}

/* V85 — scoped final layout correction. Keep original app logic and meal icons. */
#screen-personal .personal-number-fields,
#screen-personal .segmented-group,
#screen-personal .navigation-row {
  width:min(100%, 468px)!important;
  max-width:468px!important;
  margin-inline-start:0!important;
  margin-inline-end:0!important;
  margin-left:auto!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
#screen-personal .personal-number-fields{gap:10px!important;}
#screen-personal .personal-number-row{
  width:100%!important;min-height:62px!important;
  padding:8px 12px!important;gap:8px!important;
  justify-content:flex-start!important;direction:rtl!important;
  border:1px solid #e7d99a!important;border-radius:17px!important;
}
#screen-personal .personal-number-label{
  flex:0 0 92px!important;width:92px!important;min-width:0!important;
  margin:0!important;text-align:right!important;
}
#screen-personal .personal-number-controls{
  margin:0!important;gap:5px!important;flex:0 0 auto!important;
}
#screen-personal .personal-number-controls .shiny-input-container{width:78px!important;}
#screen-personal .personal-number-controls input{height:40px!important;font-size:17px!important;}
#screen-personal .personal-step-btn{width:37px!important;height:40px!important;font-size:22px!important;}
#screen-personal .segmented-group>label{font-size:19px!important;font-weight:750!important;}
#screen-personal .segmented-group .segment-row{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;max-width:100%!important;
  margin:0 0 16px 0!important;gap:10px!important;direction:rtl!important;
}
#screen-personal .segmented-group .segment{
  width:100%!important;min-width:0!important;max-width:none!important;
  height:46px!important;min-height:46px!important;
  font-size:17px!important;border:1px solid #E0C71A!important;
  border-radius:14px!important;
}
#screen-personal .segmented-group .segment.is-selected{border:2px solid #181A1F!important;background:#E9DE2D!important;}
#screen-personal .navigation-row{display:flex!important;justify-content:flex-start!important;direction:rtl!important;}
#screen-personal .navigation-row .primary-btn{
  flex:0 0 130px!important;width:130px!important;max-width:130px!important;
  min-height:46px!important;margin:0!important;
}
/* Match food choice geometry to the personal choice controls. */
#screen-foods .chip-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:min(100%,468px)!important;max-width:468px!important;
  justify-content:stretch!important;gap:10px!important;
}
#screen-foods .chip-grid>.food-chip{
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:46px!important;height:auto!important;
  padding:8px 6px!important;font-size:17px!important;line-height:1.4!important;
  border:1px solid #E0C71A!important;border-radius:14px!important;
  box-sizing:border-box!important;
}
#screen-foods .chip-grid>.food-chip.is-selected{
  border:2px solid #181A1F!important;background:#E9DE2D!important;color:#181A1F!important;
}
#screen-foods .food-navigation-row{
  width:min(100%,468px)!important;max-width:468px!important;
  margin-left:auto!important;margin-right:0!important;
  justify-content:flex-start!important;direction:rtl!important;gap:10px!important;
  padding-bottom:12px!important;
}
#screen-foods .food-navigation-row>button{
  flex:0 1 190px!important;width:auto!important;min-width:0!important;max-width:190px!important;
  min-height:46px!important;padding:8px 10px!important;font-size:14px!important;
  border-radius:14px!important;
}
@media(max-width:650px){
 #screen-personal .personal-number-fields,#screen-personal .segmented-group,#screen-personal .navigation-row{width:100%!important;max-width:100%!important;}
 #screen-personal .personal-number-row{min-height:56px!important;padding:7px 8px!important;gap:5px!important;}
 #screen-personal .personal-number-label{flex:0 0 65px!important;width:65px!important;}
 #screen-personal .personal-number-controls .shiny-input-container{width:66px!important;}
 #screen-personal .personal-number-controls input{height:38px!important;font-size:16px!important;}
 #screen-personal .personal-step-btn{width:32px!important;height:38px!important;}
 #screen-personal .segmented-group>label{font-size:17px!important;}
 #screen-personal .segmented-group .segment{min-height:44px!important;height:44px!important;font-size:15px!important;}
 #screen-personal .navigation-row .primary-btn{flex:0 0 130px!important;width:130px!important;max-width:130px!important;}
 #screen-foods .chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;gap:8px!important;}
 #screen-foods .chip-grid>.food-chip{min-height:44px!important;font-size:15px!important;padding:8px 5px!important;}
 #screen-foods .food-navigation-row{width:100%!important;max-width:100%!important;gap:8px!important;padding-bottom:85px!important;}
 #screen-foods .food-navigation-row>button{flex:1 1 0!important;max-width:none!important;min-height:44px!important;font-size:12px!important;}
}

/* V86 — remove only unused blank space; preserve numeric control sizes and behavior. */
#screen-personal .personal-number-fields,
#screen-personal .segmented-group,
#screen-personal .navigation-row {
  box-sizing:border-box!important;
  width:min(100%,365px)!important;
  max-width:365px!important;
  margin-left:auto!important;
  margin-right:0!important;
}
#screen-personal .personal-number-row {
  box-sizing:border-box!important;
  width:100%!important;
  justify-content:flex-start!important;
  direction:rtl!important;
  gap:8px!important;
  padding-inline:10px!important;
}
#screen-personal .personal-number-label {
  flex:0 0 74px!important;
  width:74px!important;
  min-width:0!important;
}
#screen-personal .segmented-group .segment-row {
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#screen-personal .navigation-row {
  display:flex!important;
  direction:rtl!important;
  justify-content:stretch!important;
}
#screen-personal .navigation-row .primary-btn {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  flex:1 1 100%!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  padding:8px 14px!important;
  white-space:nowrap!important;
}
/* Food controls: regular weight, narrower, same quiet borders as gender choices. */
#screen-foods .chip-grid {
  box-sizing:border-box!important;
  width:min(100%,390px)!important;
  max-width:390px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-left:auto!important;
  margin-right:0!important;
}
#screen-foods .chip-grid > .food-chip {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  font-weight:400!important;
  font-size:16px!important;
  border-width:1px!important;
  border-radius:14px!important;
  min-height:46px!important;
  padding:8px 6px!important;
}
#screen-foods .chip-grid > .food-chip.is-selected {
  border-width:2px!important;
  font-weight:400!important;
}
#screen-foods .food-navigation-row {
  display:flex!important;
  box-sizing:border-box!important;
  width:min(100%,390px)!important;
  max-width:390px!important;
  margin-left:auto!important;
  margin-right:0!important;
  gap:16px!important;
  direction:rtl!important;
  align-items:stretch!important;
}
#screen-foods .food-navigation-row > button {
  box-sizing:border-box!important;
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
  max-width:none!important;
  min-height:48px!important;
  height:auto!important;
  padding:9px 7px!important;
  white-space:normal!important;
}
@media(max-width:650px){
  #screen-personal .personal-number-fields,
  #screen-personal .segmented-group,
  #screen-personal .navigation-row {width:min(100%,365px)!important;max-width:365px!important;}
  #screen-personal .personal-number-label {flex:0 0 65px!important;width:65px!important;}
  #screen-personal .personal-number-row {gap:5px!important;padding-inline:8px!important;}
  #screen-personal .navigation-row .primary-btn {flex:1 1 100%!important;width:100%!important;max-width:100%!important;height:48px!important;min-height:48px!important;max-height:48px!important;}
  #screen-foods .chip-grid {width:100%!important;max-width:390px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  #screen-foods .chip-grid > .food-chip {font-weight:400!important;font-size:15px!important;}
  #screen-foods .food-navigation-row {width:100%!important;max-width:390px!important;gap:12px!important;padding-bottom:85px!important;}
  #screen-foods .food-navigation-row > button {flex:1 1 0!important;width:0!important;max-width:none!important;}
}

/* V87: only requested navigation and action visual refinements. */
:root { --v87-mustard:#E9DE2D; --v87-ink:#181A1F; }
/* Meal navigation: previous black, next the personal-step mustard. */
#screen-foods .food-navigation-row #foods_prev {background:var(--v87-ink)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid var(--v87-ink)!important;}
#screen-foods .food-navigation-row #foods_next {background:var(--v87-mustard)!important;color:var(--v87-ink)!important;-webkit-text-fill-color:var(--v87-ink)!important;border:2px solid var(--v87-mustard)!important;}
/* Review: remove unused desktop width and align actions beneath right-side content. */
#screen-review .screen-card {width:min(100%,900px)!important;max-width:900px!important;box-sizing:border-box!important;margin-inline:auto!important;}
#screen-review .navigation-row {display:flex!important;direction:rtl!important;justify-content:flex-start!important;align-items:stretch!important;gap:14px!important;flex-wrap:wrap!important;}
#screen-review .navigation-row > button {flex:0 1 230px!important;width:min(100%,230px)!important;max-width:100%!important;min-height:50px!important;white-space:normal!important;}
#screen-review #edit_review {background:var(--v87-ink)!important;color:white!important;-webkit-text-fill-color:white!important;border:2px solid var(--v87-ink)!important;}
#screen-review #Calculate {background:var(--v87-mustard)!important;color:var(--v87-ink)!important;-webkit-text-fill-color:var(--v87-ink)!important;border:2px solid var(--v87-mustard)!important;}
/* Result actions: no changes to layout, visibility or behavior. */
#screen-result #day1_edit_choices,#screen-result #view_saved_plan {background:var(--v87-mustard)!important;color:var(--v87-ink)!important;-webkit-text-fill-color:var(--v87-ink)!important;border:2px solid var(--v87-mustard)!important;}
#screen-result #print_pdf,#screen-saved-program #saved_print_pdf {background:var(--v87-ink)!important;color:white!important;-webkit-text-fill-color:white!important;border:2px solid var(--v87-ink)!important;}
@media(max-width:650px){#screen-review .navigation-row{flex-wrap:nowrap!important;gap:10px!important;}#screen-review .navigation-row>button{flex:1 1 0!important;width:0!important;min-width:0!important;font-size:13px!important;padding:10px 6px!important;}}

/* V88: MOBILE ONLY. Keep all desktop layout and existing colors untouched. */
@media screen and (max-width:650px) {
  /* Review actions must never collapse to narrow vertical pills. */
  #screen-review .navigation-row {
    display:flex!important;
    flex-direction:column!important;
    direction:rtl!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    gap:12px!important;
    margin-inline:0!important;
    padding-inline:0!important;
  }
  #screen-review .navigation-row > button,
  #screen-review .navigation-row > .btn {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    align-self:stretch!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:50px!important;
    padding:12px 14px!important;
    font-size:15px!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    line-height:1.5!important;
  }
  /* In RTL, next first (mustard), previous second (black). */
  #screen-review .navigation-row #Calculate {order:0!important;}
  #screen-review .navigation-row #edit_review {order:1!important;}

  /* Food meal navigation: two full-width stacked buttons. */
  #screen-foods .food-navigation-row {
    display:flex!important;
    flex-direction:column!important;
    direction:rtl!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    gap:12px!important;
  }
  #screen-foods .food-navigation-row > button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:stretch!important;
    box-sizing:border-box!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:50px!important;
    padding:12px 14px!important;
    font-size:15px!important;
    line-height:1.5!important;
    white-space:normal!important;
  }
  #screen-foods .food-navigation-row #foods_next {order:0!important;}
  #screen-foods .food-navigation-row #foods_prev {order:1!important;}
}

/* Programs actions: preserve mustard labels and original colors. */
#screen-programs #nutri-cycle-history .cycle-current-tab {background:#e9df2c!important;color:#17191f!important;border:1.5px solid #17191f!important;}
#screen-programs #nutri-cycle-history .cycle-previous-tab {background:#17191f!important;color:#fff!important;border:1.5px solid #17191f!important;}
#screen-programs #nutri-cycle-history .cycle-current-tab:focus,
#screen-programs #nutri-cycle-history .cycle-current-tab:focus-visible,
#screen-programs #nutri-cycle-history .cycle-current-tab[aria-pressed="true"] {outline:none!important;box-shadow:none!important;}
#screen-programs .programs-new-plan-btn {display:block;width:100%;box-sizing:border-box;margin-top:14px;padding:15px 18px;background:#e9df2c!important;color:#17191f!important;border:0;border-radius:13px;font:inherit;font-weight:700;text-align:center;cursor:pointer;}
#screen-programs .programs-new-plan-btn *,#screen-result #view_saved_plan,#screen-result #view_saved_plan *,#screen-result #day1_edit_choices,#screen-result #day1_edit_choices * {color:#181A1F!important;-webkit-text-fill-color:#181A1F!important;}
#screen-result #view_saved_plan,#screen-result #day1_edit_choices {background:#e9df2c!important;}
#screen-programs #nutri-program-days-section .day-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
@media(max-width:650px){#screen-programs #nutri-program-days-section .day-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
/* V93: one authoritative width for archived cycles and renewal action. */
#screen-programs #nutri-cycle-history,
#screen-programs #nutri-cycle-complete-note {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
#screen-programs #nutri-cycle-history > button,
#screen-programs #nutri-cycle-complete-note .programs-new-plan-btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media(max-width:650px){
 #screen-programs #nutri-cycle-history,
 #screen-programs #nutri-cycle-complete-note {width:100%!important;max-width:100%!important;}
}

/* V95: compact archived course cards, two columns on desktop and mobile. */
#screen-programs #nutri-cycle-history .nutri-archive-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
  box-sizing:border-box !important;
  direction:rtl !important;
}
#screen-programs #nutri-cycle-history .nutri-archive-grid > .nutri-archive-tile {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  aspect-ratio:auto !important;
  height:auto !important;
  min-height:64px !important;
  margin:0 !important;
  padding:10px 8px !important;
  box-sizing:border-box !important;
  border:1.5px solid #17191f !important;
  border-radius:13px !important;
  background:#fff !important;
  color:#17191f !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  line-height:1.5 !important;
}
@media(max-width:650px){
  #screen-programs #nutri-cycle-history .nutri-archive-grid {gap:10px!important;}
  #screen-programs #nutri-cycle-history .nutri-archive-grid > .nutri-archive-tile {
    min-height:60px!important;
    padding:8px 5px!important;
    font-size:clamp(11px,3vw,15px)!important;
  }
}

/* V96: align the two program tabs with the archived cards and renewal action. */
#screen-programs #nutri-cycle-history > .nutri-cycle-tabs {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
  margin:12px 0 20px !important;
  box-sizing:border-box !important;
  direction:rtl !important;
}
#screen-programs #nutri-cycle-history > .nutri-cycle-tabs > button {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  min-height:50px !important;
  padding:12px 6px !important;
  margin:0 !important;
  white-space:normal !important;
}
#screen-programs #nutri-cycle-complete-note {
  padding-left:0 !important;
  padding-right:0 !important;
}
#screen-programs #nutri-cycle-complete-note .programs-new-plan-btn {
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
@media(max-width:650px) {
  #screen-programs #nutri-cycle-history > .nutri-cycle-tabs {gap:10px !important;}
}

/* V97: desktop only — keep the active plan's day cards inside the same
   right-aligned column as the cycle history and new-plan action.
   Mobile day layout is deliberately unchanged. */
@media (min-width: 651px) {
  #screen-programs #nutri-program-days-section {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  #screen-programs #nutri-program-days-section .day-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }
  #screen-programs #nutri-program-days-section .day-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* v98: public product introduction only. No meal/program/tracking selectors changed. */
#screen-welcome .nutri-instant-message{background:#eee12c;color:#17191f;font-weight:800;border-radius:16px;padding:15px 19px;margin-top:17px;line-height:1.8;text-align:center}
#screen-welcome .nutri-deliverables{font-size:15px;line-height:1.9;color:#343741;margin-top:12px}
#screen-welcome .nutri-welcome-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
#screen-welcome .nutri-info-link{border:1px solid #d8c65b;background:#fff;color:#17191f;border-radius:12px;padding:11px 17px;cursor:pointer;font-weight:700}
#screen-welcome .nutri-info-link:hover{background:#fff9d6}
.nutri-about-page{padding:34px 44px!important;direction:rtl;text-align:right;line-height:2}
.nutri-about-page h2{font-size:30px;font-weight:800;margin:20px 0}
.nutri-about-page h3{font-size:21px;font-weight:800;margin:22px 0 8px}
.nutri-about-page p,.nutri-about-page li{font-size:17px;line-height:2}
.nutri-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:25px 0}
.nutri-feature-card{border:1px solid #d9c858;border-radius:18px;padding:16px 20px;background:#fff}
.nutri-feature-card h3{margin:0 0 6px;color:#17191f}
.nutri-feature-card p{margin:0}
.nutri-about-start{background:#eee12c!important;color:#17191f!important;display:block;width:100%;max-width:550px;margin:25px auto 0}
@media(max-width:700px){.nutri-about-page{padding:22px 17px!important}.nutri-feature-grid{grid-template-columns:1fr}.nutri-about-page h2{font-size:25px}.nutri-about-page p,.nutri-about-page li{font-size:15px}#screen-welcome .nutri-welcome-links{flex-direction:column}#screen-welcome .nutri-info-link{width:100%}}

/* V99 welcome/about responsive typography */
#screen-welcome .nutri-short-benefits{font-size:16px;line-height:1.9;margin:12px 0;color:#30323a}
.nutri-about-page h4{font-size:19px;font-weight:800;margin:20px 0 5px;color:#17191f}
.nutri-output-list{padding-right:24px;padding-left:0;line-height:2.2}
.nutri-about-page,.nutri-about-page *{box-sizing:border-box;max-width:100%}
@media(max-width:700px){.nutri-about-page h4{font-size:17px}.nutri-output-list{padding-right:18px}#screen-welcome .nutri-short-benefits{font-size:14px}}

/* v100: purchased-image information cards */
.nutri-output-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:24px 0 34px;direction:rtl;width:100%;}
.nutri-output-photo-card{position:relative;min-width:0;border-radius:18px;overflow:visible;cursor:default;transition:transform .22s ease,filter .22s ease;outline-offset:5px;}
.nutri-output-photo-card img{display:block;width:100%;aspect-ratio:1.42;object-fit:cover;border-radius:18px;}
.nutri-output-photo-label{position:relative;z-index:1;background:#fff;color:#122f70;box-shadow:0 7px 24px rgba(0,0,0,.09);border-radius:12px;padding:13px 10px;text-align:center;font-weight:750;line-height:1.7;max-width:90%;margin:-20px auto 0;min-height:66px;display:flex;align-items:center;justify-content:center;}
.nutri-output-photo-card:hover,.nutri-output-photo-card:focus-visible{transform:translateY(-9px);filter:drop-shadow(0 12px 14px rgba(0,0,0,.13));}
@media(max-width:700px){.nutri-output-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px}.nutri-output-photo-label{font-size:13px;min-height:76px;padding:9px 6px}.nutri-output-photo-card img{aspect-ratio:1.1}}
@media(prefers-reduced-motion:reduce){.nutri-output-photo-card{transition:none}}

/* V101: compact horizontal feature tiles and two-column owned-photo cards */
#screen-about-product .nutri-lined-heading{display:flex;align-items:center;gap:16px;text-align:center;justify-content:center;font-size:clamp(18px,2vw,25px);font-weight:800;margin:28px 0 19px;line-height:1.4;color:#17191f}
#screen-about-product .nutri-lined-heading:before,#screen-about-product .nutri-lined-heading:after{content:"";height:1px;background:#e8b82a;flex:1;min-width:15px}
#screen-about-product .nutri-lined-heading span{flex:none;max-width:75%}
#screen-about-product .nutri-feature-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;width:100%;margin:10px 0 30px;direction:rtl}
#screen-about-product .nutri-feature-tile{min-width:0;min-height:153px;border-radius:17px;border:1px solid #f5eac6;background:linear-gradient(125deg,#fff9e8,#fffdf4);padding:12px 7px 11px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;box-sizing:border-box;transition:transform .35s ease,box-shadow .25s ease}
#screen-about-product .nutri-feature-icon{height:34px;width:34px;flex:none;color:#111}
#screen-about-product .nutri-feature-icon svg{width:100%;height:100%}
#screen-about-product .nutri-feature-tile h4{font-size:15px;line-height:1.35;margin:0;color:#111;font-weight:800}
#screen-about-product .nutri-feature-tile p{font-size:12px;line-height:1.55;margin:0;color:#171717;overflow-wrap:anywhere}
#screen-about-product .nutri-feature-tile:hover{transform:translateY(-5px);box-shadow:0 8px 18px rgba(0,0,0,.09)}
#screen-about-product .nutri-output-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%;box-sizing:border-box}
#screen-about-product .nutri-output-photo-card{width:100%;min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden;padding-bottom:10px}
#screen-about-product .nutri-output-photo-card img{max-width:100%;box-sizing:border-box}
#screen-about-product .nutri-output-photo-label{box-sizing:border-box;max-width:calc(100% - 18px);overflow-wrap:anywhere}
@media(max-width:900px){#screen-about-product .nutri-feature-strip{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;gap:8px;padding:4px 2px 12px}#screen-about-product .nutri-feature-tile{flex:0 0 118px;scroll-snap-align:start;min-height:155px}#screen-about-product .nutri-output-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#screen-about-product .nutri-output-photo-grid{gap:17px 10px;padding:0 2px}#screen-about-product .nutri-output-photo-card{overflow:hidden}#screen-about-product .nutri-output-photo-label{max-width:calc(100% - 12px);font-size:12px}#screen-about-product .nutri-feature-tile{flex-basis:108px}#screen-about-product .nutri-lined-heading{gap:9px;font-size:18px}}
@media(prefers-reduced-motion:no-preference){#screen-about-product .nutri-reveal:not(.nutri-visible){opacity:.45;transform:translateX(14px)}#screen-about-product .nutri-reveal.nutri-visible{opacity:1;transform:translateX(0)}}

/* V102: centered 4+3 desktop features; contained mobile cards */
#screen-about-product .nutri-feature-strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;overflow:visible;padding:0 2px;box-sizing:border-box;max-width:1050px;margin-inline:auto}
#screen-about-product .nutri-feature-tile{grid-column:span 2;min-width:0;min-height:165px;padding:12px 8px;flex:none;max-width:none}
#screen-about-product .nutri-feature-tile:nth-child(5){grid-column:2 / span 2}
#screen-about-product .nutri-feature-tile:nth-child(6){grid-column:4 / span 2}
#screen-about-product .nutri-feature-tile:nth-child(7){grid-column:6 / span 2}
#screen-about-product .nutri-output-photo-grid{width:100%;max-width:900px;margin:24px auto 34px;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;min-width:0}
#screen-about-product .nutri-output-photo-card{min-width:0;width:100%;max-width:100%;overflow:visible;padding-bottom:10px}
#screen-about-product .nutri-output-photo-card img{width:100%;max-width:100%;object-fit:cover}
#screen-about-product .nutri-output-photo-label{max-width:calc(100% - 20px);margin:-20px auto 0;position:relative}
@media(max-width:900px){
 #screen-about-product .nutri-feature-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;scroll-snap-type:none;padding:0 3px;max-width:100%}
 #screen-about-product .nutri-feature-tile,#screen-about-product .nutri-feature-tile:nth-child(5),#screen-about-product .nutri-feature-tile:nth-child(6),#screen-about-product .nutri-feature-tile:nth-child(7){grid-column:auto;flex:none;min-width:0;width:100%;max-width:100%;min-height:150px}
 #screen-about-product .nutri-feature-tile:nth-child(7){grid-column:1 / -1;justify-self:center;width:calc(50% - 5px)}
 #screen-about-product .nutri-output-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%;gap:16px 10px;padding:0 3px;box-sizing:border-box}
}
@media(max-width:700px){
 #screen-about-product .nutri-feature-tile{padding:11px 6px;min-height:158px}
 #screen-about-product .nutri-feature-tile h4{font-size:14px}
 #screen-about-product .nutri-feature-tile p{font-size:11px;line-height:1.55}
 #screen-about-product .nutri-output-photo-card{overflow:visible;min-width:0}
 #screen-about-product .nutri-output-photo-card img{aspect-ratio:1.1}
 #screen-about-product .nutri-output-photo-label{max-width:calc(100% - 12px);font-size:12px;padding:9px 5px;min-height:76px}
}

/* V103: exact personal-details Next button mustard; compact original seven-across features. */
#screen-about-product .nutri-feature-strip{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:7px!important;width:100%!important;max-width:none!important;margin:10px 0 26px!important;padding:0!important;overflow:visible!important;direction:rtl}
#screen-about-product .nutri-feature-tile,#screen-about-product .nutri-feature-tile:nth-child(n){grid-column:auto!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:153px!important;padding:12px 6px 10px!important;background:color-mix(in srgb,var(--v87-mustard,#E9DE2D) 20%,white)!important;border:1px solid var(--v87-mustard,#E9DE2D)!important;flex:none!important}
#screen-about-product .nutri-feature-icon{height:34px!important;width:34px!important}
#screen-about-product .nutri-output-photo-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;max-width:930px!important;width:100%!important;gap:20px 14px!important;margin:22px auto 32px!important;padding:0 8px!important;box-sizing:border-box!important}
#screen-about-product .nutri-output-photo-card{grid-column:span 2;min-width:0!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding:0 0 10px!important}
#screen-about-product .nutri-output-photo-card:nth-child(3n + 4):nth-last-child(2){grid-column:2 / span 2}
#screen-about-product .nutri-output-photo-card:nth-child(3n + 5):last-child{grid-column:4 / span 2}
#screen-about-product .nutri-output-photo-card img{width:100%!important;max-width:100%!important;aspect-ratio:1.4!important;object-fit:cover!important}
#screen-about-product .nutri-output-photo-label{max-width:calc(100% - 18px)!important;min-height:56px!important;padding:9px 8px!important;font-size:14px!important;margin:-16px auto 0!important}
@media(max-width:900px){
#screen-about-product .nutri-feature-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;overflow:visible!important}
#screen-about-product .nutri-feature-tile,#screen-about-product .nutri-feature-tile:nth-child(n){min-height:145px!important;width:100%!important;box-sizing:border-box!important}
#screen-about-product .nutri-feature-tile:nth-child(7){grid-column:1/-1!important;justify-self:center!important;width:calc(50% - 5px)!important}
#screen-about-product .nutri-output-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 10px!important;padding:0 3px!important}
#screen-about-product .nutri-output-photo-card,#screen-about-product .nutri-output-photo-card:nth-child(n){grid-column:auto!important}
#screen-about-product .nutri-output-photo-card img{aspect-ratio:1.12!important}
#screen-about-product .nutri-output-photo-label{font-size:12px!important;min-height:66px!important;padding:8px 5px!important}
}
@media(max-width:390px){#screen-about-product .nutri-feature-tile h4{font-size:13px!important}#screen-about-product .nutri-feature-tile p{font-size:10.5px!important}}

/* V104 other features */
#screen-about-product .nutri-other-features{display:flex;flex-direction:column;gap:28px;margin:24px 0 38px;direction:rtl}
#screen-about-product .nutri-other-row{display:grid;grid-template-columns:minmax(0,35%) minmax(0,1fr);gap:24px;align-items:center;padding:14px;border:1px solid #eadca9;border-radius:20px;background:#fffdf7;overflow:hidden}
#screen-about-product .nutri-other-row img{width:100%;height:215px;object-fit:cover;border-radius:14px;display:block}
#screen-about-product .nutri-other-row h3{margin:0 0 12px;font-size:clamp(18px,2vw,24px);text-align:right}
#screen-about-product .nutri-other-row p{margin:0 0 10px;line-height:2;text-align:right}
#screen-about-product .nutri-other-row.nutri-reveal{transform:translateX(32px);opacity:0;transition:transform .65s ease,opacity .65s ease}
#screen-about-product .nutri-other-row.nutri-reveal.nutri-visible{transform:translateX(0);opacity:1}
@media(max-width:700px){#screen-about-product .nutri-other-row{grid-template-columns:minmax(0,1fr);gap:12px;padding:10px}#screen-about-product .nutri-other-row img{height:175px}#screen-about-product .nutri-other-row h3{font-size:18px}#screen-about-product .nutri-other-row p{font-size:14px}}
@media(prefers-reduced-motion:reduce){#screen-about-product .nutri-other-row.nutri-reveal{opacity:1;transform:none;transition:none}}

/* V105: exact app mustard, compact features and image/text reveal rows */
#screen-about-product .nutri-feature-tile,#screen-about-product .nutri-feature-tile:nth-child(n){background:var(--v87-mustard,#E9DE2D)!important;border-color:var(--v87-mustard,#E9DE2D)!important;min-height:120px!important;padding:9px 5px!important;gap:4px!important}
#screen-about-product .nutri-feature-tile h4{font-size:14px!important;line-height:1.3!important}
#screen-about-product .nutri-feature-tile p{font-size:11px!important;line-height:1.4!important}
#screen-about-product .nutri-feature-icon{height:33px!important;width:33px!important}
#screen-about-product .nutri-other-features{gap:18px!important;margin-top:18px!important}
#screen-about-product .nutri-other-row{display:grid!important;grid-template-columns:minmax(0,36%) minmax(0,1fr)!important;gap:22px!important;align-items:center!important;padding:14px!important;max-width:1100px!important;width:100%!important;margin-inline:auto!important;box-sizing:border-box!important;direction:rtl!important;border-radius:16px!important}
#screen-about-product .nutri-other-row img{width:100%!important;height:210px!important;object-fit:cover!important;display:block!important;border-radius:13px!important}
#screen-about-product .nutri-other-row > div{min-width:0!important;text-align:right!important}
#screen-about-product .nutri-other-row h3{display:flex!important;align-items:center!important;gap:10px!important;line-height:1.6!important}
#screen-about-product .nutri-other-number{display:inline-flex;align-items:center;justify-content:center;background:var(--v87-mustard,#E9DE2D);color:#171717;font-weight:800;border-radius:10px;padding:4px 9px;flex-shrink:0;font-size:18px}
#screen-about-product .nutri-other-row.nutri-reveal{opacity:0;transform:translateX(65px);transition:transform .7s ease,opacity .7s ease}
#screen-about-product .nutri-other-row.nutri-reveal.nutri-visible{opacity:1;transform:translateX(0)}
@media(max-width:700px){#screen-about-product .nutri-other-row{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:10px!important}#screen-about-product .nutri-other-row img{height:175px!important}#screen-about-product .nutri-feature-tile,#screen-about-product .nutri-feature-tile:nth-child(n){min-height:115px!important}#screen-about-product .nutri-other-row h3{font-size:17px!important}}
@media(prefers-reduced-motion:reduce){#screen-about-product .nutri-other-row.nutri-reveal{opacity:1!important;transform:none!important}}

/* V106: informational sections, consistent mustard CTA and sliding reveal */
#screen-about-product .nutri-privacy-icon{display:inline-flex;vertical-align:middle;margin-left:9px;color:#17191f}
#screen-about-product .nutri-info-section{margin:14px 0 25px;padding:8px 4px}
#screen-about-product .nutri-innovation-row{display:grid;grid-template-columns:minmax(150px,28%) 1fr;align-items:center;gap:22px;margin:18px 0 26px}
#screen-about-product .nutri-innovation-row img{width:100%;height:185px;object-fit:cover;border-radius:16px}
#screen-about-product .nutri-about-start,#screen-welcome .hero-start{background:#E9DE2D!important;border:0!important;box-shadow:none!important;outline:0!important;color:#17191f!important;border-radius:12px!important}
#screen-about-product .nutri-about-start:hover,#screen-welcome .hero-start:hover{background:#ded229!important;border:0!important;box-shadow:none!important}
#screen-about-product .nutri-reveal{transition:opacity .75s ease,transform .75s ease}
#screen-about-product .nutri-reveal:not(.nutri-visible){opacity:0!important;transform:translateY(45px)!important}
#screen-about-product .nutri-reveal.nutri-visible{opacity:1!important;transform:translateY(0)!important}
@media(max-width:700px){#screen-about-product .nutri-innovation-row{grid-template-columns:1fr;gap:9px}#screen-about-product .nutri-innovation-row img{height:170px}}
@media(prefers-reduced-motion:reduce){#screen-about-product .nutri-reveal{opacity:1!important;transform:none!important;transition:none!important}}

/* v107: compact mobile and desktop about page */
#screen-about-product .nutri-intro-copy{margin:0 auto 20px;max-width:850px}
#screen-about-product .nutri-intro-copy p{margin:0;line-height:1.85}
#screen-about-product .nutri-feature-tile,#screen-about-product .nutri-feature-tile:nth-child(n){background:#eee12c!important;border-color:#eee12c!important}
#screen-about-product .nutri-feature-icon{width:36px!important;height:36px!important}
#screen-about-product .nutri-innovation-row{display:grid;grid-template-columns:minmax(190px,32%) minmax(0,1fr);gap:24px;align-items:center;margin:24px 0;direction:rtl}
#screen-about-product .nutri-innovation-row img{width:100%;height:230px;object-fit:cover;border-radius:18px;display:block}
#screen-about-product .nutri-innovation-row h3{margin:0 0 12px;text-align:right}
#screen-about-product .nutri-innovation-row p{margin:0 0 12px;text-align:right;line-height:1.85}
#screen-about-product .nutri-innovation-intro{margin:15px 0 22px}
@media(max-width:700px){#screen-about-product .nutri-innovation-row{grid-template-columns:1fr;gap:12px}#screen-about-product .nutri-innovation-row img{height:auto;max-height:230px;aspect-ratio:16/9;object-fit:cover}#screen-about-product .nutri-feature-tile{min-height:138px!important}#screen-about-product .nutri-about-page{overflow-x:hidden}#screen-about-product .nutri-feature-strip{max-width:100%!important}}

/* v108 introduction */
#screen-about-product .nutri-intro-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.2fr) minmax(0,1fr);gap:15px;direction:ltr;margin:22px 0 32px;align-items:stretch}
#screen-about-product .nutri-intro-center{direction:rtl;text-align:right;min-width:0;padding:18px 16px;background:#fffdf1;border:1px solid #e4ce79;border-radius:22px}
#screen-about-product .nutri-intro-heading{font-size:clamp(18px,2vw,27px);line-height:1.7;margin:0 0 18px}
#screen-about-product .nutri-intro-heading b{direction:ltr;unicode-bidi:isolate;display:inline-block}
#screen-about-product .nutri-intro-copy{font-size:clamp(15px,1.25vw,19px);line-height:2}
#screen-about-product .nutri-intro-copy p{margin:0 0 14px}
#screen-about-product .nutri-intro-side{min-width:0;overflow:hidden;border:1px solid #e4ce79;border-radius:22px}
#screen-about-product .nutri-intro-side img{display:block;width:100%;height:100%;min-height:290px;object-fit:cover}
@media(max-width:760px){#screen-about-product .nutri-intro-hero{grid-template-columns:1fr 1fr;gap:10px}#screen-about-product .nutri-intro-center{grid-column:1/-1;grid-row:2;padding:14px}#screen-about-product .nutri-intro-side{height:145px;grid-row:1}#screen-about-product .nutri-intro-side img{height:145px;min-height:0}#screen-about-product .nutri-intro-heading{font-size:19px}}

/* v109: full mustard heading bars within bordered cards */
#screen-about-product .nutri-other-row,#screen-about-product .nutri-innovation-row,#screen-about-product .nutri-innovation-intro,#screen-about-product .nutri-info-section{background:#fffdf5!important;border:1.5px solid #e5ce72!important;border-radius:19px!important;padding:18px!important;box-sizing:border-box!important;max-width:1100px!important;width:100%!important;margin:18px auto 25px!important;overflow:hidden!important}
#screen-about-product .nutri-other-row h3,#screen-about-product .nutri-innovation-row h3{display:flex!important;align-items:center!important;gap:10px!important;background:#eee12c!important;color:#17191f!important;border-radius:12px!important;padding:12px 16px!important;margin:0 0 17px!important;font-size:clamp(16px,1.7vw,21px)!important;line-height:1.6!important}
#screen-about-product .nutri-other-number{background:#fff9b6!important;border-radius:9px!important;padding:3px 10px!important}
#screen-about-product .nutri-other-row:nth-child(even),#screen-about-product .nutri-innovation-row:nth-of-type(even){direction:ltr!important}
#screen-about-product .nutri-other-row:nth-child(even)>div,#screen-about-product .nutri-innovation-row:nth-of-type(even)>div{direction:rtl!important}
#screen-about-product .nutri-innovation-row{grid-template-columns:minmax(0,32%) minmax(0,1fr)!important}
#screen-about-product .nutri-innovation-intro{padding:18px 24px!important}
#screen-about-product .nutri-info-section.nutri-method-section,#screen-about-product .nutri-info-section.nutri-scope-section{display:grid!important;grid-template-columns:minmax(0,32%) minmax(0,1fr)!important;gap:20px!important;align-items:center!important;direction:rtl!important}
#screen-about-product .nutri-info-section .nutri-section-photo{width:100%!important;height:230px!important;object-fit:cover!important;border-radius:14px!important;display:block!important}
#screen-about-product .nutri-info-section .nutri-section-copy{min-width:0!important;direction:rtl!important}
#screen-about-product .nutri-info-section p,#screen-about-product .nutri-innovation-intro p{line-height:1.9!important;text-align:right!important}
#screen-about-product .nutri-lined-heading{clear:both!important}
#screen-about-product .nutri-intro-hero{grid-template-columns:minmax(0,1fr) minmax(0,2.2fr) minmax(0,1fr)!important}
#screen-about-product .nutri-intro-side img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;border-radius:16px!important}
@media(max-width:700px){#screen-about-product .nutri-intro-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr)!important;gap:5px!important}#screen-about-product .nutri-intro-center{padding:10px 6px!important}#screen-about-product .nutri-intro-heading{font-size:13px!important}#screen-about-product .nutri-intro-copy p{font-size:12px!important;line-height:1.65!important}#screen-about-product .nutri-other-row,#screen-about-product .nutri-innovation-row,#screen-about-product .nutri-info-section{grid-template-columns:minmax(0,1fr)!important;padding:12px!important}#screen-about-product .nutri-other-row img,#screen-about-product .nutri-innovation-row img,#screen-about-product .nutri-info-section .nutri-section-photo{height:165px!important;max-width:100%!important}#screen-about-product .nutri-other-row h3,#screen-about-product .nutri-innovation-row h3{font-size:16px!important;padding:9px!important}}

/* v110: about page layout corrections; scoped to this page only */
#screen-about-product .nutri-intro-hero{display:block!important;max-width:1100px!important;width:100%!important;margin:18px auto 30px!important;direction:rtl!important;background:#fffdf5!important;border:1.5px solid #e5ce72!important;border-radius:20px!important;padding:clamp(18px,3vw,32px)!important;box-sizing:border-box!important;overflow:hidden!important}
#screen-about-product .nutri-intro-center{display:block!important;width:100%!important;max-width:100%!important;grid-column:auto!important;grid-row:auto!important;padding:0!important;min-width:0!important}
#screen-about-product .nutri-intro-side{display:none!important}
#screen-about-product .nutri-intro-heading{font-size:clamp(20px,2.3vw,29px)!important;line-height:1.6!important;text-align:center!important;margin:0 0 16px!important}
#screen-about-product .nutri-intro-copy{width:100%!important;max-width:100%!important;text-align:right!important;direction:rtl!important}
#screen-about-product .nutri-intro-copy p{font-size:clamp(14px,1.35vw,18px)!important;line-height:2!important;text-align:right!important;margin:0 0 12px!important}
#screen-about-product .nutri-other-row,#screen-about-product .nutri-innovation-row,#screen-about-product .nutri-innovation-intro,#screen-about-product .nutri-info-section{border:1.5px solid #e5ce72!important;background:#fffdf5!important;border-radius:19px!important;padding:clamp(13px,2vw,22px)!important;box-sizing:border-box!important;max-width:1100px!important;width:100%!important;margin:16px auto 24px!important;overflow:hidden!important;min-width:0!important}
#screen-about-product .nutri-other-row h3,#screen-about-product .nutri-innovation-row h3{background:#eee12c!important;border-radius:12px!important;padding:11px 15px!important;color:#16191d!important;line-height:1.65!important;margin:0 0 15px!important;font-size:clamp(16px,1.7vw,21px)!important;display:flex!important;gap:9px!important;align-items:center!important}
#screen-about-product .nutri-innovation-row{display:grid!important;grid-template-columns:minmax(0,30%) minmax(0,1fr)!important;direction:rtl!important;gap:22px!important;align-items:center!important}
#screen-about-product .nutri-innovation-row:nth-of-type(even){direction:ltr!important}
#screen-about-product .nutri-innovation-row>div{direction:rtl!important;min-width:0!important}
#screen-about-product .nutri-innovation-row img{width:100%!important;height:220px!important;max-height:240px!important;object-fit:cover!important;border-radius:14px!important;display:block!important}
#screen-about-product .nutri-info-section.nutri-method-section,#screen-about-product .nutri-info-section.nutri-scope-section{display:grid!important;grid-template-columns:minmax(0,30%) minmax(0,1fr)!important;direction:rtl!important;align-items:center!important;gap:20px!important}
#screen-about-product .nutri-info-section .nutri-section-photo{width:100%!important;height:215px!important;max-width:100%!important;object-fit:cover!important;border-radius:14px!important;display:block!important}
#screen-about-product .nutri-info-section .nutri-section-copy{min-width:0!important;direction:rtl!important}
#screen-about-product .nutri-info-section p{overflow-wrap:anywhere!important}
@media(max-width:700px){
#screen-about-product .nutri-intro-hero{display:block!important;padding:17px 13px!important}
#screen-about-product .nutri-intro-center{display:block!important;padding:0!important}
#screen-about-product .nutri-intro-heading{font-size:19px!important}
#screen-about-product .nutri-intro-copy p{font-size:14px!important;line-height:1.9!important}
#screen-about-product .nutri-other-row,#screen-about-product .nutri-innovation-row,#screen-about-product .nutri-info-section.nutri-method-section,#screen-about-product .nutri-info-section.nutri-scope-section{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:13px!important}
#screen-about-product .nutri-other-row img,#screen-about-product .nutri-innovation-row img,#screen-about-product .nutri-info-section .nutri-section-photo{width:100%!important;height:175px!important;max-height:190px!important;object-fit:cover!important}
#screen-about-product .nutri-innovation-row:nth-of-type(even){direction:rtl!important}
#screen-about-product .nutri-other-row h3,#screen-about-product .nutri-innovation-row h3{font-size:16px!important;padding:9px 11px!important}
}

/* v111: scoped final layout, appended after legacy overrides */
#screen-about-product .nutri-innovation-intro{background:#fffdf5!important;border:1.5px solid #e5ce72!important;border-radius:18px!important;padding:18px!important}
#screen-about-product .nutri-innovation-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:20px!important;border:1.5px solid #e5ce72!important;background:#fffdf5!important;border-radius:18px!important;padding:18px!important;margin:18px auto!important;max-width:1100px!important;box-sizing:border-box!important;direction:rtl!important}
#screen-about-product .nutri-innovation-row:nth-of-type(even){flex-direction:row-reverse!important}
#screen-about-product .nutri-innovation-row>img{flex:0 0 27%!important;width:27%!important;height:190px!important;max-height:190px!important;object-fit:cover!important;border-radius:13px!important}
#screen-about-product .nutri-innovation-row>div{flex:1 1 0!important;min-width:0!important;direction:rtl!important}
#screen-about-product .nutri-innovation-row h3{background:#eee12c!important;border-radius:12px!important;padding:10px 15px!important;margin:0 0 14px!important}
#screen-about-product .nutri-about-bottom-grid{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;gap:16px!important;direction:rtl!important;align-items:stretch!important;margin:24px auto!important;max-width:1100px!important}
#screen-about-product .nutri-bottom-side{display:flex!important;flex-direction:column!important;gap:16px!important;min-width:0!important}
#screen-about-product .nutri-bottom-panel{min-width:0!important;border:1.5px solid #e5ce72!important;border-radius:20px!important;padding:15px!important;background:#fffdf5!important;box-sizing:border-box!important;overflow:hidden!important;direction:rtl!important}
#screen-about-product .nutri-panel-title{background:#f0d94a!important;border-radius:24px!important;text-align:center!important;padding:9px 12px!important;margin:0 0 14px!important;font-size:clamp(17px,1.7vw,22px)!important;font-weight:800!important}
#screen-about-product .nutri-method-steps{display:flex!important;flex-direction:column!important;gap:8px!important}
#screen-about-product .nutri-method-step{display:flex!important;align-items:center!important;gap:10px!important;padding:9px 11px!important;border-radius:15px!important;background:#fbf2d8!important;line-height:1.7!important;font-size:clamp(13px,1.2vw,16px)!important}
#screen-about-product .nutri-step-number{display:grid!important;place-items:center!important;flex:0 0 32px!important;width:32px!important;height:32px!important;border-radius:50%!important;background:#d6a500!important;color:#fff!important;font-weight:800!important}
#screen-about-product .nutri-panel-photo{display:block!important;width:min(100%,230px)!important;height:115px!important;object-fit:cover!important;border-radius:13px!important;margin:12px auto 0!important}
#screen-about-product .nutri-scope-panel .nutri-panel-photo{width:160px!important;height:100px!important;margin:8px auto!important}
#screen-about-product .nutri-bottom-panel p{line-height:1.85!important;margin:8px 0!important;text-align:right!important}
@media(max-width:700px){#screen-about-product .nutri-about-bottom-grid{grid-template-columns:minmax(0,1fr)!important}#screen-about-product .nutri-innovation-row,#screen-about-product .nutri-innovation-row:nth-of-type(even){flex-direction:column!important;align-items:stretch!important}#screen-about-product .nutri-innovation-row>img{width:100%!important;flex:none!important;height:145px!important;max-height:145px!important}#screen-about-product .nutri-bottom-panel{padding:12px!important}#screen-about-product .nutri-panel-photo{height:110px!important}}
