:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#153c43;background:#f3f8f7;font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e49c4e;outline-offset:2px}h1,h2,h3,p{margin-top:0}.top{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px max(20px,calc((100vw - 1600px)/2));background:#103f46;color:white}.brand{display:flex;align-items:center;gap:16px}.mark{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;background:#2e7176;color:#bce6dc;font-size:34px;line-height:1}.top h1{font-size:1.23rem;margin:0 0 4px;font-weight:750;letter-spacing:-.02em}.top p{margin:0;color:#d0e7e5;font-size:.9rem;line-height:1.35}.language{background:#e8f4f1;color:#12434b;border:0;border-radius:99px;padding:12px 16px;white-space:nowrap;font-weight:700;min-height:44px}.layout{max-width:1640px;margin:0 auto;display:grid;grid-template-columns:minmax(350px,1.25fr) minmax(290px,.9fr) minmax(340px,1.05fr);gap:15px;padding:18px}.panel{min-width:0;background:white;border:1px solid #d9e8e5;border-radius:20px;padding:20px;box-shadow:0 6px 25px #204e4b0a}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px;gap:8px}.section-head>div{display:flex;align-items:center;gap:9px}.section-head h2{font-size:1.17rem;letter-spacing:-.02em;margin:0}.step{font-weight:800;font-size:.72rem;background:#e0efeb;color:#215d60;padding:7px;border-radius:7px}.count-pill{font-size:.8rem;color:#426369;background:#edf5f3;border-radius:99px;padding:5px 9px;white-space:nowrap}.catalog input{width:100%;min-height:46px;border:1px solid #bfd4d0;border-radius:11px;padding:9px 13px;color:#163f43;background:#fff}.categories{display:flex;gap:6px;overflow-x:auto;padding:12px 0;scrollbar-width:thin}.category{border:1px solid #cbddda;background:white;color:#31585e;border-radius:99px;padding:9px 12px;white-space:nowrap;min-height:42px;font-size:.86rem}.category.active{background:#164d54;color:white;border-color:#164d54}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:calc(100vh - 255px);overflow-y:auto;padding-right:3px}.food-card{min-width:0;border:1px solid #dbe8e5;border-radius:15px;padding:12px;display:flex;flex-direction:column;gap:9px}.food-main{border:0;background:none;text-align:left;padding:0;color:inherit;width:100%}.food-icon{height:72px;display:grid;place-items:center;font-size:2.45rem;border-radius:12px;background:#f3f7f6;border:2px solid var(--ring);margin-bottom:9px}.food-card h3{font-size:.96rem;line-height:1.3;margin:0}.food-card .secondary{font-size:.8rem;color:#657b7c;margin:2px 0 0}.speed-tag{font-size:.78rem;font-weight:750;color:var(--ink);display:inline-flex;gap:5px;align-items:center}.speed-tag .symbol{font-size:.9rem}.food-card select,.meal-item select{width:100%;border:1px solid #c7d9d6;border-radius:9px;background:#fff;color:#163f43;min-height:42px;padding:6px}.card-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:.8rem}.add,.primary{border:0;border-radius:9px;background:#14545b;color:white;padding:9px 14px;font-weight:700;min-height:42px}.add:hover,.primary:hover{background:#0c3e45}.muted{color:#587176}.meal-list{display:grid;gap:10px}.meal-item{border:1px solid #dae7e4;border-radius:13px;padding:11px;display:grid;grid-template-columns:42px 1fr auto;gap:9px;align-items:start}.meal-icon{font-size:1.65rem}.meal-name{font-weight:700;font-size:.93rem}.meal-meta{font-size:.77rem;color:#55747a;margin:4px 0 7px}.remove{background:#f4f6f5;border:0;border-radius:8px;color:#385b61;min-height:38px;min-width:38px}.empty{border:1px dashed #b9d4d0;background:#f8fbfa;border-radius:14px;padding:30px 16px;text-align:center;color:#567276;line-height:1.5}.adjust{border-top:1px solid #e1ece9;margin-top:18px;padding-top:18px}.adjust h3{font-size:1rem}.suggestions{display:grid;gap:7px}.suggestion{border:1px solid #c9ddd8;background:#f6faf9;color:#164d54;padding:11px;border-radius:10px;text-align:left;min-height:44px}.suggestion.selected{border:2px solid #164d54;background:#eaf5f2}.comparison-summary{font-size:.86rem;background:#eef6f4;padding:12px;border-radius:10px;margin-top:12px}.comparison-summary p{margin:6px 0}.comparison-actions{display:flex;gap:8px;margin-top:11px;flex-wrap:wrap}.secondary-btn{border:1px solid #b6ceca;background:white;color:#164d54;border-radius:9px;padding:9px 12px;min-height:42px}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px}.metric{background:#f3f8f7;border:1px solid #e1eeeb;padding:13px;border-radius:12px;min-width:0}.metric small{display:block;color:#5c7579;font-size:.78rem;margin-bottom:7px}.metric strong{font-size:1rem;line-height:1.3}.metric .speed-tag{font-size:.92rem}.result-lead{font-size:.9rem;line-height:1.5;margin-bottom:14px}.chart-wrap{border:1px solid #dce9e7;border-radius:14px;padding:10px 8px 6px;overflow:hidden}.chart-wrap svg{width:100%;height:auto;display:block}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:.78rem;color:#3d6165;margin:7px 8px}.legend-line{display:inline-block;width:25px;border-top:3px solid #16727b;vertical-align:middle;margin-right:5px}.legend-line.dashed{border-top:3px dashed #b66840}.axis-note{font-size:.76rem;color:#547277;text-align:center;margin:5px 0}.contributors{margin:17px 0 0}.contributors h3{font-size:.92rem;margin-bottom:7px}.contributors p{font-size:.87rem;line-height:1.5;color:#3e6063}.safety{border-top:1px solid #e3eeec;padding-top:14px;margin:19px 0 0;font-size:.78rem;line-height:1.48;color:#4d686c}.demo{font-size:.76rem;color:#61787b;margin:11px 0 0}.mobile-bar{display:none}dialog{border:0;border-radius:18px;max-width:min(440px,calc(100vw - 28px));width:100%;padding:24px;box-shadow:0 20px 80px #163f4370;color:#153c43}dialog::backdrop{background:#102e33a0}dialog h2{font-size:1.2rem}dialog p{line-height:1.55}.dialog-icon{font-size:2.5rem}.dialog-close{float:right}.detail-data{background:#f3f8f7;padding:12px;border-radius:10px;font-size:.9rem;margin:14px 0}@media(max-width:1150px){.layout{grid-template-columns:1fr 1fr}.catalog{grid-row:span 2}.result-panel{grid-column:2}.cards{max-height:none}}@media(max-width:760px){.top{padding:15px;align-items:flex-start}.brand{gap:10px}.mark{width:39px;height:39px;font-size:28px}.top h1{font-size:1rem}.top p{font-size:.77rem}.language{font-size:.78rem;padding:9px;min-height:42px}.layout{display:flex;flex-direction:column;padding:11px;gap:11px;padding-bottom:84px}.panel{padding:15px;border-radius:15px}.cards{max-height:none}.mobile-bar{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:9px 14px calc(9px + env(safe-area-inset-bottom));background:#103f46;color:white;box-shadow:0 -6px 20px #123e4330;z-index:3;font-size:.87rem}.mobile-bar button{border:0;background:#e3f2ef;color:#103f46;border-radius:9px;min-height:44px;padding:8px 12px;font-weight:700}}@media(max-width:370px){.top{gap:6px}.brand{gap:7px}.mark{display:none}.top h1{font-size:.94rem}.top p{font-size:.72rem}.food-card{padding:9px}.cards{gap:7px}.food-card h3{font-size:.84rem}.food-icon{height:62px}.card-bottom{flex-wrap:wrap}.add{width:100%}.panel{padding:11px}}@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
/* Compact food library: categories stay visible as the library grows. */
.layout{grid-template-columns:minmax(410px,1.45fr) minmax(280px,.82fr) minmax(330px,1fr)}
.catalog-hint,.drop-hint{font-size:.78rem;color:#5c7579;margin:8px 0 2px;line-height:1.4}
.cards{display:block;max-height:calc(100vh - 253px);overflow-y:auto;padding-right:3px}
.food-group{border:1px solid #dce9e6;border-radius:13px;margin-bottom:9px;padding:10px;background:#fbfdfc}
.group-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;color:#31585e}
.group-heading h3{font-size:.84rem;margin:0;font-weight:750}
.group-heading span{font-size:.76rem;color:#6b8384}
.food-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:6px}
.food-chip{min-width:0;border:1px solid #d0e2df;border-left:3px solid var(--ring);border-radius:11px;background:#fff;display:flex;align-items:stretch;min-height:62px;box-shadow:0 2px 5px #17474709}
.food-chip:hover{background:#f3faf8;border-color:#a9cfc8;border-left-color:var(--ring)}
.chip-add{border:0;background:none;color:#173e43;text-align:left;display:flex;align-items:center;gap:7px;flex:1;min-width:0;padding:7px 3px 7px 8px;min-height:60px}
.chip-icon{width:30px;flex:none;text-align:center;font-size:1.4rem;line-height:1}
.chip-text{display:block;min-width:0;flex:1;line-height:1.18}
.chip-text strong{display:block;font-size:.83rem;overflow-wrap:anywhere}
.chip-text small{display:block;color:#6b7f80;font-size:.71rem;margin-top:2px;overflow-wrap:anywhere}
.chip-meta{display:block;font-size:.69rem;color:#3e6c6d;margin-top:4px;font-weight:700;line-height:1.2}
.chip-plus{font-size:1.1rem;font-weight:700;color:#26716c;align-self:center}
.chip-info{align-self:center;margin:3px 5px 3px 0;border:0;background:#eef5f3;color:#315e63;border-radius:99px;min-width:33px;min-height:40px;font-size:1.05rem}
.meal-panel.drop-active{outline:3px dashed #23877f;outline-offset:-8px;background:#f0faf7}
@media(max-width:1150px){.layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.cards{max-height:none}.food-chips{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}
@media(max-width:760px){.layout{display:flex}.cards{max-height:none}.food-chips{grid-template-columns:repeat(auto-fill,minmax(142px,1fr))}.catalog-hint{margin-bottom:0}.food-chip{min-height:62px}}
@media(max-width:370px){.food-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.food-group{padding:7px}.chip-add{gap:3px;padding:6px 1px 6px 4px}.chip-icon{width:23px;font-size:1.12rem}.chip-text strong{font-size:.76rem}.chip-text small,.chip-meta{font-size:.64rem}.chip-plus{display:none}.chip-info{min-width:28px;margin-right:2px}}
/* One-language compact picker and stronger four-colour outline key. */
.color-legend{display:flex;flex-wrap:wrap;gap:6px 10px;padding:10px 0 5px;margin:0;font-size:.76rem;color:#31575a;line-height:1.3}
.legend-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-weight:650}
.legend-swatch{width:16px;height:16px;border:3px solid;border-radius:5px;background:#fff;flex:none}
.legend-swatch.faster{border-color:#df685c}.legend-swatch.moderate{border-color:#c88916}.legend-swatch.slower{border-color:#188b83}.legend-swatch.minimal{border-color:#77898c}
.food-chip{border:3px solid var(--ring);border-radius:12px;min-height:52px;background:#fff}
.food-chip:hover{border-color:var(--ring);box-shadow:0 0 0 2px #d8eeea}
.chip-add{min-height:50px;padding:5px 2px 5px 8px}
.chip-text strong{font-size:.89rem;line-height:1.28}
.chip-info{background:#f4f8f7;min-height:40px}
@media(max-width:370px){.chip-add{min-height:50px;padding:5px 1px 5px 4px}.chip-text strong{font-size:.79rem}.color-legend{font-size:.72rem;gap:6px 8px}}
/* One reading path on every screen: foods, meal, then chart. */
.layout{display:flex;flex-direction:column;max-width:1460px;gap:14px;padding:18px}
.catalog,.meal-panel,.result-panel{width:100%}
.cards{max-height:none;overflow:visible;padding:0}
.food-group{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:start;gap:12px;padding:10px 13px}
.group-heading{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:7px 0 0}
.food-chips{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.meal-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}
.meal-view{display:block;margin-top:16px;min-width:190px}
.meal-view[hidden]{display:none}
.result-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.chart-wrap{max-width:860px;margin:0 auto}
.contributors{max-width:860px;margin:17px auto 0}
@media(max-width:760px){.layout{padding:11px;padding-bottom:84px;gap:11px}.food-group{display:block;padding:9px}.group-heading{flex-direction:row;align-items:center;margin:0 0 8px}.food-chips{grid-template-columns:repeat(auto-fill,minmax(142px,1fr))}.meal-list{display:grid;grid-template-columns:1fr}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.meal-view{width:100%}}
@media(max-width:370px){.food-chips{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* User-built second meal; each portion is visible and editable. */
.compare-panel{margin-top:20px;padding:18px;border:2px solid #b9d8d2;border-radius:16px;background:#f7fbfa}
.compare-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.compare-head h3{font-size:1.08rem;margin:0}
.compare-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-bottom:9px}
.compare-controls label{grid-column:1/-1;font-size:.84rem;font-weight:700;color:#31585e}
.compare-controls select{width:100%;min-width:0;min-height:44px;border:1px solid #adcac5;background:white;color:#16444a;border-radius:9px;padding:8px 10px}
.compare-utilities{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.compare-utilities button{font-size:.84rem}
.compare-panel .meal-item{background:white}
.compare-result{display:flex;flex-wrap:wrap;gap:9px;max-width:860px;margin:11px auto 0}
.compare-result span{background:#eef6f4;border:1px solid #d8e8e4;border-radius:10px;padding:10px 13px;font-size:.88rem}
button:disabled{opacity:.45;cursor:not-allowed}
.compare-panel.drop-active{outline:3px dashed #23877f;outline-offset:-8px;background:#e9f8f4}
@media(max-width:600px){.compare-panel{padding:12px}.compare-controls{grid-template-columns:1fr}.compare-controls label{grid-column:1}.compare-controls button{width:100%}.compare-utilities button{flex:1}}
/* Expandable food families keep a large library navigable. */
.categories{flex-wrap:wrap;overflow:visible}
.food-group{display:block}
.food-group>.group-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:40px;margin:0;outline-offset:2px}
.food-group>.group-heading::-webkit-details-marker{display:none}
.food-group>.group-heading strong{font-size:.9rem}
.food-group>.group-heading::before{content:'▸';color:#296d70;font-size:1rem;margin-right:3px;transition:transform .15s}
.food-group[open]>.group-heading::before{transform:rotate(90deg)}
.food-group>.food-chips{padding-top:8px}
.food-group>.group-heading:focus-visible{outline:3px solid #e49c4e;border-radius:7px}
/* Portion calories share the same calculation as the meal total. */
.meal-calories{font-size:.88rem;font-weight:700;color:#285b61;margin:0 0 8px}
.calorie-panel{border:1px solid #bcd9d4;background:#eef7f5;border-radius:15px;padding:16px;margin:14px 0 18px}
.calorie-panel h3{font-size:1rem;margin:0 0 12px;color:#15464d}
.calorie-meal+.calorie-meal{border-top:1px solid #cbdedb;margin-top:14px;padding-top:14px}
.calorie-total{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:.91rem;font-weight:700}
.calorie-total strong{font-size:1.22rem;color:#104e56;text-align:right}
.calorie-list{padding:0;margin:9px 0 0;list-style:none;display:grid;gap:6px}
.calorie-list li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #dbeae7;padding-top:7px;font-size:.88rem}
.calorie-list li span{min-width:0;overflow-wrap:anywhere}
.calorie-list li small{color:#526d71;font-size:.82rem;white-space:nowrap}
.calorie-list li strong{white-space:nowrap;text-align:right;color:#285b61}
.calorie-note{font-size:.8rem;color:#526d71;line-height:1.45;margin:12px 0 0}
@media(max-width:760px){.categories{flex-wrap:nowrap;overflow-x:auto}.food-group>.group-heading{margin:0}.food-group>.food-chips{padding-top:8px}}
/* Portion-based fibre context follows calories, without implying individual outcomes. */
.bowel-panel{border:1px solid #cddfd8;background:#f6faf8;border-radius:15px;padding:16px;margin:0 0 18px}
.bowel-panel h3{font-size:1rem;margin:0 0 12px;color:#15464d}
.bowel-meal+.bowel-meal{border-top:1px solid #d6e5df;margin-top:14px;padding-top:14px}
.bowel-panel .calorie-total strong{font-size:1.15rem}
.bowel-panel .calorie-list li>span:last-child{text-align:right;color:#315e63;font-weight:650}
.bowel-band{font-size:.82rem;color:#406769;margin:5px 0 0}
@media(max-width:420px){.bowel-panel .calorie-list li{display:block}.bowel-panel .calorie-list li>span:last-child{display:block;text-align:left;margin-top:3px}}
.bowel-caution{margin:10px 0 0;padding:10px 12px;border-left:4px solid #b77725;background:#fff6e9;color:#59452e;border-radius:6px;font-size:.84rem;line-height:1.5}
.fibre-reference{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin-top:8px;font-size:.82rem;color:#3f6062}
.fibre-reference strong{font-weight:750}
.fibre-below{color:#875515}
.fibre-ok{color:#176b62}
.research-cue{margin:11px 0 0;border:1px solid #d8e5df;background:#fff;border-radius:9px;padding:10px 12px;font-size:.82rem;line-height:1.48;color:#385b5e}
.research-cue p{margin:4px 0 0}
.fibre-difference{margin:13px 0 0;padding:10px 12px;background:#eaf5f1;border-radius:9px;font-size:.86rem;color:#28565b}

/* Three related results with distinct, readable accents. */
.result-lead{max-width:860px;margin:0 auto 14px;color:#31575c}
.result-grid{max-width:860px;margin-left:auto;margin-right:auto}
.result-grid .metric{background:linear-gradient(145deg,#f1faf8,#fff);border-color:#d2e9e4;border-top:3px solid #168f88}
.result-grid .metric:first-child{border-top-color:#e8a64a}
.result-grid .metric:nth-child(3){border-top-color:#b46c50}
.chart-wrap{background:linear-gradient(165deg,#f0fbf9 0%,#fff 57%);border:1px solid #b7ded8;border-radius:20px;padding:18px 15px 12px;box-shadow:0 12px 28px #156a6a12}
.chart-wrap svg{overflow:visible}
.axis-note{font-weight:700;color:#245f62;margin:7px 0 9px}
.legend{gap:9px;margin:10px 0 0}
.legend span{display:inline-flex;align-items:center;border:1px solid #d6eae6;background:#fff;border-radius:99px;padding:7px 11px;font-weight:700;color:#28565b}
.legend-line{border-color:#087c78}.legend-line.dashed{border-color:#ad5632}
.calorie-panel,.bowel-panel{max-width:860px;margin-left:auto;margin-right:auto;border-radius:20px;padding:19px 20px;box-shadow:0 10px 26px #374c4510}
.calorie-panel{background:linear-gradient(140deg,#fff4db,#fffaf0 56%,#fff);border:1px solid #e7c78b;border-left:5px solid #b76b20}
.calorie-panel h3{color:#744315;display:flex;align-items:center;gap:9px;font-size:1.08rem}
.calorie-panel h3::before{content:'◕';display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#ffe4ad;color:#8e500c;font-size:1.1rem}
.calorie-panel .calorie-total strong{color:#825016;font-size:1.35rem}
.calorie-panel .calorie-list li{border-color:#eddec0}.calorie-panel .calorie-list li strong{color:#80501b}
.bowel-panel{background:linear-gradient(145deg,#e8f6ed,#f6fbf7 60%,#fff);border:1px solid #add4bd;border-left:5px solid #318263}
.bowel-panel h3{color:#1d6549;display:flex;align-items:center;gap:9px;font-size:1.08rem}
.bowel-panel h3::before{content:'✦';display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#ccebd8;color:#276e51;font-size:1.08rem}
.bowel-panel .calorie-total strong{color:#17684b;font-size:1.35rem}
.bowel-panel .calorie-list li{border-color:#d4e8da}.bowel-panel .calorie-list li>span:last-child{color:#295f49}
.fibre-reference{border-radius:10px;padding:9px 11px;background:#fff;border:1px solid #d1e7d8}
.fibre-difference{background:#d9efe2;color:#205c42}
@media(max-width:420px){.chart-wrap{padding:12px 7px 10px}.calorie-panel,.bowel-panel{padding:15px 12px}.calorie-total{align-items:flex-start}.calorie-total strong{white-space:nowrap}.legend{font-size:.72rem}.legend span{padding:6px 8px}}

/* Fibre levels describe an amount; a high amount is not an excess alert. */
.fibre-level{display:inline-flex;align-items:center;min-height:34px;margin:8px 0 2px;padding:6px 12px;border-radius:99px;border:1px solid;font-size:.94rem;font-weight:800;letter-spacing:.01em}
.fibre-level-below{background:#fff2d6;border-color:#d9b96d;color:#76501d}
.fibre-level-within{background:#e2f5ef;border-color:#9acdbb;color:#185d48}
.fibre-level-above{background:#e7eefd;border-color:#aebfe8;color:#294f83}
.bowel-panel .fibre-reference{font-size:.94rem;line-height:1.5;font-weight:650;color:#315b49;margin:10px 0 13px}
.bowel-panel .calorie-list li{font-size:.95rem;line-height:1.5;padding-top:10px}
.bowel-panel .calorie-list li small{font-size:.88rem}
.bowel-panel .calorie-list li>span:last-child{font-size:.92rem}
.bowel-panel .calorie-note{font-size:.93rem;line-height:1.65;color:#365d4c;margin-top:16px}
.bowel-panel .research-cue{font-size:.94rem;line-height:1.6;padding:13px 15px}
.bowel-panel .bowel-caution{font-size:.93rem;line-height:1.6}
.bowel-panel .fibre-difference{font-size:.96rem;line-height:1.55}

/* Food context stays separate from measured fibre and the glucose curve. */
.digestion-panel{max-width:860px;margin:0 auto 18px;padding:19px 20px;border:1px solid #c9d4e5;border-left:5px solid #647ca9;border-radius:20px;background:linear-gradient(145deg,#f0f3fb,#fff 72%);box-shadow:0 10px 26px #374c4510}
.digestion-panel h3{font-size:1.08rem;color:#344d79;margin:0 0 7px}
.digestion-intro,.digestion-compare{font-size:.94rem;line-height:1.6;color:#425574;margin:0 0 13px}
.digestion-meal+.digestion-meal{border-top:1px solid #d4dcea;padding-top:15px;margin-top:15px}
.digestion-meal h4{font-size:.95rem;color:#344d79;margin:0 0 9px}
.digestion-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.digestion-list li{padding:13px;border:1px solid #dce4f0;border-radius:12px;background:#fff;display:grid;grid-template-columns:minmax(100px,135px) minmax(0,1fr);gap:13px;align-items:start}
.digestion-label{display:inline-block;border-radius:99px;padding:6px 9px;font-size:.83rem;font-weight:750;line-height:1.35;text-align:center}
.digestion-regularity{color:#185d48;background:#e1f3e9}
.digestion-gentle{color:#75501e;background:#fff1d8}
.digestion-uncertain{color:#76501e;background:#fff1d8}
.digestion-unknown{color:#4e6072;background:#e9edf1}
.digestion-everyday,.digestion-fibreHigh{color:#185d48;background:#e1f3e9}
.digestion-fibreSome{color:#2c6370;background:#e4f2f4}
.digestion-fibreLow{color:#4e6072;background:#e9edf1}
.digestion-sensitive{color:#75501e;background:#fff1d8}
.digestion-list strong{color:#28435c}.digestion-list small{color:#5c6b7d}
.digestion-list p{font-size:.94rem;line-height:1.6;color:#384d61;margin:5px 0 6px}
.digestion-list a{color:#255c87;font-size:.9rem;font-weight:700;text-underline-offset:3px}
.digestion-list a:focus-visible{outline:3px solid #e49c4e;outline-offset:3px}
.digestion-empty{font-size:.94rem;line-height:1.55;color:#56667a;margin:0}
.digestion-compare{margin:14px 0 0;border-top:1px solid #d4dcea;padding-top:12px}
@media(max-width:420px){.digestion-panel{padding:15px 12px}.digestion-list li{grid-template-columns:1fr;gap:8px}.digestion-label{text-align:left;justify-self:start}}

/* Compact, signed meal cues replace repeated paragraphs on every food. */
.digestion-intro{margin-bottom:5px}
.digestion-scale{font-size:.84rem;line-height:1.5;color:#51627a;margin:0 0 16px}
.digestion-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:9px}
.digestion-summary h4{margin:0}
.digestion-score{font-size:.9rem;border-radius:9px;padding:7px 11px;background:#e9edf1;color:#405365}
.digestion-score-positive{background:#e0f2e9;color:#155c43}
.digestion-score-negative{background:#ece9f8;color:#514181}
.digestion-list{gap:7px}
.digestion-list li{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:9px 11px;border-radius:10px}
.digestion-point{display:grid;place-items:center;width:40px;min-height:40px;border-radius:11px;color:#fff;font-size:1rem;font-weight:800;line-height:1}
.point-plus1{background:#287781}.point-plus2{background:#1b6d55}.point-plus3{background:#10533c}
.point-minus1{background:#7863a5}.point-minus2,.point-minus3{background:#594989}
.point-zero{background:#657380}
.digestion-item{min-width:0}.digestion-item strong{font-size:.94rem}.digestion-item small{font-size:.81rem}
.digestion-item p{font-size:.88rem;line-height:1.4;margin:3px 0 0;color:#4b5e6a}
.digestion-item details{margin-top:5px;font-size:.84rem;color:#3e5c7a}
.digestion-item summary{cursor:pointer;width:max-content;max-width:100%;text-decoration:underline;text-underline-offset:2px}
.digestion-item summary:focus-visible{outline:3px solid #e49c4e;outline-offset:2px}
.digestion-item details p{margin:6px 0}
.digestion-footer{border-top:1px solid #d4dcea;padding-top:12px;margin:16px 0 0;color:#506079;font-size:.88rem;line-height:1.55}
@media(max-width:420px){.digestion-list li{grid-template-columns:40px minmax(0,1fr);gap:9px}.digestion-panel{padding:15px 12px}}

/* Optional data and source page. */
.top-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.reference-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #94c2bd;border-radius:99px;color:#fff;text-decoration:none;font-size:.86rem;font-weight:700;white-space:nowrap}
.reference-link:hover{background:#2e7176}.reference-link:focus-visible{outline:3px solid #e49c4e;outline-offset:2px}
.reference-main{max-width:1140px;margin:0 auto;padding:18px;display:grid;gap:16px}
.reference-main .panel{padding:22px}.reference-main h2{font-size:1.18rem;margin:0 0 15px}
.method-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:24px}
.method-cards article{padding:15px;border-radius:13px;background:#f3f8f7;border:1px solid #d7e7e3}
.method-cards h3{font-size:.98rem;color:#17555b;margin:0 0 7px}.method-cards p{font-size:.9rem;line-height:1.55;color:#405f63;margin:0}
.source-links{display:flex;flex-wrap:wrap;gap:9px 18px;padding-left:20px;margin:0 0 17px;line-height:1.55}
.source-links a,.record-body a{color:#175e67;text-underline-offset:3px;font-weight:650}
.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.reference-catalogue input{width:100%;min-height:46px;border:1px solid #b7d0cb;border-radius:10px;padding:9px 12px;margin-bottom:12px}
.reference-list{display:grid;gap:7px}
.reference-food{border:1px solid #d5e4e0;border-radius:11px;background:#fff;overflow:hidden}
.reference-food[open]{border-color:#9dc8bf;background:#fbfefd}
.reference-food summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:11px 13px;cursor:pointer;list-style:none;min-height:48px}
.reference-food summary::-webkit-details-marker{display:none}.reference-food summary::before{content:'▸';color:#2b7775;grid-column:1;grid-row:1;justify-self:start}
.reference-food[open] summary::before{content:'▾'}.reference-food summary>span:first-of-type{grid-column:1;grid-row:1;padding-left:20px;font-weight:750;overflow-wrap:anywhere}
.reference-food summary:focus-visible{outline:3px solid #e49c4e;outline-offset:-3px}
.record-tag{font-size:.74rem;color:#175c4b;background:#e4f3ed;padding:5px 8px;border-radius:7px}
.record-tag.record-demo{color:#76501d;background:#fff0d5}.record-cue{min-width:32px;text-align:center;font-size:.9rem;font-weight:800;color:#225b63}
.record-body{padding:3px 14px 16px;border-top:1px solid #e5eeeb;font-size:.9rem;line-height:1.5}
.record-body p{margin:9px 0}.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:13px 0}
.record-grid>div{border:1px solid #e2ece9;background:#f7fbfa;border-radius:8px;padding:8px;min-width:0}
.record-grid dt{font-size:.76rem;color:#5b7275}.record-grid dd{margin:3px 0 0;color:#254c52;font-weight:650;overflow-wrap:anywhere}
@media(max-width:760px){.top-actions{gap:6px}.reference-main{padding:11px}.method-cards{grid-template-columns:1fr}.record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.top{flex-wrap:wrap}.top-actions{width:100%;justify-content:flex-start}.reference-main .panel{padding:14px}.reference-food summary{grid-template-columns:minmax(0,1fr) auto}.record-tag{grid-column:1;grid-row:2;justify-self:start;margin-left:20px}.record-cue{grid-column:2;grid-row:1}.record-grid{grid-template-columns:1fr 1fr}}
/* Optional feedback, with comfortable touch controls and visible privacy text. */
#feedback-dialog{border:1px solid #bfd9d4;border-radius:18px;padding:0;width:min(94vw,520px);max-height:90vh;box-shadow:0 24px 80px #173d4250}
#feedback-dialog::backdrop{background:#103f4699}
.feedback-dialog-body{padding:24px;max-height:90vh;overflow:auto}
.feedback-dialog-body h2{margin:0 0 8px;color:#123e43}.feedback-dialog-body>p{line-height:1.55;margin:0 0 16px}
#feedback-form{display:grid;gap:8px}#feedback-form label{font-weight:750;color:#24494c;margin-top:7px}
#feedback-form textarea,#feedback-form input[type=email]{width:100%;min-height:46px;border:1px solid #92b7b4;border-radius:9px;padding:10px 12px;font:inherit;color:#17383c;background:#fff}
#feedback-form textarea{min-height:125px;resize:vertical}#feedback-form :focus-visible{outline:3px solid #e49c4e;outline-offset:2px}
#feedback-email-hint{font-size:.88rem;line-height:1.5;margin:0}.feedback-privacy{padding:11px 13px;background:#edf6f4;border-radius:9px;color:#31575c;font-size:.88rem;line-height:1.55}
.feedback-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.feedback-actions button{min-height:44px}
#feedback-status{min-height:1.4em;color:#175b55;font-weight:700}.honeypot{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
@media(max-width:420px){.feedback-dialog-body{padding:18px}.top-actions{gap:6px}.top-actions .reference-link{padding:7px 9px;font-size:.78rem}}
.visit-banner{margin:0 auto;max-width:1400px;padding:5px 22px 0;text-align:right;color:#42666b;font-size:.79rem;font-weight:700;min-height:23px}
.visit-banner:not(:empty){display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 22px;color:#174950;background:#e7f3f0;border-bottom:1px solid #c3dbd5;font-size:1rem;font-weight:750;line-height:1.3}
.visit-banner strong{display:inline-grid;place-items:center;min-width:44px;padding:5px 10px;border-radius:9px;background:#15545a;color:#fff;font-size:1.35rem;font-weight:850;font-variant-numeric:tabular-nums}
@media(max-width:420px){.visit-banner:not(:empty){padding:9px 16px;font-size:1.03rem}.visit-banner strong{font-size:1.4rem}}
/* Feedback contrast and readable mobile type. */
.top-actions button.reference-link{background:#e9f5f2;border:2px solid #e9f5f2;color:#103f46;font-size:.95rem;font-weight:800;box-shadow:0 2px 0 #092f3540}
.top-actions button.reference-link:hover{background:#fff;border-color:#fff;color:#103f46}
.top-actions button.reference-link:focus-visible{outline:3px solid #f6b75d;outline-offset:3px}
#feedback-dialog{border:2px solid #5d918c;background:#fff;color:#173b40;box-shadow:0 24px 80px #092c38a6}
#feedback-dialog::backdrop{background:#082c36c9}
.feedback-dialog-body{background:#fff;padding:26px}
.feedback-dialog-body h2{font-size:1.55rem;color:#103f46;margin-bottom:10px}
.feedback-dialog-body>p{font-size:1rem;line-height:1.6;color:#315258;margin-bottom:18px}
#feedback-form{gap:10px}
#feedback-form label{font-size:1rem;font-weight:800;color:#163f45;margin-top:9px}
#feedback-form textarea,#feedback-form input[type=email]{min-height:52px;border:2px solid #6c9c97;border-radius:10px;padding:12px 14px;font-size:1.06rem;line-height:1.5;color:#102f35}
#feedback-email-hint{font-size:.97rem;line-height:1.55;color:#3b5c62}
.feedback-privacy{padding:14px 16px;background:#eaf5f2;border:1px solid #b6d5cf;border-radius:10px;color:#23464c;font-size:.96rem;line-height:1.6}
#feedback-status{font-size:1rem;font-weight:750;color:#12574e}
@media(max-width:420px){.feedback-dialog-body{padding:20px}.top-actions button.reference-link{font-size:.94rem;padding:9px 12px}}
/* Three-language controls and longer translated labels. */
select.language{font:inherit;font-weight:750;max-width:100%;min-width:112px;cursor:pointer;border:2px solid #c6e5df}
.calorie-total{flex-wrap:wrap}
@media(max-width:420px){.calorie-total strong{max-width:100%;white-space:normal}.calorie-list li{flex-wrap:wrap}.calorie-list li small{white-space:normal}.brand>div{min-width:0}.top h1{overflow-wrap:break-word}}
html[lang="fr-CA"] .food-chips{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
html[lang="fr-CA"] .chip-text strong{overflow-wrap:break-word;word-break:normal;hyphens:auto}
@media(max-width:420px){html[lang="fr-CA"] .food-chips{grid-template-columns:1fr}html[lang="fr-CA"] .chip-text strong{font-size:.9rem}}

.language-control{display:flex;align-items:center;gap:8px;max-width:100%;flex-wrap:wrap}.language-control label{font-size:16px;font-weight:700;color:#fff}.language-control select{max-width:100%;min-height:44px}
