/* =====================================================================
   Grizzly Health — macro tracker app (js/tracker.js), phone first.
   A single centered column (an app, not a web page), cards on forest
   green, big Archivo numbers, protein coral / carbs gold / fat blue.
   Everything is prefixed tk-.
   ===================================================================== */
:root {
  --tk-bg: #0b1a12;
  --tk-card: rgba(239, 230, 210, 0.045);
  --tk-line: rgba(211, 171, 93, 0.16);
  --tk-cream: #efe6d2;
  --tk-sub: #a9bba6;
  --tk-gold: #d3ab5d;
  --tk-p: #e8845c;
  --tk-c: #d3ab5d;
  --tk-f: #6ea8dc;
  --tk-ok: #7fc87a;
  --tk-warn: #e0894b;
  --tk-num: "Archivo", "Barlow", sans-serif;
}
body.app-unlocked { background: var(--tk-bg); }
/* Inside the app, the site's floating banners would sit on top of it. */
body.app-unlocked .beta-banner, body.app-unlocked .intake-popup { display: none !important; }
body.app-unlocked #tracker { padding-top: 8px !important; }
html.tk-lock, html.tk-lock body { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tk { max-width: 560px; margin: 0 auto; padding-bottom: 110px; color: var(--tk-cream); font-family: "Barlow", sans-serif; }
.tk button { font: inherit; color: inherit; }
.tk :focus-visible, .tk-sheet :focus-visible, .tk-fab:focus-visible { outline: 2px solid var(--tk-gold); outline-offset: 2px; }

/* header */
.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.tk-title { margin: 0; font-family: var(--tk-num); font-weight: 900; font-size: 1.9rem; letter-spacing: -0.01em; color: var(--tk-cream); }
.tk-streak { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--tk-card);
  border: 1px solid var(--tk-line); color: var(--tk-warn); }
