/* From a screenshot (2026-11-06). Uses the app's tokens only, so light and dark both follow the theme. */

/* Entry on the Nutrition screen: one full-width row under the food tiles. */
.shot-entry{all:unset;box-sizing:border-box;cursor:pointer;width:100%;display:flex;align-items:center;gap:12px;min-height:64px;margin:8px 0 4px;padding:12px 14px;
  border-radius:18px;border:1px solid var(--accent-line);background:linear-gradient(180deg,var(--accent-soft),transparent 140%),var(--surface-2);color:var(--text);
  transition:transform .16s ease,border-color .2s ease}
.shot-entry:active{transform:scale(.985)}
.shot-entry:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.shot-entry__icon{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent)}
.shot-entry__icon svg{width:22px;height:22px}
.shot-entry__text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.shot-entry__text b{font:600 .95rem/1.2 var(--font)}
.shot-entry__text small{font-size:.76rem;color:var(--muted);line-height:1.3}
.shot-entry__chev{flex:none;font-size:1.4rem;line-height:1;color:var(--accent)}

/* The sheet: tall, one column, phone first. */
.shot{place-items:end center;padding:0}
.shot .shot__in{width:min(560px,100%);max-height:94dvh;border-radius:22px 22px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
@media (min-width:700px){.shot{place-items:center;padding:16px}.shot .shot__in{border-radius:22px;max-height:90dvh;padding:22px}}
.shot__panel{display:flex;flex-direction:column;gap:12px}
.shot__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.shot__title{font-size:1.65rem;margin-top:4px}
.shot__x,.shot__back{all:unset;cursor:pointer;box-sizing:border-box;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:999px;color:var(--muted)}
.shot__x svg,.shot__back svg{width:22px;height:22px}
.shot__back{padding:0 10px 0 2px;font:600 .86rem var(--font);color:var(--accent)}
.shot__x:focus-visible,.shot__back:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* Picture and ink. The stage scrolls for tall screenshots; drawing locks scrolling only while a tool is on. */
.shot__stage{position:relative;max-height:min(52dvh,520px);overflow:auto;border-radius:16px;border:1px solid var(--line);background:var(--surface-2);-webkit-overflow-scrolling:touch}
.shot__frame{position:relative;line-height:0}
.shot__img{display:block;width:100%;height:auto;min-height:120px}
.shot__ink{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y}
.shot__stage.is-drawing .shot__ink{touch-action:none;cursor:crosshair}
.shot__scan{position:absolute;left:0;right:0;top:0;height:3px;opacity:0;pointer-events:none;background:linear-gradient(90deg,transparent,var(--accent),transparent);box-shadow:0 0 18px 4px color-mix(in srgb,var(--accent) 45%,transparent)}
.shot__stage.is-reading .shot__scan{opacity:1;animation:shotScan 1.6s cubic-bezier(.45,.05,.55,.95) infinite alternate}
@keyframes shotScan{from{top:0}to{top:calc(100% - 3px)}}
.shot__status{margin:-4px 0 0}
.shot__live{margin:0;min-height:1.3em}
.shot__live b{font-weight:600}

.shot__tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.shot__tool{all:unset;box-sizing:border-box;cursor:pointer;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:600 .74rem var(--font);transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .14s ease}
.shot__tool svg{width:20px;height:20px}
.shot__tool:active{transform:scale(.96)}
.shot__tool.is-on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.shot__tool[disabled]{opacity:.4;cursor:default}
.shot__tool:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.shot__hint{margin:-4px 0 0}

.shot__notewrap{display:flex;flex-direction:column;gap:8px}
.shot__notebar{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface);padding:8px 8px 8px 12px}
.shot__notebar:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.shot__note{all:unset;flex:1;min-height:44px;font:400 1rem/1.4 var(--font);color:var(--text);white-space:pre-wrap;word-break:break-word}
.shot__note::placeholder{color:var(--faint)}
.shot__mic{all:unset;cursor:pointer;flex:none;width:44px;height:44px;border-radius:999px;display:grid;place-items:center;color:var(--accent);background:var(--accent-soft)}
.shot__mic svg{width:22px;height:22px}
.shot__mic.is-on{color:var(--accent-ink);background:var(--accent);animation:shotPulse 1.2s ease-in-out infinite}
@keyframes shotPulse{50%{box-shadow:0 0 0 8px var(--accent-soft)}}
.shot__chips,.shot__slots,.shot__picker,.shot__had{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.shot__chip{all:unset;box-sizing:border-box;cursor:pointer;min-height:36px;padding:7px 13px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);font:500 .82rem var(--font);color:var(--text);transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.shot__chip.is-on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}
.shot__chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.shot__actions{display:flex;gap:8px;margin-top:4px}
.shot__actions .btn{flex:1}
.shot__privacy{margin:0;text-align:center}

