/* FoodScan 98: Daily Pulse Hub, Data Confidence & Label Math Audit, My Lens, and Aisle Compare Tray. */
.fs98-hub,
.fs98-trust {
  background: var(--surface, #FFFDF7);
  border: 1px solid var(--line, #E0D8C2);
  border-radius: var(--radius, 24px);
  padding: 18px;
  margin: 0 0 16px;
  box-shadow: var(--shadow, 0 1px 0 rgba(13,31,22,.04), 0 14px 34px -18px rgba(13,31,22,.22));
  color: var(--ink, #0D1F16);
}
.fs98-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fs98-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand, #0A5C3C); margin: 0 0 2px; }
:lang(el) .fs98-eyebrow { letter-spacing: normal; }
.fs98-title { font-family: var(--font-display, Georgia, serif); font-size: clamp(1.08rem, 3vw, 1.32rem); line-height: 1.22; margin: 0; color: var(--ink, #0D1F16); }
.fs98-sub { font-size: .84rem; line-height: 1.45; color: var(--ink2, #36463D); margin: 4px 0 0; }
.fs98-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.fs98-badge--good { background: var(--good-bg, #DFF0E2); color: var(--good, #17693F); }
.fs98-badge--warn { background: var(--warn-bg, #FBEBC8); color: var(--warn, #8A5200); }
.fs98-badge--bad  { background: var(--bad-bg, #FBE3DC); color: var(--bad, #A92A14); }
.fs98-badge--soft { background: var(--surface2, #F8F3E6); color: var(--ink2, #36463D); border-color: var(--line, #E0D8C2); }

.fs98-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line2, #CBC1A5); background: var(--surface2, #F8F3E6);
  color: var(--ink, #0D1F16); font-family: var(--font-ui, system-ui, sans-serif);
  font-size: .83rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .14s var(--ease, ease), background .14s ease, border-color .14s ease;
}
.fs98-btn:hover { border-color: var(--brand, #0A5C3C); }
.fs98-btn:active { transform: scale(.98); }
.fs98-btn--primary { background: var(--brand, #0A5C3C); border-color: var(--brand, #0A5C3C); color: var(--brand-ink, #FFFFFF); }
.fs98-btn--primary:hover { background: var(--brand2, #13744B); }
.fs98-btn--sm { min-height: 32px; padding: 4px 10px; font-size: .78rem; }
.fs98-btn[aria-pressed="true"] { background: var(--brand-soft, #DBEDDD); border-color: var(--brand, #0A5C3C); color: var(--brand, #0A5C3C); }

.fs98-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin: 12px 0; }
.fs98-stat { background: var(--surface2, #F8F3E6); border: 1px solid var(--line, #E0D8C2); border-radius: var(--radius-sm, 16px); padding: 10px 12px; min-width: 0; }
.fs98-stat__k { display: block; font-size: .72rem; color: var(--ink3, #52625A); margin-bottom: 2px; }
.fs98-stat__v { display: block; font-family: var(--font-mono, monospace); font-size: 1.05rem; font-weight: 700; color: var(--ink, #0D1F16); }
.fs98-stat__s { display: block; font-size: .71rem; color: var(--ink3, #52625A); margin-top: 2px; }

.fs98-sec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, #E0D8C2); }
.fs98-sec__label { font-size: .76rem; font-weight: 700; color: var(--ink2, #36463D); margin: 0 0 8px; }
.fs98-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs98-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line2, #CBC1A5);
  background: var(--surface, #FFFDF7); color: var(--ink2, #36463D);
  font-size: .77rem; font-weight: 600; cursor: pointer;
}
.fs98-chip[aria-pressed="true"] { background: var(--brand, #0A5C3C); border-color: var(--brand, #0A5C3C); color: var(--brand-ink, #FFFFFF); }
.fs98-chip--log { background: var(--surface2, #F8F3E6); max-width: 220px; }
.fs98-chip__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fs98-checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.fs98-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; line-height: 1.4; color: var(--ink2, #36463D); }
.fs98-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--good, #17693F); }
.fs98-dot--warn { background: var(--warn, #8A5200); }
.fs98-dot--bad  { background: var(--bad, #A92A14); }
.fs98-dot--soft { background: var(--ink3, #52625A); opacity: .55; }

/* 98.1: the lens and backup sit in a closed details block so the hub stays short on a phone */
.fs98-more { margin-top: 12px; border-top: 1px solid var(--line, #E0D8C2); padding-top: 10px; }
.fs98-more > summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--ink2, #36463D); min-height: 32px; display: flex; align-items: center; list-style-position: inside; }
.fs98-more[open] > summary { margin-bottom: 4px; }
.fs98-status:empty { min-height: 0; margin: 0; }
.fs98-stat__k, .fs98-stat__s { overflow-wrap: anywhere; }
.fs98-btn:focus-visible, .fs98-chip:focus-visible, .fs98-more > summary:focus-visible, .fs98-tray button:focus-visible { outline: 3px solid var(--brand, #0A5C3C); outline-offset: 2px; }
.fs98-modal__box:focus { outline: none; }
@media (max-width: 520px) {
  .fs98-hub, .fs98-trust { padding: 14px; border-radius: var(--radius-sm, 18px); }
  .fs98-hub .fs98-head { margin-bottom: 8px; }
  .fs98-hub .fs98-head .fs98-sub { display: none; }                       /* the title says it; keep the first screen short for the scan button below */
  .fs98-hub .fs98-stats { margin: 8px 0; gap: 6px; }
  .fs98-hub .fs98-stat { padding: 8px 10px; }
  .fs98-hub .fs98-stat__v { font-size: .98rem; }
  .fs98-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs98-foot { flex-direction: column; align-items: flex-start; }
  .fs98-tray { max-width: 96vw; gap: 8px; padding: 7px 10px; }
  .fs98-modal { padding: 8px; }
  .fs98-modal__box { padding: 14px; max-height: 92vh; }
}

.fs98-meter { height: 7px; border-radius: 999px; background: var(--bg2, #EBE4D0); overflow: hidden; margin: 8px 0 4px; }
.fs98-meter > i { display: block; height: 100%; border-radius: inherit; background: var(--brand, #0A5C3C); transition: width .25s ease; }

.fs98-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, #E0D8C2); font-size: .76rem; color: var(--ink3, #52625A); }
.fs98-status { font-size: .78rem; font-weight: 600; color: var(--brand, #0A5C3C); margin: 8px 0 0; min-height: 1.1em; }

.fs98-tray {
  position: fixed; left: 50%;
  bottom: calc(var(--fs76-dock-space, 88px) + env(safe-area-inset-bottom, 0px) + 8px);
  transform: translateX(-50%); z-index: 45;
  /* 98.1: width:max-content. A fixed box with left:50% and an automatic width can only be half the screen wide, so on a phone its text broke letter by letter. */
  width: max-content;
  display: flex; align-items: center; gap: 10px; max-width: min(94vw, 520px);
  padding: 8px 12px; border-radius: 999px;
  background: var(--stage, #06130D); color: var(--stage-ink, #F6F1E4);
  box-shadow: var(--shadow-lg, 0 18px 40px rgba(0,0,0,.35));
  border: 1px solid rgba(255,255,255,.14);
}
.fs98-tray[hidden], .fs98-modal[hidden] { display: none; }
.fs98-tray__label { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.fs98-tray__go { background: var(--mint, #5EDBA0); color: var(--mint-ink, #04281C); border: 0; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.fs98-tray__clear { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 9px; font-size: .74rem; cursor: pointer; }

.fs98-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 19, 13, .62); backdrop-filter: blur(4px); }
.fs98-modal__box { width: min(760px, 100%); max-height: 86vh; overflow: auto; background: var(--surface, #FFFDF7); color: var(--ink, #0D1F16); border: 1px solid var(--line, #E0D8C2); border-radius: var(--radius, 24px); padding: 18px; box-shadow: var(--shadow-lg, 0 28px 64px -20px rgba(0,0,0,.5)); }
.fs98-table-wrap { overflow-x: auto; margin-top: 10px; }
.fs98-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fs98-table th, .fs98-table td { padding: 8px 10px; border-bottom: 1px solid var(--line, #E0D8C2); text-align: left; vertical-align: top; }
.fs98-table th { font-size: .76rem; color: var(--ink3, #52625A); font-weight: 700; }
.fs98-win { color: var(--good, #17693F); font-weight: 700; }

.fs98-grade { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; font-weight: 800; font-size: .78rem; }
.fs98-grade--A { background: var(--g-a, #038141); color: var(--g-a-ink, #fff); }
.fs98-grade--B { background: var(--g-b, #85BB2F); color: var(--g-b-ink, #16240A); }
.fs98-grade--C { background: var(--g-c, #FECB02); color: var(--g-c-ink, #2A2200); }
.fs98-grade--D { background: var(--g-d, #EE8100); color: var(--g-d-ink, #2A1600); }
.fs98-grade--E { background: var(--g-e, #D63A0F); color: var(--g-e-ink, #fff); }
.fs98-grade--U { background: var(--surface2, #F8F3E6); color: var(--ink3, #52625A); }

@media (prefers-reduced-motion: reduce) {
  .fs98-btn, .fs98-meter > i { transition: none; }
}

/* FoodScan 99: real portions. The day is what was eaten (amount x the food's numbers) against the WHO limits, not an average per 100 g. */
.fs99-rows { display: grid; gap: 10px; }
.fs99-row { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; min-width: 0; }
.fs99-row .fs98-stat__k { margin: 0; }
.fs99-val { font-family: var(--font-mono, monospace); font-size: .86rem; font-weight: 700; color: var(--ink, #0D1F16); text-align: right; }
.fs99-row .fs98-meter, .fs99-row .fs99-low { grid-column: 1 / -1; }
.fs99-row .fs98-meter { margin: 4px 0 0; }
.fs99-row--near .fs98-meter > i { background: var(--warn, #8A5200); }
.fs99-row--over .fs98-meter > i { background: var(--bad, #A92A14); }
.fs99-row--near .fs99-val { color: var(--warn, #8A5200); }
.fs99-row--over .fs99-val { color: var(--bad, #A92A14); }
.fs99-low { font-size: .72rem; line-height: 1.35; color: var(--ink3, #52625A); }
.fs99-notes { font-size: .72rem; line-height: 1.45; color: var(--ink3, #52625A); }

.fs99-pick { margin-top: 10px; padding: 12px; border: 1px solid var(--brand, #0A5C3C); border-radius: var(--radius-sm, 16px); background: var(--brand-soft, #DBEDDD); }
.fs99-pick .fs98-sec__label { color: var(--ink, #0D1F16); }
.fs99-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.fs99-custom__l { display: grid; gap: 3px; font-size: .72rem; font-weight: 700; color: var(--ink2, #36463D); flex: 1 1 150px; min-width: 0; }
.fs99-custom__l input { min-height: 38px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line2, #CBC1A5); background: var(--surface, #FFFDF7); color: var(--ink, #0D1F16); font: inherit; font-size: 1rem; width: 100%; box-sizing: border-box; }
.fs99-custom__l input:focus-visible { outline: 3px solid var(--brand, #0A5C3C); outline-offset: 1px; }
.fs99-err { color: var(--bad, #A92A14); }
.fs99-err:empty { margin: 0; min-height: 0; }

.fs99-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fs99-list li { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: .82rem; color: var(--ink2, #36463D); }
.fs99-li__n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs99-li__a { flex: 0 0 auto; font-family: var(--font-mono, monospace); font-weight: 700; color: var(--ink, #0D1F16); }
.fs99-x { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2, #CBC1A5); background: var(--surface2, #F8F3E6); color: var(--ink2, #36463D); font-size: .8rem; cursor: pointer; }
.fs99-x:hover { border-color: var(--bad, #A92A14); color: var(--bad, #A92A14); }
.fs99-x:focus-visible, .fs99-pick button:focus-visible { outline: 3px solid var(--brand, #0A5C3C); outline-offset: 2px; }
@media (max-width: 520px) {
  .fs99-pick { padding: 10px; }
  .fs99-custom__l { flex-basis: 100%; }
}
.fs99-about { margin-top: 10px; }
.fs99-about > summary { cursor: pointer; font-size: .76rem; font-weight: 700; color: var(--ink2, #36463D); min-height: 32px; display: flex; align-items: center; list-style-position: inside; }
.fs99-about > summary:focus-visible { outline: 3px solid var(--brand, #0A5C3C); outline-offset: 2px; }
.fs99-notes { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* FoodScan 100: where the grade comes from, the last 7 days, the swap list, a welcome for a new phone. */
.fs100-srcline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.fs100-srcline .fs98-stat__k { margin: 0; }
.fs100-src--published, .fs100-src--label { background: var(--good-bg, #DFF0E2); color: var(--good, #17693F); }
.fs100-src--calculated { background: var(--brand-soft, #DBEDDD); color: var(--ink, #0D1F16); border-color: var(--brand, #0A5C3C); }
.fs100-src--similar { background: var(--warn-bg, #FBEBC8); color: var(--warn, #8A5200); }
.fs100-src--none { background: var(--surface2, #F8F3E6); color: var(--ink2, #36463D); border-color: var(--line, #E0D8C2); }
.fs100-src { white-space: normal; }

.fs100-days { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.fs100-day { display: grid; grid-template-rows: 56px auto; justify-items: center; gap: 4px; margin: 0; padding: 0; min-width: 0; }
.fs100-day > i { align-self: end; width: 100%; max-width: 30px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: var(--line2, #CBC1A5); }
.fs100-day--ok > i { background: var(--brand, #0A5C3C); }
.fs100-day--near > i { background: var(--warn, #8A5200); }
.fs100-day--over > i { background: var(--bad, #A92A14); }
.fs100-day--na > i { background: transparent; border: 2px dashed var(--line2, #CBC1A5); height: 8px !important; }
.fs100-day > span { font-size: .7rem; font-weight: 700; color: var(--ink3, #52625A); }
.fs100-win { color: var(--good, #17693F); font-weight: 700; }

.fs100-swaps li { align-items: flex-start; }
.fs100-swaps .fs98-grade { flex: 0 0 auto; margin-top: 2px; }
.fs100-item__t { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.fs100-item__t > a { color: var(--ink, #0D1F16); font-weight: 700; text-decoration: none; }
.fs100-item__t > a:hover { text-decoration: underline; }
.fs100-item__t > small { font-size: .72rem; line-height: 1.35; color: var(--ink3, #52625A); overflow-wrap: anywhere; }

.fs100-add { margin-top: 6px; }
.fs100-add[aria-pressed="true"] { background: var(--brand-soft, #DBEDDD); border-color: var(--brand, #0A5C3C); color: var(--ink, #0D1F16); }
.fs100-basis { color: var(--ink3, #52625A); font-weight: 600; }
.fs100-mixed { margin: 6px 0 0; color: var(--warn, #8A5200); }
.fs100-welcome { padding-block: 12px; }
@media (max-width: 380px) { .fs100-days { gap: 3px; } }
.fs98-hub.fs100-welcome .fs98-head .fs98-sub { display: block; }   /* the welcome line is the point of the compact card: keep it on phones */


/* 100.1: on a tablet or desktop the hub sits in the same column as the page below it (1328 px wide with 32 px padding, so 1264 px of content) and, from 960 px,
 * its sections flow in two columns (today | the day's list, then the week | the swap list) instead of stretching across the whole window. Phones keep one column. */
.fs98-hub { box-sizing: border-box; }
@media (min-width: 600px) { .fs98-hub { width: min(1264px, calc(100% - 64px)); margin-inline: auto; } }
@media (min-width: 960px) {
  .fs98-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; padding: 22px 28px; }
  .fs98-hub > .fs98-head, .fs98-hub > .fs98-stats, .fs98-hub > .fs100-wide, .fs98-hub > .fs98-more, .fs98-hub > .fs98-status { grid-column: 1 / -1; }
  .fs98-hub > .fs98-stats { grid-template-columns: repeat(auto-fit, minmax(112px, 260px)); }
}
.fs100-hint { font-weight: 500; color: var(--ink3, #52625A); }
.fs100-bits { margin-top: 2px; }


/* 102: where the shopper is: the country the prices and the drink sizes follow, one tap to change, and an offer (never a silent switch) when the phone's clock says elsewhere */
.fs102-loc { margin-top: 10px; }
.fs102-loc__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.fs102-loc__txt { font-size: .86rem; color: var(--ink2, #36463D); min-width: 0; }
.fs102-loc__txt b { color: var(--ink, #0D1F16); }
.fs102-loc__sel { font: inherit; font-size: .84rem; max-width: 100%; min-height: 40px; padding: 6px 30px 6px 12px; border: 1px solid var(--line, #E0D8C2); border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #0D1F16); }
.fs102-loc__sel:focus-visible { outline: 2px solid var(--brand, #0A5C3C); outline-offset: 2px; }
.fs102-loc--ask { border: 1px solid var(--warn, #8A5200); border-radius: 12px; padding: 12px; }
.fs102-loc--ask .fs102-loc__sel { width: 100%; margin-top: 6px; border-radius: 10px; }
.fs102-loc__sug { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft, #DBEDDD); }
.fs102-loc__sug .fs98-sub { margin: 0 0 8px; color: var(--ink, #0D1F16); }


/* FoodScan 104: the hub as the day at a glance. One dial per limit (always on screen, empty until an amount is logged), the date in words, one line of counts
 * instead of two boxes, the recent foods in one swipeable row on a phone, and the country row as a quiet setting under the lists. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.fs98-hub {
  --fs104-pad: 18px;
  background-image: radial-gradient(90% 70% at 100% 0%, rgba(94, 219, 160, .09), transparent 70%);
  background-image: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--brand, #0A5C3C) 11%, transparent), transparent 70%);
}
.fs98-hub .fs98-title { font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.14; letter-spacing: -.01em; }
.fs98-hub .fs98-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fs98-hub .fs98-eyebrow::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand, #0A5C3C); box-shadow: 0 0 0 3px rgba(94, 219, 160, .2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #0A5C3C) 22%, transparent); }
.fs104-streak::before { content: ''; width: 8px; height: 10px; border-radius: 60% 60% 55% 55% / 70% 70% 40% 40%; background: currentColor; transform: rotate(8deg); }
.fs104-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin: 0; font-size: .8rem; line-height: 1.4; color: var(--ink3, #52625A); }
.fs104-meta time { font-family: var(--font-display, Georgia, serif); font-size: 1.02rem; font-weight: 500; color: var(--ink, #0D1F16); }
.fs104-meta time::first-letter { text-transform: uppercase; }

.fs104-dials { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fs104-tile {
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: center; align-content: center;
  padding: 10px 12px; border: 1px solid var(--line, #E0D8C2); border-radius: var(--radius-sm, 16px); background: var(--surface2, #F8F3E6);
}
.fs104-tile .fs104-ring { grid-row: 1 / span 2; }
.fs104-tile .fs98-stat__k { align-self: end; font-size: .76rem; font-weight: 700; color: var(--ink, #0D1F16); overflow-wrap: anywhere; }
.fs104-tile .fs99-val { align-self: start; text-align: left; font-family: var(--font-ui, system-ui, sans-serif); font-size: .74rem; font-weight: 600; line-height: 1.3; color: var(--ink3, #52625A); overflow-wrap: anywhere; }
.fs104-ring {
  --c: var(--brand, #0A5C3C); --track: var(--line, #E0D8C2);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, var(--surface2, #F8F3E6) calc(100% - 6px), transparent calc(100% - 5px)), conic-gradient(var(--c) calc(var(--p, 0) * 1%), var(--track) 0);
}
.fs104-ring b { font-family: var(--font-mono, monospace); font-size: .8rem; font-weight: 700; color: var(--ink, #0D1F16); letter-spacing: -.02em; }
.fs104-ring small { font-size: .62em; font-weight: 600; opacity: .7; margin-left: 1px; }
.fs99-row--near .fs104-ring { --c: var(--warn, #8A5200); }
.fs99-row--over .fs104-ring { --c: var(--bad, #A92A14); }
.fs104-tile--none .fs104-ring b { color: var(--ink3, #52625A); font-weight: 500; }
.fs104-lowline { margin: 8px 0 0; }
@keyframes fs104-fill { from { --p: 0; } }
@media (prefers-reduced-motion: no-preference) { .fs104-in .fs104-ring[role] { animation: fs104-fill .8s cubic-bezier(.2, .8, .2, 1) both; } }

.fs98-hub .fs98-chip--log { min-height: 40px; padding: 5px 13px 5px 12px; font-size: .82rem; max-width: 240px; }
.fs98-hub .fs98-chip--log:has(.fs98-grade) { padding-left: 6px; }
.fs98-hub .fs98-chip--log .fs98-grade { min-width: 28px; height: 28px; border-radius: 9px; font-size: .82rem; }
.fs98-hub .fs98-chip--log:hover { border-color: var(--brand, #0A5C3C); }
.fs102-loc__txt { font-size: .8rem; }
.fs102-loc__sel { flex: 0 0 auto; }
.fs102-loc:not(.fs102-loc--ask) .fs102-loc__sel { min-height: 36px; font-size: .78rem; }

@media (max-width: 599px) {
  /* the recent foods: one row to swipe, bleeding to the card's edges, so the dials and the day's list stay on the first screen */
  .fs104-scroller { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--fs104-pad) * -1); padding: 2px var(--fs104-pad) 4px; scroll-padding-inline: var(--fs104-pad); }
  .fs104-scroller::-webkit-scrollbar { display: none; }
  .fs104-scroller > * { flex: 0 0 auto; scroll-snap-align: start; }
  .fs104-scroller > .fs98-sub { flex: 1 1 auto; margin: 0; }
}
@media (max-width: 520px) { .fs98-hub { --fs104-pad: 14px; } }
@media (min-width: 600px) { .fs104-dials { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .fs104-tile { padding: 12px 14px; } .fs104-ring { width: 58px; height: 58px; } }
@media (min-width: 960px) { .fs98-hub > .fs104-meta { grid-column: 1 / -1; } .fs98-hub { --fs104-pad: 28px; } }

/* 104: a shopper who has scanned before opens Home on their own foods. The search box and the scan button stay first, "Recently scanned" and "Your week" follow
 * at once (they used to sit four screens down, under the introduction), and the introduction comes after. On a phone the introduction's picture, sample
 * products and lead sentence are left out for them. Nothing is removed from the page for a first visit. */
html[data-fs104-returning] .page.home > .top21 { display: contents; }
html[data-fs104-returning] .page.home > .top21 > .home__hero { order: -3; }
html[data-fs104-returning] .page.home > .block21 { order: -2; }
html[data-fs104-returning] .page.home > .daily21 { order: -1; }
html[data-fs104-returning] .page.home > .daily21 > .week { order: -1; }
@media (max-width: 767px) {
  html[data-fs104-returning] .page.home { row-gap: 34px; }
  html[data-fs104-returning] .home__hero .hero21__stage,
  html[data-fs104-returning] .home__hero .stg-rail,
  html[data-fs104-returning] .home__hero .tryrow,
  html[data-fs104-returning] .home__hero .lead { display: none; }
  html[data-fs104-returning] .home__hero h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); line-height: 1.05; }
  html[data-fs104-returning] .home__hero { padding-block: 18px 20px; }
}
.fs102-loc:not(.fs102-loc--ask) .fs102-loc__sel { width: auto; }
html[data-fs104-returning] .page.home > .top21 > .trustrow, html[data-fs104-returning] .page.home > .top21 > .gutf-ribbon { order: 0; }   /* their own phone order was relative to .top21; here it would drop them under the footer */
@media (min-width: 960px) {
  /* with no week card and no swap list beside it, the day's list takes the row instead of leaving half the card empty; its lines stay a readable width */
  .fs98-hub:not(:has(.fs100-week, .fs100-list)) > .fs98-sec { grid-column: 1 / -1; }
  .fs98-hub:not(:has(.fs100-week, .fs100-list)) .fs99-list { max-width: 620px; }
}