.tk-streak b { color: var(--tk-cream); font-family: var(--tk-num); font-weight: 800; font-size: 1rem; }
.tk-link { padding: 0; border: 0; background: none; color: var(--tk-gold) !important; text-decoration: underline; cursor: pointer; font-size: 0.85rem; }
.tk-link--danger { color: #e8846f !important; }

/* Home / Nutrients / Progress */
.tk-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--tk-card); border: 1px solid var(--tk-line); }
.tk-seg button { padding: 9px 4px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 700; font-size: 0.86rem; color: var(--tk-sub); }
.tk-seg button.is-on { background: var(--tk-cream); color: #0b1a12; }

/* week strip */
.tk-wk { display: flex; align-items: center; gap: 2px; margin-bottom: 14px; }
.tk-wk__nav { flex: none; width: 26px; height: 44px; border: 0; background: none; color: var(--tk-sub); font-size: 1.4rem; cursor: pointer; }
.tk-wk__nav[disabled] { opacity: 0.25; cursor: default; }
.tk-wk__days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tk-wk__d { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0 6px; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.tk-wk__d.is-sel { background: var(--tk-card); box-shadow: inset 0 0 0 1px var(--tk-gold); }
.tk-wk__d.is-future { opacity: 0.35; cursor: default; }
.tk-wk__d.is-empty .tk-ring svg circle:first-child { stroke-dasharray: 3 3; }
.tk-wk__l { font-size: 0.66rem; font-weight: 700; color: var(--tk-sub); }
.tk-wk__d .tk-ring__in b { font-family: var(--tk-num); font-weight: 800; font-size: 0.82rem; }

/* rings + bars */
.tk-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.tk-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tk-ring svg circle:last-child { transition: stroke-dasharray 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.tk-ring__in { position: relative; display: grid; place-items: center; color: var(--tk-cream); }
.tk-bar { display: block; height: 6px; border-radius: 999px; background: rgba(239, 230, 210, 0.1); overflow: hidden; }
.tk-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--tk-gold); transition: width 0.6s ease; }
.tk-bar--p > i { background: var(--tk-p); } .tk-bar--f > i { background: var(--tk-f); } .tk-bar--ok > i { background: var(--tk-ok); }
.tk-bar--cal > i { background: var(--tk-cream); }
.tk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.tk-dot--p { background: var(--tk-p); } .tk-dot--c { background: var(--tk-c); } .tk-dot--f { background: var(--tk-f); }

/* cards */
.tk-card { background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: 16px; padding: 16px; margin-bottom: 10px; }
.tk-cal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 18px 20px; }
.tk-cal__v { display: block; font-family: var(--tk-num); font-weight: 900; font-size: 2.8rem; line-height: 1; letter-spacing: -0.02em; }
.tk-cal__l { display: block; margin-top: 4px; font-weight: 700; color: var(--tk-cream); }
.tk-cal__sub { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--tk-sub); }
.tk-cal .tk-ring__in { color: var(--tk-warn); }
.tk-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tk-macro { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 13px 12px; }
.tk-macro__v { display: block; font-family: var(--tk-num); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.tk-macro__l { display: block; margin-top: 3px; font-size: 0.74rem; color: var(--tk-sub); }
.tk-macro .tk-ring { align-self: flex-start; }
.tk-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tk-mini { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 11px 12px; }
.tk-mini span { font-size: 0.72rem; color: var(--tk-sub); }
.tk-mini b { font-family: var(--tk-num); font-weight: 800; font-size: 1rem; }
.tk-mini b small { font-weight: 600; font-size: 0.68rem; color: var(--tk-sub); margin-left: 1px; }
.tk-water__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tk-water__h span { font-weight: 700; }
.tk-water__h b { font-size: 0.86rem; color: var(--tk-sub); font-weight: 600; }
.tk-water__row { display: flex; align-items: center; gap: 10px; }
.tk-drops { flex: 1; display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.tk-drop { color: rgba(110, 168, 220, 0.18); line-height: 0; transition: color 0.2s ease, transform 0.2s ease; }
.tk-drop.is-on { color: var(--tk-f); }
.tk-round { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--tk-line); background: transparent; cursor: pointer; font-size: 1.3rem; }
.tk-round--on { background: var(--tk-f); border-color: var(--tk-f); color: #0b1a12 !important; font-weight: 800; }

.tk-h3 { margin: 18px 0 10px; font-family: var(--tk-num); font-weight: 800; font-size: 1.1rem; color: var(--tk-cream); }
.tk-h4 { margin: 0 0 12px; font-family: var(--tk-num); font-weight: 800; font-size: 1rem; color: var(--tk-cream); }
.tk-h4 small { font-family: "Barlow", sans-serif; font-weight: 500; font-size: 0.78rem; color: var(--tk-sub); }
.tk-note { margin: 8px 0; font-size: 0.82rem; line-height: 1.45; color: var(--tk-sub); }
.tk-note a { color: var(--tk-gold); }
.tk-label { margin: 10px 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tk-sub); }
.tk-err { margin: 10px 0; color: #f0a08a; font-size: 0.88rem; }

/* the day's food */
.tk-feed { display: grid; gap: 8px; }
.tk-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px; text-align: left; cursor: pointer;
  background: var(--tk-card); border: 1px solid var(--tk-line); border-radius: 16px; transition: border-color 0.15s ease, transform 0.15s ease; }
.tk-item:hover { border-color: rgba(211, 171, 93, 0.4); }
.tk-item:active { transform: scale(0.99); }
.tk-item__img { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: rgba(239, 230, 210, 0.06); color: var(--tk-sub); }
.tk-item__img img { width: 100%; height: 100%; object-fit: cover; }
.tk-item__b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tk-item__r { display: flex; justify-content: space-between; gap: 8px; }
.tk-item__r b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tk-item__r time { flex: none; font-size: 0.74rem; color: var(--tk-sub); background: rgba(239, 230, 210, 0.07); padding: 1px 7px; border-radius: 999px; }
.tk-item__k { display: flex; align-items: center; gap: 4px; font-family: var(--tk-num); font-weight: 800; color: var(--tk-cream); }
.tk-item__k svg { color: var(--tk-warn); }
.tk-item__m { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--tk-sub); }
.tk-item__m .tk-dot { margin-left: 6px; } .tk-item__m .tk-dot:first-child { margin-left: 0; }
.tk-item--job .tk-item__img img { filter: brightness(0.7); }
.tk-scanbar { position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(211, 171, 93, 0.55), transparent); animation: tkScan 1.4s ease-in-out infinite; }
@keyframes tkScan { to { top: 100%; } }
.tk-item--job.is-err { border-color: rgba(224, 137, 75, 0.5); }
.tk-empty { padding: 34px 18px; text-align: center; border: 1.5px dashed var(--tk-line); border-radius: 16px; }
.tk-empty b { display: block; font-family: var(--tk-num); font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.tk-empty p { margin: 0; color: var(--tk-sub); font-size: 0.9rem; }
.tk-plus-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tk-cream); color: #0b1a12; font-weight: 900; }

