/* ===========================================================================
   omoifit — "enamel & iron"
   Paper and graphite from a kitchen scale, plum for the brand, amber for data,
   clay when you go over. Mobile-first: the phone is where the photos come from.
   =========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/static/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/static/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f0ec;
  --card: #ffffff;
  --line: #e3dfd7;
  --ink: #1b1a1f;
  --muted: #6b6870;
  --plum: #5b2a4e;
  --plum-soft: #7a3c69;
  --plum-wash: rgba(91, 42, 78, 0.13);
  --on-plum: #fdf8f4;
  --amber: #b8801a;
  --over: #b4503c;
  --slot: #ddd8cd;
  --protein: #5b2a4e;
  --carbs: #b8801a;
  --fat: #7c8b94;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 26, 31, 0.06), 0 8px 24px -16px rgba(27, 26, 31, 0.35);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sidebar-w: 248px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15141a;
    --card: #1e1c24;
    --line: #2f2c37;
    --ink: #edeaf0;
    --muted: #9c97a6;
    --plum: #cd8fba;
    --plum-soft: #b978a5;
    --plum-wash: rgba(205, 143, 186, 0.16);
    --on-plum: #1a1119;
    --amber: #e0a93c;
    --over: #dd8067;
    --slot: #2a2731;
    --protein: #cd8fba;
    --carbs: #e0a93c;
    --fat: #93a3ad;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -18px rgba(0, 0, 0, 0.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink);
  padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* --- shell ------------------------------------------------------------- */

.shell { min-height: 100dvh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  display: flex; flex-direction: column; gap: 22px;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  background: var(--card); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform 0.22s ease;
  overflow-y: auto;
}
.shell.open .sidebar { transform: translateX(0); }

