/* REEVES -- Nutrition & Workouts (preview, ?fitness=1): the page's styles, moved out of index.html
   unchanged. index.html links this file at the exact place these rules stood in its <style>, between the view
   shell's rules and CRM's, so the cascade is the same as before. */
  /* v317 NUTRITION & WORKOUTS (preview, ?fitness=1). One page in the shell, two tabs, built ON the Finance system:
     the page root is `fin fit`, so every Finance token, the card, the grid, the type, the first-open sequence and
     reduced motion apply unchanged. Only what Finance has no counterpart for is defined here: the tabs and the
     day stepper (the time-frame control's recipe), the energy ring, macro and water meters, the meal list, the
     week bars, sets, the log sheet's form (on Finance's glass panel) and empty states. Colour: gold stays the
     signature (energy); protein, carbs and fat, and water take tones from Finance's own category palette. */
  #fv.fv-fitness{background:radial-gradient(1200px 760px at -10% -10%,rgba(28,98,104,.42),transparent 62%),
    radial-gradient(900px 620px at 110% 0%,rgba(210,172,58,.13),transparent 60%),
    radial-gradient(1000px 800px at 50% 120%,rgba(48,52,120,.22),transparent 60%),
    linear-gradient(180deg,#0B171B 0%,#0A1015 50%,#0A0B10 100%)}
  #fv.fv-fitness .hp-title{color:#9AA7A9}
  #s_fit_row{flex-direction:column;gap:12px}   /* the Settings entry's own section: the sheet's rhythm, shown as flex */
  .fit{--fit-protein:#F08C6E;--fit-carbs:#A27CF0;--fit-fat:#E39B4F;--fit-water:#3FBCD6;--fit-ring:10px}
  .fit-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
  .fit-tabs,.fit-day{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:12px;background:var(--fin-well);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fv-body .fit-tabs button{width:auto;max-width:none;padding:8px 16px;border-radius:9px;background:transparent;color:var(--fin-muted);
    font:600 14px/20px 'Geist',sans-serif;transition:background-color .18s,color .18s,box-shadow .18s}
  .fv-body .fit-tabs button[aria-selected="true"]{background:var(--fin-raised);color:var(--fin-ink);box-shadow:0 1px 0 var(--fin-hi) inset,0 1px 3px rgba(0,0,0,.4)}
  .fv-body .fit-day button{width:32px;max-width:none;height:32px;padding:0;border-radius:9px;background:transparent;color:var(--fin-muted);
    font:500 18px/1 'Geist',sans-serif;display:inline-flex;align-items:center;justify-content:center}
  .fv-body .fit-day button:hover:not([disabled]){background:var(--fin-raised);color:var(--fin-ink)}
  .fv-body .fit-day button[disabled]{opacity:.3}
  .fit-day output{min-width:112px;padding:0 4px;text-align:center;font-size:14px;line-height:20px;font-weight:600;color:var(--fin-ink)}
  .fit-pane{animation:fit-pane .24s cubic-bezier(.2,.8,.2,1)}
  @keyframes fit-pane{from{opacity:0;transform:translateY(4px)}}

  /* Energy: the ring is the page's one large gesture; the figure and the three macros sit beside it. */
  .fit-energy{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:center}
  .fit-ring{position:relative;width:148px;height:148px}
  .fit-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
  .fit-ring-arc{transition:stroke-dasharray .7s cubic-bezier(.2,.8,.2,1),stroke .3s}
  .fit-ring-mid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
  .fit-ring-mid b{font-size:28px;line-height:32px;font-weight:500;letter-spacing:-.03em;color:var(--fin-ink)}
  .fit-ring-mid span{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-over .fit-ring-mid b{color:var(--fin-warn)}
  .fit-eq{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
  .fit-term b{display:block;font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--fin-ink)}
  .fit-term small{display:block;font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-op{font-size:17px;line-height:24px;color:var(--fin-faint)}
  .fit-over .fit-term:last-child b{color:var(--fin-warn)}
  .fit-macros{display:grid;gap:12px;margin-top:16px}
  .fit-macro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;font-size:13px;line-height:20px}
  .fit-macro .fin-nm{color:var(--fin-ink)}
  .fit-macro .fin-amt{color:var(--fin-body);text-align:right}
  .fit-macro .fin-amt em{font-style:normal;color:var(--fin-faint)}
  .fit-macro .fin-track{grid-column:1/-1}
  .fit .fin-track i{transition:width .6s cubic-bezier(.2,.8,.2,1)}
  .fit-partial{margin-top:12px;font-size:12px;line-height:16px;color:var(--fin-faint)}

  /* Water: the day's intake as glasses of the goal, two quick amounts and an undo. */
  .fit-glasses{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-top:16px}
  .fit-glasses i{display:block;height:28px;border-radius:6px;background:rgba(255,255,255,.06);position:relative;overflow:hidden}
  .fit-glasses i::after{content:'';position:absolute;inset:0;background:var(--fit-water);transform-origin:bottom;transform:scaleY(var(--f,0));
    transition:transform .5s cubic-bezier(.2,.8,.2,1)}
  .fit-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}

  /* Buttons: Finance's raised button, and one gold primary per card at most. */
  .fv-body .fit-btn{width:auto;max-width:none;padding:8px 14px;border-radius:12px;background:var(--fin-raised);color:var(--fin-ink);
    font:600 13px/20px 'Geist',sans-serif;box-shadow:var(--fin-shadow);transition:transform .15s cubic-bezier(.2,.8,.2,1),background-color .15s}
  .fv-body .fit-btn:hover{background:#29303A}
  .fv-body .fit-btn:active{transform:scale(.97)}
  .fv-body .fit-btn-primary{background:var(--fin-gold);color:#17140A;box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 6px 16px -6px rgba(214,175,60,.55)}
  .fv-body .fit-btn-primary:hover{background:#E0BB4E}
  .fv-body .fit-btn-quiet{background:transparent;color:var(--fin-muted);box-shadow:none}
  .fv-body .fit-btn-quiet:hover{background:var(--fin-raised);color:var(--fin-ink)}
  .fv-body .fit-x{flex:0 0 auto;width:28px;max-width:none;height:28px;padding:0;border-radius:8px;background:transparent;color:var(--fin-faint);
    font:500 16px/1 'Geist',sans-serif;display:inline-flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s,background-color .15s,color .15s}
  .fit-row:hover .fit-x,.fv-body .fit-x:focus-visible{opacity:1}
  .fv-body .fit-x:hover{background:rgba(242,125,107,.14);color:var(--fin-loss)}
  @media (hover:none){.fv-body .fit-x{opacity:.7}}

  /* Meals: four groups, a header and its entries; an estimate is marked as one. */
  .fit-meal + .fit-meal{margin-top:20px}
  .fit-meal-head{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:4px}
  .fit-meal-head .fin-nm{font-size:14px;line-height:20px;font-weight:600;color:var(--fin-ink)}
  .fit-meal-head .fin-amt{font-size:13px;line-height:20px;color:var(--fin-muted)}
  .fit-meal-right,.fit-hist-right{display:flex;align-items:center;gap:8px}
  .fv-body .fit-add{min-width:56px;padding:4px 10px;font-size:12px;line-height:16px}
  .fit-row .fit-x{justify-self:center}
  .fit-ex .fin-tag{margin-left:8px;padding:0 8px;font-size:11px;line-height:18px;vertical-align:1px}
  .fit-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 56px;gap:8px;align-items:center;padding:8px 0 8px 40px;font-size:14px;line-height:20px}
  .fit-row + .fit-row::before{content:'';position:absolute;left:40px;right:0;top:0;height:1px;background:var(--fin-stroke)}
  .fit-row .fin-nm{display:block;color:var(--fin-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-row small{display:block;font-size:12px;line-height:16px;color:var(--fin-faint)}
  .fit-row .fin-amt{color:var(--fin-body);text-align:right}
  .fit-est{color:var(--fin-faint);margin-right:2px}
  .fit-none{padding:4px 0 0 40px;font-size:13px;line-height:20px;color:var(--fin-faint)}

  /* Empty states: what is missing, one action, and the sentence that does it by voice. */
  .fit-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:8px 0 4px}
  .fit-empty-top{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--fin-stroke)}
  .fit-empty p{margin:0;font-size:14px;line-height:20px;color:var(--fin-muted);max-width:34em}
  .fit-say{font-size:13px;line-height:20px;color:var(--fin-faint)}
  .fit-say q{color:var(--fin-body);quotes:'\201C' '\201D'}

  /* The week: a bar a day against the goal line; today in gold. */
  .fit-week{position:relative;height:132px;margin-top:8px}
  .fit-week svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
  .fit-wk-bar{fill:rgba(245,243,236,.16);transition:fill .2s}
  .fit-wk-bar.fit-wk-today{fill:var(--fin-gold)}
  .fit-wk-goal{stroke:rgba(245,243,236,.32);stroke-width:1;stroke-dasharray:3 4}
  .fit-wk-lbl{fill:var(--fin-faint);font:500 11px 'Geist',sans-serif;text-anchor:middle}
  .fit-wk-lbl.fit-wk-today{fill:var(--fin-ink)}
  .fit-goals{display:grid;gap:10px}
  .fit-goal{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:20px}
  .fit-goal span{color:var(--fin-muted)}
  .fit-goal b{font-weight:600;color:var(--fin-ink)}

  /* Workouts */
  .fit-dots{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:20px;text-align:center}
  .fit-dots span{font-size:11px;line-height:16px;color:var(--fin-faint)}
  .fit-dots i{display:block;width:12px;height:12px;margin:6px auto 0;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(245,243,236,.2)}
  .fit-dots .fit-on i{background:var(--fin-gold);box-shadow:0 0 12px rgba(214,175,60,.45)}
  .fit-dots .fit-today span{color:var(--fin-ink)}
  .fit-wo + .fit-wo{margin-top:16px;padding-top:16px;border-top:1px solid var(--fin-stroke)}
  .fit-wo-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
  .fit-wo-top .fin-nm{font-size:15px;line-height:24px;font-weight:600;color:var(--fin-ink)}
  .fit-wo-top small{display:block;font-size:12px;line-height:16px;color:var(--fin-faint)}
  .fit-wo:hover .fit-x,.fit-hist-row:hover .fit-x{opacity:1}
  .fit-ex{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:6px 0;font-size:14px;line-height:20px}
  .fit-ex .fin-nm{color:var(--fin-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-ex .fin-amt{color:var(--fin-ink);text-align:right}
  .fit-hist-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;font-size:14px;line-height:20px}
  .fit-hist-row + .fit-hist-row{border-top:1px solid var(--fin-stroke)}
  .fit-date{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-date b{display:block;font-size:17px;line-height:20px;font-weight:600;color:var(--fin-ink)}
  .fit-hist-row .fin-nm{display:block;color:var(--fin-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-hist-row small{display:block;font-size:12px;line-height:16px;color:var(--fin-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-hist-row .fin-amt{color:var(--fin-body);text-align:right;font-size:13px}
  .fit-best{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 0;font-size:14px;line-height:20px}
  .fit-best + .fit-best{border-top:1px solid var(--fin-stroke)}
  .fit-best .fin-nm{color:var(--fin-ink)}
  .fit-best .fin-amt{font-weight:600;color:var(--fin-ink);text-align:right}
  .fit-best small{font-size:12px;line-height:16px;color:var(--fin-faint)}
  .fit-best .fit-best-date{text-align:right}
  /* PLANS, STEP 1: THE TARGETS FROM A PROFILE. A line under the goals says where they came from, with Update (or
     "Work out my targets"); the sheet's result is the picker's figure -- the calories large, the macros and the working
     beneath. */
  .fit-prof-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--fin-stroke);
    font-size:13px;line-height:20px;color:var(--fin-muted)}
  .fv-body .fit-prof-row .fit-btn{flex:0 0 auto}
  .fit-prof .fit-seg button{line-height:18px}
  .fit-prof-ft{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fit-prof input[type=number]{-moz-appearance:textfield}
  .fit-prof input[type=number]::-webkit-outer-spin-button,.fit-prof input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
  .fit-prof-out{display:grid;gap:4px;min-height:72px;padding:16px;border-radius:12px;background:rgba(0,0,0,.16);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-prof-out b{font-size:28px;line-height:36px;font-weight:500;letter-spacing:-.02em;color:var(--fin-ink);font-variant-numeric:tabular-nums}
  .fit-prof-out b small{font-size:13px;font-weight:500;letter-spacing:0;color:var(--fin-muted)}
  .fit-prof-mac{font-size:14px;line-height:20px;color:var(--fin-body);font-variant-numeric:tabular-nums}
  .fit-prof-why{font-size:12px;line-height:16px;color:var(--fin-faint)}
  /* Build 3: LIFT HISTORY. A row of Heaviest lifts opens its history (the food rows' stretched button, a chevron at the
     right as every tappable row has); the sheet: the range switch, four figures, the change in words, the chart (the
     Trends card's gold line, a dot a session, a record as a larger gold dot with a ring), then the recent sessions. */
  .fit-best{position:relative;padding-right:24px}
  .fit-best::after{content:'';position:absolute;right:4px;top:50%;width:7px;height:7px;margin-top:-4px;border-right:1.5px solid var(--fin-faint);
    border-top:1.5px solid var(--fin-faint);transform:rotate(45deg);pointer-events:none}
  .fit-lift{display:grid;gap:16px}
  .fv-body .fit-lift-range{justify-self:start}
  .fit-lift .fin-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin-bottom:0}   /* 2 x 2: the sheet is a phone's width everywhere */
  .fit-lift-change{margin:-8px 0 0}
  .fit-lift-chart{position:relative;height:184px;transition:opacity .2s ease-out}
  .fit-lift-chart.fit-busy{opacity:.45}
  .fit-lift-chart svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;touch-action:pan-y}
  .fit-lift-guide{stroke:rgba(245,243,236,.14);stroke-width:1;stroke-dasharray:3 4}
  .fit-lift-dot{fill:#1B2026;stroke:var(--fin-gold);stroke-width:2;transition:r .15s ease-out}
  .fit-lift-dot.fit-lift-pr{fill:var(--fin-gold);stroke:rgba(214,175,60,.35);stroke-width:4}
  .fit-lift-dot.fit-lift-hot{stroke-width:3}
  .fit-lift-note{margin:0;font-size:14px;line-height:20px;color:var(--fin-body)}
  .fit-lift-hd{font-size:12px;line-height:16px;color:var(--fin-muted);margin-bottom:-8px}
  .fit-lift-list{display:grid}
  .fit-lift-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 0;font-size:14px;line-height:20px}
  .fit-lift-row + .fit-lift-row{border-top:1px solid var(--fin-stroke)}
  .fit-lift-row .fin-nm{display:block;color:var(--fin-ink);font-variant-numeric:tabular-nums}
  .fit-lift-row small{display:block;font-size:12px;line-height:16px;color:var(--fin-faint)}
  .fit-lift-right{display:grid;justify-items:end;gap:2px}
  .fit-lift-right .fin-amt{font-size:13px;color:var(--fin-body);font-variant-numeric:tabular-nums}
  .fit-lift-badge{padding:0 8px;border-radius:999px;font-size:11px;line-height:16px;font-weight:600;color:#17140A;background:var(--fin-gold)}

  /* The log sheet: Finance's glass panel, holding a form. */
  .fit-recent{display:grid;gap:8px}
  .fit-recent-lbl,.fit-hint{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-hint{margin-top:-4px;color:var(--fin-faint)}
  .fit-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin:0 -2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
  .fit-chips::-webkit-scrollbar{display:none}
  .fv-body .fit-chip{flex:0 0 auto;width:auto;max-width:220px;display:inline-flex;align-items:baseline;gap:8px;padding:8px 12px;border-radius:999px;
    background:var(--fin-raised);color:var(--fin-ink);font:500 13px/20px 'Geist',sans-serif;box-shadow:var(--fin-shadow);transition:transform .15s,background-color .15s}
  .fit-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-chip small{font-size:12px;color:var(--fin-muted);font-variant-numeric:tabular-nums}
  .fv-body .fit-chip:hover{background:#29303A}
  .fv-body .fit-chip:active{transform:scale(.97)}
  .fv-body .fit-chip:focus-visible{outline:2px solid var(--fin-gold);outline-offset:2px}
  .fit-form{display:grid;gap:16px;margin-top:24px}
  .fit-field{display:grid;gap:6px;min-width:0}
  .fit-field > span{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-field input,.fit-field select{width:100%;min-width:0;height:44px;padding:0 12px;border:0;border-radius:12px;background:var(--fin-well);color:var(--fin-ink);
    font:500 15px/20px 'Geist',sans-serif;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px var(--fin-stroke);-webkit-appearance:none;appearance:none;
    transition:box-shadow .15s}
  .fit-field input::placeholder{color:var(--fin-faint)}
  .fit-field input::-webkit-calendar-picker-indicator{display:none!important}
  .fit-field input:focus,.fit-field select:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--fin-gold)}
  .fit-field input[aria-invalid="true"]{box-shadow:inset 0 0 0 1.5px var(--fin-loss)}
  .fit-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .fit-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .fit-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:3px;border-radius:12px;background:var(--fin-well);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fv-body .fit-seg button{width:auto;max-width:none;padding:8px 4px;border-radius:9px;background:transparent;color:var(--fin-muted);font:600 13px/20px 'Geist',sans-serif}
  .fv-body .fit-seg button[aria-pressed="true"]{background:var(--fin-raised);color:var(--fin-ink);box-shadow:0 1px 0 var(--fin-hi) inset,0 1px 3px rgba(0,0,0,.4)}
  .fit-set{display:grid;grid-template-columns:minmax(0,2.2fr) repeat(3,minmax(0,1fr)) 28px;gap:8px;align-items:end}
  .fit-set .fit-x{opacity:.7;margin-bottom:8px}
  .fit-sets{display:grid;gap:12px}
  .fit-set + .fit-set{padding-top:12px;border-top:1px solid var(--fin-stroke)}
  .fit-form-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px}
  .fit-err{margin:0;font-size:13px;line-height:20px;color:var(--fin-loss);min-height:20px}
  .fv-body .fit-tabs button:focus-visible,.fv-body .fit-day button:focus-visible,.fv-body .fit-btn:focus-visible,.fv-body .fit-x:focus-visible,
  .fv-body .fit-seg button:focus-visible{outline:2px solid var(--fin-gold);outline-offset:2px}

  /* v320 DEPTH & MATERIAL. Finance's tokens and layout, deepened for this page only (every rule is under .fit):
     cards are a surface with a light source -- a gentle top-left sheen inside, a lit top edge, and two shadows
     (a tight contact shadow where the card meets the page, a soft ambient one beneath it); wells (tracks, tabs,
     glasses) are pressed in; controls are raised; the energy ring is the page's one lit object. */
  .fit{--fit-card:radial-gradient(140% 90% at 0% 0%,rgba(255,255,255,.045),transparent 55%),
      linear-gradient(180deg,rgba(30,35,41,.96) 0%,rgba(20,24,29,.96) 55%,rgba(15,18,22,.97) 100%);
    --fit-depth:inset 0 1px 0 rgba(255,255,255,.075),inset 0 0 0 1px rgba(255,255,255,.055),inset 0 -1px 0 rgba(0,0,0,.35),
      0 1px 1px rgba(0,0,0,.45),0 2px 4px -1px rgba(0,0,0,.35),0 12px 24px -12px rgba(0,0,0,.55),0 32px 64px -24px rgba(0,0,0,.6);
    --fit-well:inset 0 1px 2px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.045),0 1px 0 rgba(255,255,255,.035);
    --fit-raised:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.45),0 4px 10px -4px rgba(0,0,0,.5)}
  .fit .fin-card{position:relative;background:var(--fit-card);box-shadow:var(--fit-depth)}
  .fit .fin-card::before{content:'';position:absolute;top:0;left:24px;right:24px;height:1px;pointer-events:none;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.26) 30%,rgba(255,255,255,.26) 70%,transparent)}
  .fit .fit-w-energy{background:radial-gradient(340px 260px at 20% 58%,rgba(214,175,60,.085),transparent 70%),var(--fit-card)}
  .fit .fin-icon{box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px rgba(255,255,255,.04)}
  .fit-tabs,.fit-day{background:rgba(0,0,0,.26);box-shadow:var(--fit-well)}
  .fv-body .fit-tabs button[aria-selected="true"],.fv-body .fit-seg button[aria-pressed="true"]{
    background:linear-gradient(180deg,#2B323B,#222830);box-shadow:var(--fit-raised)}
  .fv-body .fit-btn{background:linear-gradient(180deg,#29303A,#20262E);box-shadow:var(--fit-raised)}
  .fv-body .fit-btn:hover{background:linear-gradient(180deg,#2F3741,#252B34)}
  .fv-body .fit-btn-primary{background:linear-gradient(180deg,#EACB6A 0%,#D6AF3C 55%,#C79F2F 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.4),0 8px 20px -8px rgba(214,175,60,.6)}
  .fv-body .fit-btn-primary:hover{background:linear-gradient(180deg,#F0D37A 0%,#DDB848 55%,#CCA535 100%)}
  .fv-body .fit-btn-quiet,.fv-body .fit-btn-quiet:hover{box-shadow:none}
  .fv-body .fit-btn-quiet{background:transparent}
  .fv-body .fit-btn-quiet:hover{background:rgba(255,255,255,.05)}
  .fit .fin-track{height:8px;border-radius:4px;background:rgba(0,0,0,.32);box-shadow:var(--fit-well)}
  .fit .fin-track i{border-radius:4px;background-image:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0) 75%);
    box-shadow:0 0 10px -2px currentColor}
  .fit-glasses i{background:rgba(0,0,0,.3);box-shadow:var(--fit-well)}
  .fit-glasses i::after{background:linear-gradient(180deg,#86E0F0 0%,#3FBCD6 45%,#2A9DB6 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
  .fit-field input,.fit-field select{background:rgba(0,0,0,.28);box-shadow:var(--fit-well)}
  .fit-dots .fit-on i{background:radial-gradient(circle at 35% 30%,#F3D67E,#D6AF3C 55%,#B88A22);box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 0 14px rgba(214,175,60,.5)}
  .fit-wk-bar{fill:url(#fitBarGrad)}
  .fit-wk-bar.fit-wk-today{fill:url(#fitBarToday);filter:drop-shadow(0 0 8px rgba(214,175,60,.45))}

  /* v321 NUTRITION RICHNESS. Food tiles: a category icon on a lit, tinted plate in the row's leading column. The ring
     gains an end cap and its share of the goal; the macros a calorie split; the week an amber over-goal, a labelled
     goal line, today's figure and a tip. */
  .fit-food{position:absolute;left:2px;top:50%;width:24px;height:24px;margin-top:-12px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(255,255,255,.05),0 2px 6px -2px rgba(0,0,0,.55)}
  .fit-food svg{width:14px;height:14px}
  .fit-ring-pct{margin-top:6px;padding:1px 8px;border-radius:999px;font-size:11px;line-height:18px;font-style:normal;font-weight:600;
    color:var(--fin-gold);background:rgba(214,175,60,.12);box-shadow:inset 0 0 0 1px rgba(214,175,60,.18)}
  .fit-over .fit-ring-pct{color:var(--fin-warn);background:rgba(244,166,59,.14);box-shadow:inset 0 0 0 1px rgba(244,166,59,.2)}
  .fit-ring-cap{filter:drop-shadow(0 0 3px rgba(255,236,170,.9))}
  .fit.fin-enter .fit-ring-cap{animation:fin-fadein .3s ease .8s both}
  .fit-split{margin-top:20px}
  .fit-split-lbl{margin-bottom:8px;font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-split-bar{display:flex;gap:2px;height:10px;border-radius:5px;overflow:hidden;background:rgba(0,0,0,.32);box-shadow:var(--fit-well)}
  .fit-split-bar i{display:block;height:100%;background-image:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0) 75%)}
  .fit-split-leg{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-split-leg span{display:inline-flex;align-items:center;gap:6px}
  .fit-split-leg i{width:8px;height:8px;border-radius:2px}
  .fit-split-leg b{font-weight:600;color:var(--fin-body)}
  .fit-wk-bar.fit-wk-over{fill:url(#fitBarOver)}
  .fit-wk-bar.fit-wk-hot{filter:brightness(1.35)}
  .fit-wk-bar.fit-wk-today.fit-wk-hot{filter:drop-shadow(0 0 10px rgba(214,175,60,.6)) brightness(1.1)}
  .fit-wk-goal-lbl{fill:var(--fin-faint);font:500 11px 'Geist',sans-serif;text-anchor:end}
  .fit-wk-val{fill:var(--fin-ink);font:600 11px 'Geist',sans-serif;font-variant-numeric:tabular-nums;text-anchor:middle}
  .fit-week svg{touch-action:pan-y}

  /* v322 THE BODY MAP. Two figures, front and back; a worked region glows gold in four steps by its share of the busiest
     region's load, the busiest with a soft halo. The list beneath names each worked muscle; a tap opens its exercises. */
  .fit-bodies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 12px}
  /* v324: the 3D stage. Hidden unless this device runs the viewer; while it loads the 2D map shows in its place, and
     the body fades in over it on its first frame. The stage is the Finance palette's deep teal with a gold floor. */
  .fit-viz{position:relative}
  .fit-3d{display:none;position:relative;height:440px;margin:4px -8px 12px;border-radius:16px;overflow:hidden;
    background:radial-gradient(70% 55% at 50% 42%,rgba(63,188,214,.10),transparent 72%),
      radial-gradient(42% 10% at 50% 93%,rgba(214,175,60,.14),transparent 75%),
      linear-gradient(180deg,rgba(8,14,18,.55),rgba(6,9,12,.75));
    box-shadow:var(--fit-well)}
  .fit-3d-mode .fit-3d{display:block}
  .fit-3d-mode .fit-bodies{position:absolute;left:0;right:0;top:0;height:440px;margin:0;align-items:center;transition:opacity .45s ease}
  .fit-3d-ready .fit-bodies{opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s .45s}
  .fit-3d-canvas{display:block;width:100%;height:100%;touch-action:pan-y;outline:none;cursor:grab;opacity:0;transition:opacity .6s ease}
  .fit-3d-canvas:active{cursor:grabbing}
  .fit-3d-ready .fit-3d-canvas{opacity:1}
  .fit-3d-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--fin-gold)}
  .fit-3d-hint{position:absolute;left:16px;top:14px;margin:0;font-size:12px;line-height:16px;color:var(--fin-muted);pointer-events:none;
    opacity:0;transition:opacity .4s ease}
  .fit-3d-ready .fit-3d-hint{opacity:1}
  .fit-3d-ready .fit-3d-hint.fit-gone{opacity:0}
  .fit-3d-views{position:absolute;right:12px;bottom:10px;opacity:0;transition:opacity .4s ease}
  .fit-3d-ready .fit-3d-views{opacity:1}
  /* Sentry JAVASCRIPT-1T: the graphics did not come back -- the 2D map stays, with one quiet way back to 3D. */
  .fit-3d-again{display:flex;justify-content:center;margin:4px 0 12px}
  .fit-3d-again[hidden]{display:none}
  .fv-body .fit-3d-again .fit-btn{min-height:44px;padding:10px 16px}
  .fit-body{display:flex;flex-direction:column;align-items:center;min-width:0}
  .fit-body svg{width:100%;max-width:180px;height:auto;overflow:visible;-webkit-tap-highlight-color:transparent}
  .fit-body > span{margin-top:6px;font-size:12px;line-height:16px;color:var(--fin-faint)}
  .fit-skin{fill:#1A1F26}
  .fit-mu{fill:#272E37;stroke:#11151A;stroke-width:1.2;stroke-linejoin:round;cursor:pointer;transition:fill .35s,stroke .2s}
  .fit-mu:hover{fill:#303843}
  .fit-mu-1{fill:rgba(214,175,60,.30)}
  .fit-mu-2{fill:rgba(214,175,60,.50)}
  .fit-mu-3{fill:rgba(222,184,72,.75)}
  .fit-mu-4{fill:#E6C257}
  .fit-mu-1:hover,.fit-mu-2:hover,.fit-mu-3:hover,.fit-mu-4:hover{filter:brightness(1.15)}
  .fit-mu-halo{fill:#D6AF3C;opacity:.55;pointer-events:none}
  .fit-mu-sel{stroke:#F7E3A2;stroke-width:1.8}
  .fit-heat{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px;font-size:11px;line-height:16px;color:var(--fin-faint)}
  .fit-heat i{width:96px;height:6px;border-radius:3px;background:linear-gradient(90deg,rgba(214,175,60,.3),#E6C257);box-shadow:var(--fit-well)}
  .fit-mus{display:grid}
  .fv-body .fit-mu-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;width:100%;max-width:none;padding:10px 0;
    border-radius:0;background:transparent;box-shadow:none;color:var(--fin-ink);font:inherit;font-size:14px;line-height:20px;text-align:left}
  .fv-body .fit-mu-row + .fit-mu-row,.fit-mu-ex + .fit-mu-row{border-top:1px solid var(--fin-stroke)}
  .fit-mu-row .fin-amt{font-size:13px;color:var(--fin-muted)}
  .fit-mu-row .fin-track{grid-column:1/-1;height:6px}
  .fv-body .fit-mu-row:focus-visible{outline:2px solid var(--fin-gold);outline-offset:2px}
  .fit-mu-open .fin-nm{color:var(--fin-gold)}
  .fit-mu-idle{margin:0 0 4px;padding:10px 12px;border-radius:12px;font-size:13px;line-height:20px;color:var(--fin-body);
    background:rgba(156,198,209,.07);box-shadow:inset 0 0 0 1px rgba(156,198,209,.14)}
  .fit-mu-also{padding:12px 0 4px;border-top:1px solid var(--fin-stroke)}
  .fit-mu-also-lbl{display:block;margin-bottom:8px;font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-mu-chips{display:flex;flex-wrap:wrap;gap:6px}
  .fv-body .fit-mu-chip{width:auto;max-width:none;padding:4px 10px;border-radius:999px;background:rgba(214,175,60,.1);color:var(--fin-body);
    font:500 12px/18px 'Geist',sans-serif;box-shadow:inset 0 0 0 1px rgba(214,175,60,.22)}
  .fv-body .fit-mu-chip.fit-mu-open{background:rgba(214,175,60,.22);color:var(--fin-ink)}
  .fv-body .fit-mu-chip:focus-visible{outline:2px solid var(--fin-gold);outline-offset:2px}
  .fit-mu-also + .fit-mu-ex{margin-top:10px}
  /* The Workouts tab's columns: invisible on a phone and an iPad (the cards flow in the page's grid, the map right
     after the day's workouts), two independent stacks on a laptop. */
  .fit-col{display:contents}
  .fit-col > .fin-card{grid-column:span 2;min-width:0}   /* the cards are the grid's grandchildren here, so they take Finance's spans themselves */
  .fit-w-day{order:1}.fit-w-muscles{order:2}.fit-w-sum{order:3}.fit-w-hist{order:4}.fit-w-bests{order:5}
  .fit-mu-ex{padding:0 0 10px 12px;border-left:2px solid rgba(214,175,60,.35);margin:0 0 4px 2px}
  .fit-mu-exrow{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:13px;line-height:20px;color:var(--fin-body)}
  .fit-mu-exrow small{font-size:12px;color:var(--fin-faint);white-space:nowrap}

  /* The ring: larger, a gold gradient arc over a soft glow of itself, an inner disc that catches the light. */
  .fit-ring{width:184px;height:184px}
  .fit-ring svg{overflow:visible}
  .fit-ring-glow{transition:stroke-dasharray .7s cubic-bezier(.2,.8,.2,1)}
  .fit-ring-mid b{font-size:34px;line-height:40px}

  @media (min-width:720px){
    .fit-w-energy,.fit-w-meals,.fit-w-day,.fit-w-hist,.fit-w-muscles{grid-column:span 6}
    .fit-col > .fin-card{grid-column:span 6}
    .fit-col > .fit-w-sum,.fit-col > .fit-w-bests{grid-column:span 3}
    .fit-w-water,.fit-w-week,.fit-w-goals,.fit-w-sum,.fit-w-bests{grid-column:span 3}
    .fit-ring{width:204px;height:204px}
    .fit-ring-mid b{font-size:38px;line-height:44px}
  }
  @media (min-width:1100px){
    .fit-w-energy,.fit-w-meals,.fit-w-day,.fit-w-hist{grid-column:span 7}
    .fit-w-water,.fit-w-week,.fit-w-goals,.fit-w-sum,.fit-w-bests{grid-column:span 5}
    .fit-w-meals{grid-row:span 2}
    .fit-col{display:grid;gap:16px;align-content:start;min-width:0}
    .fit-col-main{grid-column:span 7}
    .fit-col-side{grid-column:span 5}
    .fit-col > .fin-card{grid-column:auto;grid-row:auto}
    .fit-3d,.fit-3d-mode .fit-bodies{height:520px}
  }
  /* Build 1: EDITING A LOGGED ENTRY. A food's whole row opens its edit sheet (a stretched button under the row's
     content; the remove button stays above it, a control of its own). A workout opens with Edit. The workout editor is
     Strong's set table: a group per exercise on a pressed-in well, a line per set (number, reps, weight, and seconds
     for timed work), Add set under each group. Delete sits at the left of an edit sheet's foot, in the loss tone. */
  .fv-body .fit-row-hit{position:absolute;inset:2px -8px;width:auto;max-width:none;height:auto;padding:0;border:0;border-radius:10px;
    background:transparent;box-shadow:none;cursor:pointer;transition:background-color .15s}
  .fv-body .fit-row-hit:hover{background:rgba(255,255,255,.035)}
  .fv-body .fit-row-hit:active{background:rgba(255,255,255,.06)}
  .fv-body .fit-row-hit:focus-visible{outline:2px solid var(--fin-gold);outline-offset:0}
  .fit-row .fit-food{pointer-events:none}
  .fit-row .fit-x{position:relative;z-index:1}
  .fit-wo-acts{display:flex;align-items:center;gap:2px;flex:0 0 auto}
  .fv-body .fit-wo-edit{padding:4px 10px;font-size:13px;line-height:20px;color:var(--fin-muted)}
  .fv-body .fit-wo-edit:hover{color:var(--fin-ink)}
  .fit-exgs{display:grid;gap:12px}
  .fit-exg{display:grid;gap:8px;padding:12px;border-radius:14px;background:rgba(0,0,0,.16);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-exg-head{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:8px;align-items:end}
  .fit-exg-head .fit-x{margin-bottom:8px;opacity:.7}
  .fit-sl-list{display:grid;gap:6px}
  .fit-sl{display:grid;grid-template-columns:24px repeat(var(--cols,2),minmax(0,1fr)) 28px;gap:8px;align-items:center}
  .fit-sl-h{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-sl-h span,.fit-sl-no{text-align:center}
  .fit-sl-no{font-size:13px;line-height:20px;font-weight:600;color:var(--fin-faint);font-variant-numeric:tabular-nums}
  .fit-sl-cell input{height:40px;text-align:center;font-variant-numeric:tabular-nums}
  .fit-sl .fit-x{opacity:.7}
  .fv-body .fit-sl-add{justify-self:start;padding:6px 10px;font-size:13px;line-height:20px}
  .fv-body .fit-exg-add{width:100%;padding:12px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--fin-stroke);color:var(--fin-muted)}
  .fv-body .fit-exg-add:hover{color:var(--fin-ink)}
  .fit-form-left{display:flex;align-items:center;gap:12px;min-width:0}
  .fv-body .fit-btn-danger{color:var(--fin-loss)}
  .fv-body .fit-btn-danger:hover{background:rgba(242,125,107,.12);color:var(--fin-loss)}
  @media (max-width:420px){
    .fit-energy{grid-template-columns:minmax(0,1fr);justify-items:center}
    .fit-energy > div:last-child{width:100%}
    .fit-day output{min-width:76px}
    .fv-body .fit-tabs button{padding:8px 12px}
    .fit-bar{gap:8px}
    .fit-set{grid-template-columns:repeat(3,minmax(0,1fr)) 28px}
    .fit-set .fit-field:first-child{grid-column:1/-1}
  }
  /* Build 2: FINDING A FOOD, SAVED MEALS, TRENDS. Log food opens on a search well with Scan beside it (the barcode
     build); what it finds shows in one panel under it (results, the picker, the scanner, or a line), on the same pressed-in well as the set
     table. A result is a row like a logged food: its tile, its name and portion, its calories. The picker's figures
     are the one large number. Meals gain quiet tools under them; Trends is a full-width card of thin daily bars, the
     week's average as a gold line through them. */
  .fit-finder{display:grid;gap:12px}
  .fit-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .fit-search input{width:100%;min-width:0;height:44px;padding:0 12px 0 38px;border:0;border-radius:12px;color:var(--fin-ink);
    font:500 15px/20px 'Geist',sans-serif;-webkit-appearance:none;appearance:none;background:rgba(0,0,0,.28) no-repeat 12px 50%/16px 16px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 12.5a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11zM11 11l3.5 3.5' fill='none' stroke='%23838B95' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    box-shadow:var(--fit-well);transition:box-shadow .15s}
  .fv-body .fit-scan-btn{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 14px}
  .fit-scan-btn svg{width:16px;height:16px}
  .fit-search input::placeholder{color:var(--fin-faint)}
  .fit-search input::-webkit-search-cancel-button{-webkit-appearance:none}
  .fit-search input:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--fin-gold)}
  .fit-found{display:grid;gap:4px;padding:8px;border-radius:14px;background:rgba(0,0,0,.16);box-shadow:inset 0 0 0 1px var(--fin-stroke);transition:opacity .2s}
  .fit-found.fit-busy{opacity:.55}
  .fit-found-msg{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:6px 6px 4px}
  .fit-found-msg p{margin:0;font-size:13px;line-height:20px;color:var(--fin-body)}
  .fit-res-list{display:grid;max-height:340px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .fit-res-lbl{padding:8px 8px 4px;font-size:11px;line-height:16px;font-weight:600;color:var(--fin-muted)}
  .fv-body .fit-res{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;max-width:none;
    min-height:52px;padding:8px 8px 8px 44px;border-radius:10px;background:transparent;box-shadow:none;color:var(--fin-ink);
    font:inherit;font-size:14px;line-height:20px;text-align:left;transition:background-color .15s}
  .fv-body .fit-res:hover{background:rgba(255,255,255,.04)}
  .fv-body .fit-res:active{background:rgba(255,255,255,.07)}
  .fv-body .fit-res:focus-visible{outline:2px solid var(--fin-gold);outline-offset:-2px}
  .fit-res .fit-food{left:10px}
  .fit-res-who{min-width:0}
  .fit-res .fin-nm{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-res small{display:block;font-size:12px;line-height:16px;color:var(--fin-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-res .fin-amt{color:var(--fin-body);font-variant-numeric:tabular-nums;white-space:nowrap}
  .fit-credit{margin:4px 8px 2px;font-size:11px;line-height:16px;color:var(--fin-faint)}
  .fit-pick{display:grid;gap:14px;padding:6px}
  .fit-pick .fit-grid2{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
  .fit-pick select{padding-right:34px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23838B95' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 12px center;background-size:12px 12px}
  .fit-pick-top{display:grid;gap:6px;justify-items:start}
  .fit-pick-name{outline:none}
  .fit-pick-name b{display:block;font-size:15px;line-height:22px;font-weight:600;color:var(--fin-ink)}
  .fit-pick-name small{display:block;font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-pick-fig{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-height:32px}
  .fit-pick-fig b{font-size:26px;line-height:32px;font-weight:500;letter-spacing:-.02em;color:var(--fin-ink);font-variant-numeric:tabular-nums}
  .fit-pick-fig b small{font-size:13px;font-weight:500;letter-spacing:0;color:var(--fin-muted)}
  .fit-pick-fig > span{font-size:12px;line-height:16px;color:var(--fin-muted);font-variant-numeric:tabular-nums}
  .fit-pick-none{font-size:13px;line-height:20px;color:var(--fin-faint)}
  .fit-pick-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
  .fit-pick-items{display:grid;padding:4px 12px;border-radius:12px;background:rgba(0,0,0,.16);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-pick-item{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:13px;line-height:20px;color:var(--fin-body)}
  .fit-pick-item + .fit-pick-item{border-top:1px solid var(--fin-stroke)}
  .fit-pick-item span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-pick-item .fin-amt{color:var(--fin-ink);font-variant-numeric:tabular-nums}
  .fit-pick-total span{font-weight:600;color:var(--fin-ink)}
  .fit-scan{display:grid;gap:10px;padding:6px}
  .fit-scan-view{position:relative;height:200px;border-radius:12px;overflow:hidden;background:#05080A}
  .fit-scan-view video{width:100%;height:100%;object-fit:cover}
  .fit-scan-pic{position:absolute;inset:0;width:100%;height:100%;display:block}
  .fv-body .fit-scan-tap{position:absolute;left:50%;top:50%;z-index:1;width:auto;max-width:none;transform:translate(-50%,-50%);padding:10px 16px;white-space:nowrap;
    border:0;border-radius:12px;background:var(--fin-raised);color:var(--fin-ink);font:600 13px/20px 'Geist',sans-serif;box-shadow:var(--fin-shadow)}
  .fv-body .fit-scan-tap[hidden]{display:none}
  .fit-scanning.fin-detail,.fit-scanning .fin-detail-card{-webkit-backdrop-filter:none;backdrop-filter:none}
  .fit-scan-frame{position:absolute;left:12%;right:12%;top:30%;bottom:30%;border-radius:10px;box-shadow:0 0 0 999px rgba(0,0,0,.38),inset 0 0 0 2px var(--fin-gold)}
  .fit-scan-frame::after{content:'';position:absolute;left:8px;right:8px;top:50%;height:2px;background:rgba(240,128,110,.85);box-shadow:0 0 8px rgba(240,128,110,.8)}
  .fit-scan-msg{margin:0;font-size:13px;line-height:20px;color:var(--fin-body)}
  .fit-scan-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
  .fit-scan-row input{width:100%;min-width:0;height:44px;padding:0 12px;border:0;border-radius:12px;background:rgba(0,0,0,.28);color:var(--fin-ink);
    font:500 15px/20px 'Geist',sans-serif;font-variant-numeric:tabular-nums;box-shadow:var(--fit-well)}
  .fit-scan-row input:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--fin-gold)}
  .fit-or{display:flex;align-items:center;gap:12px;font-size:12px;line-height:16px;color:var(--fin-faint)}
  .fit-or::before,.fit-or::after{content:'';flex:1;height:1px;background:var(--fin-stroke)}
  .fit-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .fv-body .fit-mini{padding:4px 10px;font-size:12px;line-height:16px}
  .fit-meal-tools{display:flex;gap:4px;flex-wrap:wrap;padding:2px 0 0 32px}
  .fv-body .fit-copy{display:inline-flex;align-items:baseline;gap:6px;color:var(--fin-body)}
  .fit-copy small{font-size:12px;color:var(--fin-faint);font-variant-numeric:tabular-nums}
  .fv-body .fit-chip-saved{box-shadow:var(--fit-raised),inset 0 0 0 1px rgba(214,175,60,.28)}
  .fit-w-trend{grid-column:1/-1}
  .fit-tr-stats{margin-top:4px}
  .fit-trend{position:relative;height:150px;margin-top:16px}
  .fit-trend svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;touch-action:pan-y}
  .fit-tr-bar{fill:rgba(245,243,236,.22);transition:fill .2s}
  .fit-tr-bar.fit-tr-over{fill:rgba(244,166,59,.5)}
  .fit-tr-bar.fit-wk-hot{fill:rgba(245,243,236,.55)}
  .fit-tr-avg{fill:none;stroke:var(--fin-gold);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(214,175,60,.45))}
  .fit-tr-dot{fill:var(--fin-gold)}
  .fit-tr-lbl{fill:var(--fin-faint);font:500 11px 'Geist',sans-serif}
  .fit-w-trend .fin-change{margin-top:8px}
  /* PLATE PHOTO. Photo sits beside Search and Scan. While a photo is in hand the sheet is the photo's alone (the meal
     row, recents and the hand form step aside). Waiting: the photo, the time as a range, a bar that keeps moving and
     the four steps with the current one pulsing. Review: the photo with an Estimate badge and the confidence, the live
     total, one row per food (its name, its USDA match or Reeves's estimate, grams on a stepper, how it was cooked),
     the fix line, where it goes, and one pill-shaped primary that turns into a spinner, a check and "Logged". */
  .fit-search.fit-search-3{grid-template-columns:minmax(0,1fr) auto auto}
  .fit-photo-on > :not(.fit-finder),.fit-photo-on .fit-search{display:none}
  .fit-photo{display:grid;gap:16px;padding:8px}
  .fit-photo-top{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:center}
  .fit-photo-thumb{width:64px;height:64px;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
  .fit-photo-hd{display:grid;gap:4px;min-width:0}
  .fit-photo-hd b{font-size:15px;line-height:24px;font-weight:600;color:var(--fin-ink)}
  .fit-photo-hd small{font-size:13px;line-height:20px;color:var(--fin-muted)}
  .fit-photo-hd p{margin:0;font-size:14px;line-height:20px;color:var(--fin-body)}
  .fit-photo-said{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 8px 8px 16px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-photo-said span{min-width:0;font-size:14px;line-height:20px;color:var(--fin-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fit-photo-bar{height:4px;border-radius:2px;overflow:hidden;background:rgba(255,255,255,.06)}
  .fit-photo-bar i{display:block;width:40%;height:100%;border-radius:2px;background:linear-gradient(90deg,transparent,rgba(214,175,60,.85),transparent);animation:fit-photo-run 1.4s ease-in-out infinite}
  @keyframes fit-photo-run{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
  .fit-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
  .fit-steps li{display:grid;grid-template-columns:16px minmax(0,1fr);gap:12px;align-items:start}
  .fit-steps li > i{width:10px;height:10px;margin:5px 3px;border-radius:50%;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-steps .fit-step-done > i{background:var(--fin-gain);box-shadow:none}
  .fit-steps .fit-step-now > i{background:var(--fin-ink);box-shadow:0 0 0 0 rgba(245,243,236,.5);animation:fit-step-pulse 1.4s ease-out infinite}
  @keyframes fit-step-pulse{70%{box-shadow:0 0 0 7px rgba(245,243,236,0)}100%{box-shadow:0 0 0 0 rgba(245,243,236,0)}}
  .fit-steps li span{display:grid;gap:0}
  .fit-steps li b{font-size:14px;line-height:20px;font-weight:600;color:var(--fin-ink)}
  .fit-steps li small{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-steps .fit-step-next b{color:var(--fin-muted);font-weight:500}
  .fit-steps .fit-step-next small{color:var(--fin-faint)}
  .fv-body .fit-photo-cancel{justify-self:start}
  .fit-photo-acts{display:flex;flex-wrap:wrap;gap:8px}
  .fit-photo-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .fit-est-badge{padding:2px 8px;border-radius:999px;font-size:12px;line-height:16px;font-weight:600;color:var(--fin-ink);background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-conf{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-conf i,.fit-ph-conf{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--fin-faint)}
  .fit-conf-high i,.fit-ph-conf.fit-conf-high{background:var(--fin-gain)}
  .fit-conf-medium i,.fit-ph-conf.fit-conf-medium{background:var(--fin-warn)}
  .fit-conf-low i,.fit-ph-conf.fit-conf-low{background:var(--fin-loss)}
  .fit-photo-total{padding:0 8px}
  .fit-photo-flag{margin:0;padding:8px 16px;border-radius:12px;font-size:13px;line-height:20px;color:var(--fin-body);background:rgba(244,166,59,.08);box-shadow:inset 0 0 0 1px rgba(244,166,59,.22)}
  .fit-ph-list{display:grid;border-radius:16px;background:rgba(0,0,0,.16);box-shadow:inset 0 0 0 1px var(--fin-stroke)}
  .fit-ph-item{display:grid;gap:8px;padding:16px}
  .fit-ph-item + .fit-ph-item{border-top:1px solid var(--fin-stroke)}
  .fit-ph-l1{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;gap:8px;align-items:center}
  .fit-ph-l1 .fin-amt{font-size:14px;line-height:20px;color:var(--fin-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
  .fv-body .fit-ph-l1 .fit-x{opacity:1}
  .fit-ph-name{width:100%;min-width:0;height:40px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--fin-ink);
    font:600 15px/20px 'Geist',sans-serif;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .15s ease-out,background-color .15s ease-out}
  .fit-ph-name:hover{background:rgba(255,255,255,.03)}
  .fit-ph-name:focus{outline:none;background:rgba(0,0,0,.28);box-shadow:inset 0 0 0 2px var(--fin-gold)}
  .fit-ph-name::placeholder{color:var(--fin-faint);font-weight:500}
  .fit-ph-l2{display:flex;align-items:center;gap:8px;min-width:0;padding:0 12px}
  .fit-ph-match{width:100%;min-width:0;height:36px;padding:0 32px 0 12px;border:0;border-radius:12px;background:rgba(0,0,0,.28);color:var(--fin-body);
    font:500 13px/20px 'Geist',sans-serif;box-shadow:var(--fit-well);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;-webkit-appearance:none;appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23A3ACAE' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 12px center;background-size:12px}
  .fit-ph-match:focus{outline:none;box-shadow:inset 0 0 0 2px var(--fin-gold)}
  .fit-ph-src{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fit-ph-nomatch{color:var(--fin-warn)}
  .fit-ph-l3{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:0 12px}
  .fit-ph-step{display:inline-grid;grid-template-columns:36px 64px 16px 36px;align-items:center;gap:0;height:40px;padding:2px;border-radius:12px;background:rgba(0,0,0,.28);box-shadow:var(--fit-well)}
  .fv-body .fit-ph-pm{width:36px;max-width:none;height:36px;padding:0;border-radius:10px;background:transparent;color:var(--fin-ink);font:500 18px/1 'Geist',sans-serif}
  .fv-body .fit-ph-pm:hover{background:rgba(255,255,255,.06)}
  .fv-body .fit-ph-pm:active{transform:translateY(1px)}
  .fit-ph-step input{width:100%;min-width:0;height:36px;padding:0 4px;border:0;background:transparent;color:var(--fin-ink);text-align:right;
    font:600 15px/20px 'Geist',sans-serif;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
  .fit-ph-step input::-webkit-outer-spin-button,.fit-ph-step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
  .fit-ph-step input:focus{outline:none;box-shadow:inset 0 -2px 0 var(--fin-gold)}
  .fit-ph-unit{font-size:13px;line-height:20px;color:var(--fin-muted);padding-left:2px}
  .fit-ph-macro{font-size:12px;line-height:16px;color:var(--fin-muted);font-variant-numeric:tabular-nums}
  .fit-ph-l4{display:flex;align-items:center;gap:8px;padding:0 12px}
  .fit-ph-l4 small{font-size:12px;line-height:16px;color:var(--fin-faint)}
  .fv-body .fit-ph-add{justify-self:start}
  .fit-photo-fixrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .fit-photo-fixrow input{width:100%;min-width:0;height:44px;padding:0 12px;border:0;border-radius:12px;background:rgba(0,0,0,.28);color:var(--fin-ink);
    font:500 15px/20px 'Geist',sans-serif;box-shadow:var(--fit-well);transition:box-shadow .15s ease-out}
  .fit-photo-fixrow input::placeholder{color:var(--fin-faint)}
  .fit-photo-fixrow input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--fin-gold)}
  .fv-body .fit-photo-fixrow .fit-btn{height:44px;padding:0 16px}
  .fit-photo-dest{display:grid;gap:8px}
  .fit-photo-lbl{font-size:12px;line-height:16px;color:var(--fin-muted)}
  .fv-body .fit-photo-dest .fit-seg button{display:grid;justify-items:center;gap:0}
  .fit-photo-dest .fit-seg button small{font-size:11px;line-height:14px;font-weight:500;color:var(--fin-faint)}
  .fit-photo-hint{margin:0;font-size:13px;line-height:20px;color:var(--fin-muted)}
  .fit-photo-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:8px}
  .fv-body .fit-photo-log{position:relative;min-width:160px;height:48px;padding:0 24px;border-radius:24px;font:600 17px/24px 'Geist',sans-serif;transition:transform .15s ease-out,filter .2s ease-out}
  .fv-body .fit-photo-log:active:not([disabled]){transform:translateY(1px)}
  .fv-body .fit-photo-log[disabled]:not(.fit-loading):not(.fit-done){filter:saturate(.3) brightness(.7)}
  .fv-body .fit-photo-log.fit-loading{color:transparent}
  .fv-body .fit-photo-log.fit-loading::after{content:'';position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;
    border:2px solid rgba(23,20,10,.25);border-top-color:#17140A;animation:fit-spin .7s linear infinite}
  @keyframes fit-spin{to{transform:rotate(360deg)}}
  .fv-body .fit-photo-log.fit-done::before{content:'\2713';margin-right:8px;font-weight:700}
  .fit-meal-photos{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 8px 40px}
  .fv-body .fit-meal-photo{width:56px;max-width:none;height:56px;padding:0;border:0;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.04);
    box-shadow:inset 0 0 0 1px var(--fin-stroke),0 4px 12px -6px rgba(0,0,0,.6);cursor:zoom-in;transition:width .25s ease-out,height .25s ease-out}
  .fv-body .fit-meal-photo img{display:block;width:100%;height:100%;object-fit:cover}
  .fv-body .fit-meal-photo.fit-meal-photo-big{width:min(320px,100%);height:auto;aspect-ratio:4/3;cursor:zoom-out}
  @media (max-width:420px){
    .fit-scan-row{grid-template-columns:minmax(0,1fr) auto}
    .fit-scan-row .fit-btn-quiet{grid-column:1/-1;justify-self:start}
    .fv-body .fit-search-3 .fit-scan-btn{padding:0 12px}
    .fit-photo-foot{flex-direction:column-reverse;align-items:stretch}
    .fv-body .fit-photo-log{width:100%}
    .fv-body .fit-photo-foot .fit-mini{align-self:center}
  }
  @media (prefers-reduced-motion:reduce){
    .fit-pane,.fit-ring-arc,.fit-ring-glow,.fit.fin-enter .fit-ring-cap,.fit .fin-track i,.fit-glasses i::after,.fv-body .fit-btn,.fit-mu,.fit-found,.fv-body .fit-res,.fit-tr-bar,.fv-body .fit-row-hit{animation:none;transition:none}
    .fit-photo-bar i{animation:none;width:100%;opacity:.5}
    .fit-steps .fit-step-now > i,.fv-body .fit-meal-photo,.fv-body .fit-photo-log,.fit-ph-name{animation:none;transition:none}
  }