/* nutrients */
.tk-nb { margin-bottom: 11px; }
.tk-nb__t { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.86rem; }
.tk-nb__t span:last-child { color: var(--tk-sub); }
.tk-nb__t b { color: var(--tk-cream); font-family: var(--tk-num); }
.tk-nb.is-warn .tk-bar > i { background: var(--tk-warn); }
.tk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tk-chip { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 9px 10px; border-radius: 10px; background: rgba(239, 230, 210, 0.04); }
.tk-chip span { font-size: 0.78rem; color: var(--tk-sub); }
.tk-chip b { font-family: var(--tk-num); font-size: 0.86rem; }
.tk-chip .tk-bar { grid-column: 1 / -1; height: 4px; }
.tk-chip.is-full .tk-bar > i { background: var(--tk-ok); } .tk-chip.is-low .tk-bar > i { background: var(--tk-warn); }
.tk-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.88rem; color: var(--tk-sub); }
.tk-tips b { color: var(--tk-cream); }

/* progress */
.tk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tk-row2 .tk-card { margin: 0; }
.tk-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tk-stat span { color: var(--tk-warn); }
.tk-stat b { font-family: var(--tk-num); font-weight: 900; font-size: 2rem; line-height: 1; }
.tk-stat small { color: var(--tk-sub); }
.tk-row2--flat { margin: 12px 0 0; }
.tk-row2--flat b { display: block; font-family: var(--tk-num); font-weight: 800; font-size: 1.2rem; }
.tk-row2--flat small { color: var(--tk-sub); font-size: 0.76rem; }
.tk-wt__h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tk-wt__v { display: block; font-family: var(--tk-num); font-weight: 900; font-size: 1.8rem; line-height: 1; }
.tk-wt__c { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--tk-warn); }
.tk-wt__c.is-down { color: var(--tk-ok); }
.tk-wt__g { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--tk-sub); }
.tk-wt__in { display: flex; gap: 6px; }
.tk-wt__in input { width: 84px; }
.tk-chart { display: block; width: 100%; height: auto; margin-top: 12px; }
.tk-settings { display: grid; gap: 2px; }
.tk-set { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--tk-line); font-size: 0.92rem; color: var(--tk-cream); text-decoration: none; }
.tk-set:last-child { border-bottom: 0; }
.tk-set small { color: var(--tk-sub); font-size: 0.74rem; }
.tk-set input[type="number"], .tk-set select { width: 110px; }
.tk-set input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--tk-gold); }
.tk-set--link span:last-child { color: var(--tk-gold); font-size: 0.84rem; }
.tk-step { display: inline-flex; align-items: center; gap: 10px; }
.tk-step button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--tk-line); background: none; cursor: pointer; }
.tk-step b { min-width: 20px; text-align: center; font-family: var(--tk-num); }

/* inputs + buttons */
.tk-in, .tk-set input, .tk-set select, .tk-wt__in input { padding: 12px 13px; border-radius: 12px; border: 1px solid var(--tk-line); background: rgba(0, 0, 0, 0.25);
  color: var(--tk-cream); font: 500 16px "Barlow", sans-serif; }