/* Review */
.shot__kind{display:flex;align-items:center;gap:8px;margin-top:2px}
.shot__tag{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:999px;background:var(--sage-soft);color:var(--sage);font:600 .7rem var(--font);letter-spacing:.06em;text-transform:uppercase}
.shot__tag.is-est{background:var(--warn-soft);color:var(--warn)}
.shot__answer{border:1px solid var(--accent-line);border-radius:18px;padding:14px 16px;background:linear-gradient(180deg,var(--accent-soft),transparent 160%),var(--surface)}
.shot__big{display:flex;align-items:baseline;gap:6px;margin:4px 0 2px}
.shot__kcal{font:400 2.9rem/1 var(--display);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.shot__unit{font:500 .95rem var(--font);color:var(--muted)}
.shot__macros{margin:0;font:500 .9rem var(--font);color:var(--text)}
.shot__math{margin:6px 0 0;font-variant-numeric:tabular-nums}
.shot__recipe{display:flex;flex-direction:column;gap:10px;padding:12px 0 4px;border-bottom:1px solid var(--line-soft)}
.shot__step{display:flex;align-items:center;gap:10px;flex-wrap:wrap}


.shot__listhead{margin-top:6px}
.shot__rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.shot__row{padding:8px 0;border-bottom:1px solid var(--line-soft);transition:opacity .2s ease}
.shot__rowmain{display:flex;align-items:center;gap:8px}
.shot__rowname{all:unset;cursor:pointer;flex:1;min-width:0;min-height:44px;display:flex;align-items:center;gap:10px;border-radius:10px}
.shot__rowname:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.shot__rowname[disabled]{cursor:default}
.shot__check{flex:none;width:22px;height:22px;border-radius:7px;border:1.5px solid var(--accent);background:var(--accent);position:relative;transition:background-color .18s ease,border-color .18s ease}
.shot__check::after{content:"";position:absolute;left:7px;top:3px;width:5px;height:10px;border:solid var(--accent-ink);border-width:0 2px 2px 0;transform:rotate(45deg);transition:opacity .15s ease}
.shot__name{font:500 .92rem/1.3 var(--font);overflow-wrap:anywhere}
.shot__rowkcal{flex:none;font:600 .86rem var(--font);font-variant-numeric:tabular-nums;color:var(--text)}
.shot__share{all:unset;cursor:pointer;flex:none;min-width:44px;min-height:36px;padding:0 10px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid var(--accent-line);color:var(--accent);font:600 .78rem var(--font)}
.shot__share:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.shot__row .tiny{margin:2px 0 0 32px}
.shot__picker{margin:8px 0 2px 32px}
.shot__row.is-off .shot__name{text-decoration:line-through;text-decoration-color:var(--danger);text-decoration-thickness:1.5px;color:var(--muted)}
.shot__row.is-off .shot__check{background:transparent;border-color:var(--line-strong)}
.shot__row.is-off .shot__check::after{opacity:0}
.shot__row.is-off .shot__rowkcal{color:var(--faint)}
.shot__row.is-unknown .shot__check{background:var(--warn);border-color:var(--warn)}
.shot__fix{margin:6px 0 0 32px}
.shot__fix .tiny{margin:0 0 6px}
.shot__fixbar{display:flex;gap:6px}
.shot__fixin{flex:1;min-height:40px;border-radius:12px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);padding:0 12px;font:400 .95rem var(--font)}
.shot__counts{margin:4px 0 0}
.shot__warn{margin:0;padding:10px 12px;border-radius:12px;background:var(--warn-soft);color:var(--text)}
.shot__save{display:flex;flex-direction:column;gap:8px;padding-top:6px}
.shot__savechk{display:flex;gap:10px;align-items:center;min-height:44px;font:500 .9rem var(--font)}
.shot__savechk input{width:22px;height:22px;accent-color:var(--accent)}
.shot__done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:40px 8px 32px}
.shot__done p{margin:0}
.shot__tick{width:64px;height:64px;color:var(--accent)}
.shot__tick svg{width:100%;height:100%}
.shot__tick circle{stroke-dasharray:151;stroke-dashoffset:151;animation:shotDraw .5s ease-out forwards}
.shot__tick path{stroke-dasharray:40;stroke-dashoffset:40;animation:shotDraw .35s .4s ease-out forwards}
@keyframes shotDraw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){
  .shot__stage.is-reading .shot__scan{animation:none;top:50%}
  .shot__mic.is-on{animation:none}
  .shot__tick circle,.shot__tick path{animation:none;stroke-dashoffset:0}
  .shot-entry,.shot__tool,.shot__chip,.shot__check,.shot__row{transition:none}
}
.shot__counts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.shot__countall{min-height:32px;padding:4px 10px}
.shot__note,.shot__note:focus{background:transparent;border:0;box-shadow:none;outline:none;padding:4px 0;margin:0;resize:none;-webkit-appearance:none;appearance:none}
.shot__step{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.shot__steplabel{display:flex;flex-direction:column;gap:1px}
.shot__est{color:var(--warn)}
.shot__had{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.shot__had>.small{grid-column:1/-1;min-width:0}
.shot__had>.shot__chip{justify-content:center;text-align:center;padding:7px 6px;display:flex;align-items:center}
.shot__had>.link-btn{grid-column:1/-1;justify-self:start}

/* How much (2026-11-06 polish): one row of four equal choices, a switch for local spots, then an optional note.
   The main button rides at the bottom of the sheet, within thumb reach, with the privacy line under it. */
.shot__notewrap{gap:12px}
.shot__how{display:flex;flex-direction:column;gap:8px}
.shot__how .eyebrow{margin:0}
.shot__amts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:3px;gap:3px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.shot__amt{all:unset;box-sizing:border-box;cursor:pointer;min-height:44px;display:grid;place-items:center;border-radius:11px;font:600 .9rem var(--font);color:var(--muted);transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}
.shot__amt[aria-pressed="true"]{background:var(--surface);color:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent),0 2px 8px rgba(0,0,0,.12)}
.shot__amt:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.shot__local{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.shot__local:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.shot__local-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.shot__local-t b{font:600 .9rem var(--font);color:var(--text)}
.shot__local-t small{font-size:.74rem;color:var(--muted);line-height:1.3}
.shot__switch{flex:none;position:relative;width:46px;height:28px;border-radius:999px;background:var(--line-strong);transition:background-color .18s ease}
.shot__switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s cubic-bezier(.3,.7,.4,1)}
.shot__local[aria-checked="true"] .shot__switch{background:var(--accent)}
.shot__local[aria-checked="true"] .shot__switch::after{transform:translateX(18px)}
.shot__dock{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));z-index:2;flex-direction:column;gap:8px;margin:4px -16px calc(-18px - env(safe-area-inset-bottom));padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to bottom,transparent,var(--surface) 22%)}
.shot__dock .btn{width:100%;min-height:52px}
@media (min-width:700px){.shot__dock{bottom:-22px;margin:4px -22px -22px;padding:12px 22px 16px}}
@media (prefers-reduced-motion:reduce){.shot__amt,.shot__switch,.shot__switch::after{transition:none}}