.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em;
}
.brand b { color: var(--plum); font-weight: 600; }
.brand.big { font-size: 1.6rem; margin-bottom: 22px; }
.mark { display: block; flex-shrink: 0; }
.mark-bg { fill: var(--plum); }
.mark-ink { fill: var(--on-plum); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px;
  text-decoration: none; color: var(--muted); font-size: 0.94rem; font-weight: 500;
  min-height: 44px;
}
.nav-link:hover { background: var(--plum-wash); color: var(--ink); }
.nav-link.current { background: var(--plum); color: var(--on-plum); }
.nav-link .ico { flex-shrink: 0; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.side-foot .who { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.quiet { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.quiet:hover { color: var(--ink); }
.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.tag {
  background: var(--plum); color: var(--on-plum); border-radius: 5px;
  padding: 1px 6px; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase;
}

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.page-title { font-size: 1.1rem; flex: 1; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  background: none; border: 1px solid var(--line); border-radius: 10px; color: inherit; cursor: pointer;
}
.cta-mini {
  padding: 9px 14px; border-radius: 999px; background: var(--plum); color: var(--on-plum);
  text-decoration: none; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}

.content { padding: 18px 14px calc(40px + env(safe-area-inset-bottom)); max-width: 1400px; }
.content.wide { max-width: none; }
.content > * + * { margin-top: 18px; }

.scrim { position: fixed; inset: 0; background: rgba(20, 18, 24, 0.45); z-index: 30; border: 0; }

/* --- surfaces ----------------------------------------------------------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card > h2 + .sub { margin-top: -4px; }
.card > * + * { margin-top: 12px; }
.mt { margin-top: 22px; }

.lede { color: var(--muted); font-size: 0.98rem; max-width: 60ch; }
.sub { color: var(--muted); font-size: 0.86rem; }
.hint { color: var(--muted); font-size: 0.82rem; font-style: italic; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.error { color: var(--over); font-size: 0.9rem; }
.ok { color: var(--plum); font-size: 0.9rem; font-weight: 600; }
.warn { color: var(--amber); font-size: 0.9rem; }
.warn-tag { color: var(--amber); }
.count { color: var(--muted); font-size: 0.82rem; }
code {
  background: var(--paper); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 5px; font-size: 0.8em;
}

/* --- hero: the load meter ---------------------------------------------- */

.hero {
  display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; box-shadow: var(--shadow);
}
.hero-meter { display: flex; align-items: center; justify-content: center; }
.load-meter { width: 100%; height: auto; max-height: 240px; }
.hero-read > * + * { margin-top: 6px; }
.readout {
  font-family: var(--display); font-size: clamp(2.6rem, 13vw, 3.4rem); font-weight: 600;
  line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.readout .unit { display: block; font-family: var(--ui); font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.verdict { font-weight: 600; font-size: 0.95rem; color: var(--plum); }
.verdict.is-over { color: var(--over); }
.rail-wrap { margin-top: 12px; }

/* --- stats -------------------------------------------------------------- */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
.stat-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; color: var(--muted); font-weight: 600; }
.stat-value {
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.stat-hint { color: var(--muted); font-size: 0.76rem; margin-top: 1px; }

/* --- forms and buttons -------------------------------------------------- */

.field { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.field.wide { grid-column: 1 / -1; }
.field-hint { color: var(--muted); font-size: 0.74rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 12px 13px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px;
}
textarea { resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: none; }
.grid-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid-form button { grid-column: 1 / -1; justify-self: start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.btn.primary:hover { background: var(--plum-soft); border-color: var(--plum-soft); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.shoot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 96px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-weight: 600; cursor: pointer; text-align: center;
}
.shoot:hover { border-color: var(--plum); color: var(--plum); }
.shoot.has-file { border-style: solid; border-color: var(--plum); color: var(--plum); }

.status { min-height: 20px; font-size: 0.86rem; color: var(--muted); }
.status.ok { color: var(--plum); font-weight: 600; }
.status.err { color: var(--over); }

.record { width: 100%; border-color: var(--plum); color: var(--plum); }
.record.is-recording { background: var(--over); border-color: var(--over); color: var(--on-plum); }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.record.is-recording .rec-dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* --- meals -------------------------------------------------------------- */

.meal {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-top: 10px;
}
.meal img, .meal .noimg { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--slot); }
.meal-body { min-width: 0; }
.meal-body h3 { font-size: 1rem; }
.meta { color: var(--muted); font-size: 0.74rem; margin-top: 2px; }
.meal-kcal { font-size: 1.05rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
.meal-kcal b { font-family: var(--display); font-size: 1.3rem; }
.meal-macros { color: var(--muted); font-size: 0.8rem; margin-left: 6px; }
.items { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.82rem; }
.items li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-top: 1px solid var(--line); }
.items span { color: var(--muted); white-space: nowrap; }
.notes { color: var(--muted); font-size: 0.78rem; margin-top: 8px; }

.empty {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 26px 18px;
  text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center;
}
.empty-inline { color: var(--muted); font-size: 0.86rem; }

/* --- pantry ------------------------------------------------------------- */

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; overflow-x: auto; }
.tab {
  flex-shrink: 0; padding: 9px 14px; min-height: 42px; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--muted); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
}
.tab.is-on { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; }
.tab-panel > * + * { margin-top: 12px; }

.shelf + .shelf { margin-top: 16px; }
.shelf h3 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--muted); font-family: var(--ui); }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem;
}
.chip b { color: var(--muted); font-weight: 500; }
.chip form { display: flex; }
.chip-x {
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: none;
  color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.chip-x:hover { background: var(--over); color: var(--on-plum); }

.ideas { display: grid; gap: 12px; }
.idea { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.idea h3 { font-size: 1rem; }
.idea-macros { font-size: 0.82rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.idea ol { margin: 10px 0 0; padding-left: 18px; font-size: 0.86rem; }
.idea ol li + li { margin-top: 4px; }
.idea .uses { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.choice.picked { border-color: var(--plum); background: var(--plum-wash); }
.choice input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--plum); flex-shrink: 0; }
.choice-body { display: block; font-size: 0.86rem; color: var(--muted); }
.choice-body b { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }

/* --- tables and charts -------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

.chart { width: 100%; max-width: 560px; height: auto; display: block; overflow: visible; }
.rail { max-width: none; }
.chart .slot { fill: var(--slot); }
.chart .bar { fill: var(--slot); }
.chart .plate { fill: var(--plum); }
.chart .plate.over { fill: var(--over); }
.chart .m-protein { fill: var(--protein); }
.chart .m-carbs { fill: var(--carbs); }
.chart .m-fat { fill: var(--fat); }
.chart .wash { fill: var(--plum-wash); }
.chart .trend { fill: none; stroke: var(--plum); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .node { fill: var(--plum); }
.chart .goal-line { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .tick { fill: var(--muted); font-size: 9px; font-family: var(--ui); text-anchor: middle; }
.rail { height: 14px; border-radius: 7px; overflow: hidden; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot.m-protein { background: var(--protein); }
.dot.m-carbs { background: var(--carbs); }
.dot.m-fat { background: var(--fat); }

/* --- signed-out pages --------------------------------------------------- */

.gate { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.gate-card {
  width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); box-shadow: var(--shadow);
}
.gate-title { font-size: 1.35rem; line-height: 1.25; margin-bottom: 16px; }
.gate-card form > * + * { margin-top: 12px; }
.gate-card .field + .field { margin-top: 12px; }
.gate-foot { margin-top: 16px; font-size: 0.84rem; color: var(--muted); }

/* --- wider screens ------------------------------------------------------ */

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
  .sidebar { position: sticky; top: 0; height: 100dvh; transform: none; transition: none; }
  .icon-btn, .scrim { display: none; }
  .topbar { padding: 14px 28px; }
  .content { padding: 24px 28px 60px; }
  .content > * + * { margin-top: 22px; }
  .card { padding: 22px; }
  .hero { grid-template-columns: 150px 1fr; padding: 26px; gap: 28px; }
  .grid-form { grid-template-columns: 1fr 1fr; gap: 14px; }
  .meal { grid-template-columns: 120px 1fr; }
  .meal img, .meal .noimg { width: 120px; height: 120px; }
  .ideas { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- form rhythm --------------------------------------------------------- */

.card form > * + * { margin-top: 14px; }
.card form .grid-form { margin-top: 14px; }
.grid-form > * + * { margin-top: 0; }
.inline-form { display: grid; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; }
/* two one-button forms sitting side by side inside a table cell */
.cell-actions { display: flex; gap: 12px; white-space: nowrap; }
.cell-actions form { margin: 0; }
.card form .cell-actions > * + * { margin-top: 0; }

/* selects keep an arrow; the native one is unstyleable, so this is ours */
select {
  padding-right: 40px;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b6870' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239c97a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* number fields: one stepper that looks the same in every browser */
.stepper { display: flex; align-items: stretch; margin-top: 5px; }
.stepper input[type=number] {
  margin-top: 0; border-radius: 0; text-align: center; -moz-appearance: textfield;
  appearance: textfield; border-left: 0; border-right: 0; min-width: 0;
}
.stepper input[type=number]::-webkit-outer-spin-button,
.stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  width: 46px; flex-shrink: 0; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.step:first-of-type { border-radius: 10px 0 0 10px; }
.step:last-of-type { border-radius: 0 10px 10px 0; }
.step:hover { background: var(--plum-wash); color: var(--plum); }

/* --- insight card -------------------------------------------------------- */

.insight {
  background: var(--plum-wash); border: 1px solid transparent; border-radius: var(--radius);
  padding: 16px 18px; border-left: 3px solid var(--plum);
}
.insight h2 { font-size: 1.05rem; margin-top: 4px; }
.insight p:last-child { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.insight-kind {
  display: flex; align-items: center; gap: 7px; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.64rem; font-weight: 700; color: var(--plum);
}
.spark { width: 7px; height: 7px; border-radius: 2px; background: var(--plum); transform: rotate(45deg); }
.insight.is-loading h2 { opacity: 0.55; }

/* --- friends ------------------------------------------------------------- */

.two-up { display: grid; gap: 18px; }
.people, .feed { list-style: none; padding: 0; margin: 0; }
.person, .event { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.person:first-child, .event:first-child { border-top: 0; }
.avatar {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); color: var(--on-plum); font-weight: 700; font-size: 0.86rem;
}
.person-name { flex: 1; font-weight: 600; }
.person-actions { display: flex; gap: 6px; align-items: center; }
.event-body { font-size: 0.88rem; }
.event-meta { display: block; color: var(--muted); font-size: 0.76rem; }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 0.82rem; }
.quiet-btn { color: var(--muted); }
.pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); font-size: 0.74rem; color: var(--muted); white-space: nowrap;
}
.pill.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.switch input { width: 22px; height: 22px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--plum); }
.switch span { font-size: 0.86rem; color: var(--muted); }
.switch b { display: block; color: var(--ink); font-size: 0.95rem; }

/* --- supplements and progress photos ------------------------------------- */

.supp-grid { display: grid; gap: 12px; }
.supp { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.supp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.supp-head h3 { font-size: 1rem; }
.supp-meta { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.supp-purpose { font-size: 0.86rem; margin-top: 6px; }
.supp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.supp-notes { color: var(--muted); font-size: 0.76rem; margin-top: 8px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shot-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.shot-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.shot-card figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 7px 6px 7px 10px; font-size: 0.74rem; color: var(--muted);
}

@media (min-width: 1000px) {
  .two-up { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .supp-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .inline-form { grid-template-columns: 1fr auto; }
}