.tk-in { width: 100%; }
textarea.tk-in { resize: vertical; }
.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tk-cream); color: #0b1a12 !important; font-weight: 800 !important; font-size: 0.95rem; text-decoration: none; }
.tk-btn[disabled] { opacity: 0.6; cursor: default; }
.tk-btn--sm { padding: 10px 14px; font-size: 0.85rem; }
.tk-btn--block { width: 100%; margin-top: 10px; }
.tk-btn--grow { flex: 1; }
.tk-btn--ghost { background: transparent; color: var(--tk-cream) !important; box-shadow: inset 0 0 0 1px var(--tk-line); font-weight: 700 !important; }
.tk-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tkSpin 0.7s linear infinite; vertical-align: -2px; }
@keyframes tkSpin { to { transform: rotate(360deg); } }

/* + button: bottom-right, above the site's phone tab bar */
.tk-fab { position: fixed; z-index: 970; right: max(18px, calc(50vw - 300px)); bottom: 26px; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--tk-cream); color: #0b1a12; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); transition: transform 0.15s ease; }
.tk-fab:active { transform: scale(0.94); }
@media (max-width: 859px) { .tk-fab { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); right: 16px; } }

/* sheets */
.tk-scrim { position: fixed; inset: 0; z-index: 1100; background: rgba(3, 8, 5, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
.tk-scrim.is-open { opacity: 1; pointer-events: auto; }
.tk-sheet { position: fixed; z-index: 1101; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); background: #10241a; color: var(--tk-cream); font-family: "Barlow", sans-serif;
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--tk-line); transform: translateY(105%); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
.tk-sheet.is-open { transform: none; }
@media (min-width: 720px) {
  .tk-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; max-height: 86vh; border-radius: 22px; border: 1px solid var(--tk-line);
    transform: translate(-50%, -46%); opacity: 0; transition: transform 0.25s ease, opacity 0.2s ease; pointer-events: none; }
  .tk-sheet.is-open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .tk-sheet__grab { display: none; }
}
.tk-sheet__grab { width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 999px; background: rgba(239, 230, 210, 0.2); }
.tk-sheet__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.4); color: var(--tk-cream); font-size: 1.3rem; line-height: 1; }
.tk-sheet__t { margin: 4px 0 14px; font-family: var(--tk-num); font-weight: 900; font-size: 1.4rem; }
.tk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; padding: 15px 14px; border-radius: 16px; cursor: pointer; text-align: left;
  background: var(--tk-card); border: 1px solid var(--tk-line); color: var(--tk-cream); transition: border-color 0.15s ease; }
.tk-tile:hover { border-color: var(--tk-gold); }
.tk-tile__ic { color: var(--tk-gold); margin-bottom: 6px; line-height: 0; }
.tk-tile b { font-weight: 800; }
.tk-tile small { font-size: 0.76rem; color: var(--tk-sub); }