/* Nutrition logging polish (2026-11-06): four clean tiles, icon and one word, so the row reads at a glance.
   The small line only appears while Say it is listening. From a screenshot sits under them as one tidy row. */
.macro-tracker .food-log .food-log__opt{min-height:84px;justify-content:center;gap:8px;padding:12px 6px;background:var(--surface-2);border-color:var(--line);transition:transform .14s ease,border-color .18s ease,background-color .18s ease}
.macro-tracker .food-log .food-log__opt small{display:none}
.macro-tracker .food-log .food-log__opt.is-on small{display:block;font-size:.66rem;color:var(--accent)}
.macro-tracker .food-log .food-log__opt b{font:600 .84rem/1.1 var(--font)}
.macro-tracker .food-log .food-log__icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface);color:var(--text)}
.macro-tracker .food-log .food-log__icon svg{width:22px;height:22px}
/* Narrow phones: two by two, icon and word side by side, centred in the tile. */
@container nut (max-width:340px){
  .macro-tracker .food-log:has(> :nth-child(4)) .food-log__opt{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:60px;padding:10px 12px}
  .macro-tracker .food-log:has(> :nth-child(4)) .food-log__opt b{align-self:center}
  .macro-tracker .food-log:has(> :nth-child(4)) .food-log__opt.is-on small{display:none}
}
.shot-entry{min-height:60px;margin:10px 0 6px;padding:10px 12px;border-color:var(--line);background:var(--surface-2)}
.shot-entry__icon{width:40px;height:40px}
.shot-entry__text b{display:flex;align-items:center;gap:8px}
.shot-entry__new{font:600 .62rem/1 var(--font);font-style:normal;letter-spacing:.08em;text-transform:uppercase;padding:4px 7px;border-radius:999px;background:var(--accent);color:var(--accent-ink)}
.shot-entry__text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
