/* Nuvily V10, weekly insights. Scope everything to the planner component. */
.weekly-insights[hidden],.weekly-insights [hidden]{display:none!important}
.weekly-insights{margin:20px 0 22px;border:1px solid #e4dffa;border-radius:22px;background:linear-gradient(135deg,#f8f7ff 0%,#fff 68%);color:#3c345c;box-shadow:0 8px 24px rgba(72,52,119,.04);overflow:hidden}
.weekly-insights-toggle{display:flex;gap:15px;align-items:center;width:100%;padding:18px 21px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.weekly-insights-toggle:focus-visible,.insight-suggest:focus-visible,.insight-choice:focus-visible,.insight-picker-actions button:focus-visible{outline:3px solid #7568e7;outline-offset:3px}
.weekly-insights-mark{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:13px;background:#eeecff;color:#7568e7}
.weekly-insights-mark svg{width:22px;height:22px}
.weekly-insights-heading{display:grid;gap:3px;min-width:0;flex:1}
.weekly-insights-heading strong{font-size:1rem;font-weight:850;line-height:1.3;color:#392e60}
.weekly-insights-heading small{font-size:.78rem;color:#766d90;line-height:1.4}
.weekly-insights-head-action{color:#6959d2;font-weight:800;font-size:.8rem;white-space:nowrap}
.weekly-insights-chevron{width:10px;height:10px;border-right:2px solid #7568e7;border-bottom:2px solid #7568e7;transform:rotate(45deg);transition:transform .18s;flex:none}
.weekly-insights-toggle[aria-expanded=true] .weekly-insights-chevron{transform:rotate(225deg)}
.weekly-insights-content{border-top:1px solid #ede8fc;padding:18px 21px 21px}
.insight-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.insight-stat{border:1px solid #eeeafa;border-radius:14px;background:#fff;padding:11px 13px;display:grid;gap:3px}
.insight-stat strong{font-weight:850;font-size:1.3rem;color:#5f51bb;line-height:1.1}
.insight-stat span{font-size:.73rem;color:#736d86;line-height:1.35}
.insight-intro{font-size:.84rem;line-height:1.55;color:#4d4166;margin:15px 0 16px}
.insight-breakdown{margin:13px 0 17px;display:grid;gap:7px}
.insight-breakdown h3,.insight-findings h3{font-size:.87rem;font-weight:850;color:#443563;margin:0 0 5px}
.insight-breakdown-row{display:grid;grid-template-columns:minmax(95px,140px) 1fr 24px;gap:10px;align-items:center;font-size:.78rem}
.insight-breakdown-row>span{overflow-wrap:anywhere;color:#504562}
.insight-breakdown-row>strong{font-size:.75rem;text-align:right}
.insight-breakdown-track{height:8px;background:#ece9fa;border-radius:99px;overflow:hidden}
.insight-breakdown-bar{display:block;height:100%;border-radius:99px;background:#7568e7;max-width:100%}
.insight-muted{font-size:.76rem;line-height:1.5;color:#797088;margin:5px 0}
.insight-findings{border-top:1px solid #e9e5f6;padding-top:15px;display:grid;gap:10px}
.insight-finding{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #eeeafa;background:#fff;padding:12px 14px;border-radius:12px}
.insight-finding-copy{min-width:180px;flex:1}
.insight-finding-copy strong{font-size:.81rem;color:#544183}
.insight-finding-copy p{color:#726c7f;font-size:.76rem;line-height:1.45;margin:3px 0 0}
.insight-suggest,.insight-picker-actions button{border:1px solid #7568e7;background:#7568e7;color:#fff;border-radius:11px;padding:10px 13px;font-size:.76rem;font-weight:800;cursor:pointer;min-height:41px}
.insight-suggest:hover,.insight-picker-actions .insight-confirm:hover{background:#6356ce}
.insight-disclaimer{margin:15px 0 0;font-size:.69rem;color:#817a90;line-height:1.5}
.insight-picker{margin-top:17px;border-top:1px solid #e9e5f6;padding-top:16px}
.insight-picker-head{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}
.insight-picker-head h3{font-size:.92rem;margin:0;color:#443563}
.insight-picker-head p{margin:4px 0 11px;font-size:.77rem;color:#776f88;line-height:1.45}
.insight-picker-close{border:1px solid #dad2f0;background:white;color:#675bb7;padding:8px 10px;border-radius:9px;font-weight:800;font-size:.74rem;cursor:pointer}
.insight-picker-results{display:grid;gap:9px;margin:8px 0 12px}
.insight-choice{width:100%;display:flex;gap:12px;align-items:center;text-align:left;border:1px solid #e4def5;border-radius:13px;background:white;padding:10px 12px;color:#493c61;cursor:pointer}
.insight-choice[aria-pressed=true]{border-color:#7568e7;background:#f6f4ff;box-shadow:0 0 0 1px #7568e7 inset}
.insight-choice img{width:55px;height:55px;border-radius:9px;object-fit:cover;flex:none;background:#ebe6f1}
.insight-choice-info{display:grid;gap:3px;min-width:0;flex:1}
.insight-choice-info strong{font-size:.8rem;line-height:1.4;overflow-wrap:anywhere}
.insight-choice-info small{font-size:.71rem;color:#766b86}
.insight-choice-check{font-size:.78rem;font-weight:800;color:#7568e7}
.insight-picker-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.insight-picker-actions button:disabled{background:#ccc5df;border-color:#ccc5df;cursor:not-allowed}
.insight-picker-status{font-size:.76rem;color:#766b87;min-height:1em;margin:10px 0 0}
@media(max-width:650px){
 .weekly-insights{margin:15px 0;border-radius:17px}
 .weekly-insights-toggle{padding:14px 13px;gap:10px}
 .weekly-insights-mark{width:38px;height:38px}
 .weekly-insights-heading strong{font-size:.9rem}
 .weekly-insights-heading small{font-size:.72rem}
 .weekly-insights-head-action{display:none}
 .weekly-insights-content{padding:13px}
 .insight-stats{gap:6px}
 .insight-stat{padding:10px 7px;text-align:center}
 .insight-stat strong{font-size:1.1rem}
 .insight-stat span{font-size:.65rem}
 .insight-breakdown-row{grid-template-columns:minmax(83px,110px) 1fr 20px;gap:7px;font-size:.72rem}
 .insight-suggest{width:100%}
 .insight-picker-actions button{width:100%}
}


/* V10.1: alternatives action visible without requiring a detected repetition. */
.weekly-insights-chooser{border-top:1px solid #ede8fc;display:flex;align-items:center;gap:12px;padding:12px 20px 16px;flex-wrap:wrap}
.weekly-insights-chooser[hidden]{display:none!important}
.weekly-insights-chooser label{font-size:.78rem;font-weight:800;color:#52456f}
.weekly-insights-chooser select{min-width:180px;max-width:100%;flex:1;border:1px solid #dcd5f2;background:#fff;color:#41355d;border-radius:10px;padding:11px 12px;min-height:43px;font-size:.8rem}
.weekly-insights-chooser button{border:1px solid #7568e7;background:#7568e7;color:#fff;border-radius:11px;padding:11px 15px;font-size:.81rem;font-weight:850;min-height:43px;cursor:pointer}
.weekly-insights-chooser button:hover:not(:disabled){background:#6356ce}
.weekly-insights-chooser button:disabled{opacity:.62;cursor:not-allowed;background:#ccc5df;border-color:#ccc5df}
.weekly-insights-chooser select:focus-visible,.weekly-insights-chooser button:focus-visible{outline:3px solid #7568e7;outline-offset:3px}
.weekly-insights-content{padding-top:14px}
.weekly-insights-content>.insight-picker:not([hidden]){margin-top:0;border-top:0;padding-top:2px;margin-bottom:18px;padding-bottom:17px;border-bottom:1px solid #e9e5f6}
@media(max-width:650px){
 .weekly-insights-chooser{padding:12px 13px 15px;gap:8px;display:grid;grid-template-columns:1fr}
 .weekly-insights-chooser label{font-size:.76rem}
 .weekly-insights-chooser select,.weekly-insights-chooser button{width:100%;min-width:0}
}


/* V10.2: actionable, consolidated findings. */
.weekly-insights .insight-finding{display:block;padding:15px 16px;border-color:#e9e4f9}
.weekly-insights .insight-finding-copy{margin-bottom:12px}
.weekly-insights .insight-finding-copy strong{font-size:.91rem;color:#4b387e}
.weekly-insights .insight-finding-copy p{max-width:820px}
.weekly-insights .insight-affected-list{display:grid;gap:7px}
.weekly-insights .insight-affected-row{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fbfaff;border:1px solid #f0edfa;border-radius:10px;padding:11px 12px;min-width:0}
.weekly-insights .insight-affected-detail{display:grid;gap:4px;min-width:0;flex:1}
.weekly-insights .insight-slot-time{font-size:.72rem;font-weight:850;color:#7864c5}
.weekly-insights .insight-slot-title{font-size:.81rem;font-weight:680;color:#4e4662;line-height:1.4;overflow-wrap:anywhere}
.weekly-insights .insight-suggest,.weekly-insights .insight-unlock{border-radius:10px;padding:9px 13px;min-height:39px;font-size:.75rem;font-weight:850;cursor:pointer;flex:none}
.weekly-insights .insight-unlock{border:1px solid #c7bceb;background:white;color:#6657bc}
.weekly-insights .insight-unlock:hover{background:#f3f0ff}
.weekly-insights .insight-slot-locked{font-size:.72rem;color:#756f84}
.weekly-insights .weekly-insights-more{margin-top:20px;border-top:1px solid #eee8fb;padding-top:16px}
.weekly-insights .weekly-insights-more>strong{display:block;font-size:.89rem;color:#4d3e7b}
.weekly-insights .weekly-insights-more>p{color:#77708b;margin:4px 0 8px;font-size:.77rem;line-height:1.5}
.weekly-insights .weekly-insights-more .weekly-insights-chooser{border:0;background:#f9f8ff;border-radius:13px;padding:13px}
.weekly-insights .weekly-insights-more button{background:#fff;color:#6553c8}
.weekly-insights .weekly-insights-more button:hover:not(:disabled){background:#f0edff}
.weekly-insights .weekly-insights-more button:disabled{background:#eeeaf9;color:#898398;border-color:#eeeaf9}
.weekly-insights .insight-suggest:focus-visible,.weekly-insights .insight-unlock:focus-visible{outline:3px solid #7568e7;outline-offset:2px}
@media(max-width:650px){
 .weekly-insights .insight-finding{padding:12px}
 .weekly-insights .insight-affected-row{align-items:stretch;flex-direction:column;gap:9px}
 .weekly-insights .insight-suggest,.weekly-insights .insight-unlock{width:100%}
 .weekly-insights .weekly-insights-more .weekly-insights-chooser{padding:10px}
}


/* V10.3: compact progressive disclosure, including the mobile plan. */
.weekly-insights .weekly-insights-content{padding:10px 16px 12px}
.weekly-insights .insight-stats,.weekly-insights .insight-intro{display:none}
.weekly-insights .insight-findings{border-top:0;padding-top:0;display:grid;gap:6px}
.weekly-insights .insight-findings>h3{margin:3px 0 5px;font-size:.8rem;color:#5a4b7f}
.weekly-insights .insight-finding{display:block;border:1px solid #e9e4f9;border-radius:12px;padding:0;background:#fff;overflow:hidden}
.weekly-insights .insight-finding-summary{display:flex;align-items:center;gap:11px;min-height:44px;padding:10px 13px;cursor:pointer;list-style:none}
.weekly-insights .insight-finding-summary::-webkit-details-marker{display:none}
.weekly-insights .insight-finding-summary:focus-visible,.weekly-insights .insight-distribution-summary:focus-visible,.weekly-insights .weekly-insights-more>summary:focus-visible{outline:3px solid #7568e7;outline-offset:-3px}
.weekly-insights .insight-finding-primary{flex:1;min-width:0;font-size:.82rem;font-weight:800;color:#55417f;line-height:1.35}
.weekly-insights .insight-finding-pill{white-space:nowrap;background:#eeebff;color:#6656b6;border-radius:999px;padding:4px 8px;font-size:.71rem;font-weight:800}
.weekly-insights .insight-finding-arrow,.weekly-insights .insight-distribution-arrow{display:inline-block;width:8px;height:8px;border-right:2px solid #7568e7;border-bottom:2px solid #7568e7;transform:rotate(45deg);margin:0 4px 4px;flex:none}
.weekly-insights .insight-finding[open] .insight-finding-arrow,.weekly-insights .insight-distribution[open] .insight-distribution-arrow{transform:rotate(225deg);margin-top:5px;margin-bottom:0}
.weekly-insights .insight-finding-body{padding:0 12px 11px;border-top:1px solid #f1edfa}
.weekly-insights .insight-finding-explanation{font-size:.74rem;line-height:1.45;color:#776f89;margin:10px 0}
.weekly-insights .insight-affected-list{max-height:315px;overflow-y:auto;gap:5px;scrollbar-width:thin}
.weekly-insights .insight-affected-row{padding:7px 10px;min-height:43px;background:#fbfaff;gap:8px}
.weekly-insights .insight-affected-detail{display:flex;align-items:center;gap:10px;min-width:0}
.weekly-insights .insight-slot-time{flex:none;min-width:84px;font-size:.71rem}
.weekly-insights .insight-slot-title{font-size:.75rem;line-height:1.35;overflow-wrap:anywhere}
.weekly-insights .insight-suggest,.weekly-insights .insight-unlock{padding:7px 10px;min-height:34px;font-size:.72rem}
.weekly-insights .insight-distribution{margin-top:10px;border:1px solid #ede8fa;border-radius:12px;background:#fff;overflow:hidden}
.weekly-insights .insight-distribution-summary{display:flex;align-items:center;gap:8px;min-height:41px;padding:9px 12px;cursor:pointer;list-style:none;color:#6553a3;font-size:.78rem;font-weight:800}
.weekly-insights .insight-distribution-summary::-webkit-details-marker{display:none}
.weekly-insights .insight-distribution-count{margin-left:auto;font-size:.69rem;font-weight:650;color:#867d9b}
.weekly-insights .insight-distribution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:10px 13px 12px;border-top:1px solid #eeeafa}
.weekly-insights .insight-breakdown{margin:0;gap:5px}
.weekly-insights .insight-breakdown h3{font-size:.78rem;margin-bottom:4px}
.weekly-insights .insight-breakdown-row{grid-template-columns:minmax(70px,125px) 1fr 20px;gap:8px;font-size:.72rem}
.weekly-insights .insight-breakdown-track{height:6px}
.weekly-insights .insight-disclaimer{margin:9px 0 0;font-size:.65rem}
.weekly-insights .weekly-insights-more{display:block;margin-top:9px;padding:0;border:1px solid #ede8fa;border-radius:12px;overflow:hidden}
.weekly-insights .weekly-insights-more[hidden]{display:none!important}
.weekly-insights .weekly-insights-more>summary{display:block;min-height:41px;padding:10px 13px;list-style:none;cursor:pointer;font-size:.78rem;font-weight:800;color:#6653ac}
.weekly-insights .weekly-insights-more>summary::-webkit-details-marker{display:none}
.weekly-insights .weekly-insights-more>summary::after{content:'⌄';float:right;font-size:.98rem;line-height:.8}
.weekly-insights .weekly-insights-more[open]>summary::after{content:'⌃'}
.weekly-insights .weekly-insights-more>p{margin:0 13px 6px;font-size:.73rem}
.weekly-insights .weekly-insights-more .weekly-insights-chooser{padding:7px 12px 12px;margin:0;background:transparent}
.weekly-insights .weekly-insights-more .weekly-insights-chooser select{max-width:450px;flex:1}
.weekly-insights .insight-picker:not([hidden]){margin:0 0 12px;padding:10px 0 14px}
.weekly-insights .insight-extra-findings{border:1px solid #eee9fb;background:#fbfaff;border-radius:12px;overflow:hidden}
.weekly-insights .insight-extra-summary{cursor:pointer;list-style:none;padding:10px 13px;font-size:.75rem;color:#6757b5;font-weight:800;min-height:41px}
.weekly-insights .insight-extra-summary::-webkit-details-marker{display:none}
.weekly-insights .insight-extra-summary::after{content:'⌄';float:right;font-size:.95rem;line-height:.8}
.weekly-insights .insight-extra-findings[open] .insight-extra-summary::after{content:'⌃'}
.weekly-insights .insight-extra-summary:focus-visible{outline:3px solid #7568e7;outline-offset:-3px}
.weekly-insights .insight-extra-list{display:grid;gap:6px;padding:0 7px 8px}
@media(max-width:650px){
 .weekly-insights .weekly-insights-content{padding:9px 10px 12px}
 .weekly-insights .insight-finding-summary{padding:10px;min-height:45px;gap:7px}
 .weekly-insights .insight-finding-primary{font-size:.76rem}
 .weekly-insights .insight-finding-pill{font-size:.65rem;padding:4px 6px}
 .weekly-insights .insight-affected-list{max-height:290px}
 .weekly-insights .insight-affected-row{padding:8px;align-items:stretch;gap:5px}
 .weekly-insights .insight-affected-detail{display:grid;gap:3px}
 .weekly-insights .insight-slot-time{min-width:0}
 .weekly-insights .insight-suggest,.weekly-insights .insight-unlock{min-height:35px}
 .weekly-insights .insight-distribution-grid{grid-template-columns:1fr;gap:14px;padding:12px}
 .weekly-insights .insight-distribution-count{font-size:.64rem}
 .weekly-insights .weekly-insights-more .weekly-insights-chooser select{max-width:100%;width:100%}
}


/* V10.4: locked meals are visible, disabled and explained, even on phones. */
.weekly-insights .weekly-insights-more .insight-lock-hint{
 margin:0 12px 10px;padding:8px 10px;border-radius:8px;
 font-size:.71rem;line-height:1.45;color:#605782;background:#f5f2ff;
}
.weekly-insights .weekly-insights-more .insight-lock-hint[hidden]{display:none!important}
.weekly-insights .weekly-insights-more .weekly-insights-chooser select option:disabled{
 color:#817a91;
}
@media(max-width:650px){
 .weekly-insights .weekly-insights-more .insight-lock-hint{font-size:.69rem;margin:0 10px 10px}
}