.tk-results { margin-top: 10px; }
.tk-res { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--tk-line); }
.tk-res__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--tk-cream); }
.tk-res__b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tk-res__b small { color: var(--tk-sub); font-size: 0.78rem; }
.tk-res__plus, .tk-res__x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.2rem; font-weight: 800; }
.tk-res__plus { background: var(--tk-cream); color: #0b1a12; }
.tk-res__x { background: transparent; color: var(--tk-sub); }

.tk-cam { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; }
.tk-cam video { width: 100%; height: 100%; object-fit: cover; }
.tk-cam__box { position: absolute; left: 12%; right: 12%; top: 34%; bottom: 34%; border: 2px solid var(--tk-gold); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.tk-cam__msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-weight: 700; font-size: 0.9rem; text-shadow: 0 1px 4px #000; }
.tk-row-in { display: flex; gap: 8px; margin-top: 10px; }

/* the food sheet */
.tk-sheet[data-sheet="food"] { padding-top: 0; }
.tk-food__img { margin: 0 -18px 14px; height: 230px; background: #000; }
.tk-food__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .tk-food__img { border-radius: 22px 22px 0 0; } }
.tk-sheet[data-sheet="food"] .tk-food { padding-top: 14px; }
.tk-food__name { width: 100%; padding: 4px 0; border: 0; border-bottom: 1px dashed transparent; background: none; color: var(--tk-cream);
  font: 900 1.5rem var(--tk-num); }
.tk-food__name:focus { outline: none; border-bottom-color: var(--tk-gold); }
.tk-food__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; }
.tk-serv { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border-radius: 999px; border: 1px solid var(--tk-line); }
.tk-serv button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(239, 230, 210, 0.08); cursor: pointer; font-size: 1.1rem; }
.tk-serv b { font-family: var(--tk-num); font-weight: 800; }
.tk-serv small { font-family: "Barlow", sans-serif; font-weight: 500; color: var(--tk-sub); }
.tk-time input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--tk-line); background: rgba(0, 0, 0, 0.25); color: var(--tk-cream); font: 500 15px "Barlow", sans-serif; }
.tk-food__g { margin: 2px 0 8px; }
.tk-fts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.tk-ft { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-radius: 12px; background: var(--tk-card); border: 1px solid var(--tk-line); cursor: text; }
.tk-ft > span:first-child { font-size: 0.7rem; color: var(--tk-sub); }
.tk-ft__v { display: flex; align-items: baseline; gap: 1px; font-family: var(--tk-num); font-weight: 800; }
.tk-ft input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: var(--tk-cream); font: 800 1.15rem var(--tk-num); -moz-appearance: textfield; }
.tk-ft input::-webkit-outer-spin-button, .tk-ft input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tk-ft--p { box-shadow: inset 0 -3px 0 var(--tk-p); } .tk-ft--c { box-shadow: inset 0 -3px 0 var(--tk-c); } .tk-ft--f { box-shadow: inset 0 -3px 0 var(--tk-f); }
.tk-hs { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 12px; margin-bottom: 10px; border-radius: 12px; background: var(--tk-card); font-size: 0.86rem; }
.tk-hs b { font-family: var(--tk-num); }
.tk-hs .tk-bar { grid-column: 1 / -1; } .tk-hs .tk-bar > i { background: var(--tk-ok); }
.tk-ings { margin-bottom: 8px; }
.tk-ing { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tk-line); }
.tk-ing > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tk-ing b { font-weight: 600; font-size: 0.92rem; }
.tk-ing small { color: var(--tk-sub); font-size: 0.76rem; }
.tk-ing__k { font-family: var(--tk-num); font-weight: 700; font-size: 0.86rem; color: var(--tk-sub); }
.tk-ing button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--tk-sub); cursor: pointer; font-size: 1.1rem; }
.tk-fix { margin: 8px 0; }
.tk-more { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--tk-card); }
.tk-more summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; }
.tk-more__g { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 10px; font-size: 0.84rem; color: var(--tk-sub); }
.tk-more__g b { color: var(--tk-cream); font-family: var(--tk-num); font-weight: 700; text-align: right; }
.tk-food__cta { display: flex; gap: 8px; margin-top: 14px; }
.tk-food__sub { display: flex; justify-content: space-between; margin-top: 14px; }

/* toast */
.tk-toast { position: fixed; z-index: 1200; left: 50%; bottom: calc(160px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 11px 12px 11px 18px; border-radius: 999px;
  background: var(--tk-cream); color: #0b1a12; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); transition: transform 0.25s ease, opacity 0.2s ease; font-family: "Barlow", sans-serif; }
.tk-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.tk-toast span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-toast button { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: #0b1a12; color: var(--tk-cream); font-weight: 700; cursor: pointer; }
@media (min-width: 860px) { .tk-toast { bottom: 110px; } }

/* loading */
.tk-skel { height: 90px; margin-bottom: 10px; border-radius: 16px; background: linear-gradient(90deg, var(--tk-card), rgba(239, 230, 210, 0.08), var(--tk-card)); background-size: 200% 100%; animation: tkSk 1.2s ease infinite; }
.tk-skel--tall { height: 150px; }
@keyframes tkSk { to { background-position: -200% 0; } }

@media (max-width: 380px) {
  .tk-cal__v { font-size: 2.3rem; }
  .tk-macro__v { font-size: 1.1rem; }
  .tk-fts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .tk-sheet, .tk-scrim, .tk-toast, .tk-ring svg circle:last-child, .tk-bar > i { transition: none !important; }
  .tk-scanbar, .tk-skel, .tk-spin { animation: none !important; }
}
