/* Hamudy's menu. The page is Hamudy's logo navy (--page) with white on it,
   the logo white as they draw it. Dishes, sheets and buttons are light
   surfaces (cream / white) with the dark navy as their ink. All from
   site.json's theme, written in as #1e3060 / #f7f3ec / #ffffff / 20 32 58.
   Photos sit as crisp rounded frames — never faded into the page. */

:root {
  --page: #1e3060;
  --on-page: #fff;
  --on-page-muted: rgb(255 255 255 / 0.72);
  --on-page-faint: rgb(255 255 255 / 0.55);
  --on-page-line: rgb(255 255 255 / 0.14);
  --bg: #f7f3ec;
  --bg-2: #ffffff;
  --ink-rgb: 20 32 58;
  --ink: rgb(var(--ink-rgb));
  --muted: rgb(var(--ink-rgb) / 0.66);
  --faint: rgb(var(--ink-rgb) / 0.46);
  --line: rgb(var(--ink-rgb) / 0.11);
  --gold: #8f560d;
  --glass: rgb(255 255 255 / 0.88);
  --glass-edge: rgb(var(--ink-rgb) / 0.09);
  --shadow: 0 10px 28px rgb(0 0 0 / 0.22), 0 2px 6px rgb(0 0 0 / 0.1);
  --latin: "Outfit", system-ui, sans-serif;
  --arabic: "Noto Kufi Arabic", "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--page); color: var(--on-page); }
body {
  font-family: var(--arabic);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html[lang="en"] body, [lang="en"] { font-family: var(--latin); }
html.lock, html.lock body { overflow: hidden; }
html.lock #bar { display: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip svg { transform: scaleX(-1); }
:focus-visible { outline: 2px solid #f3d39c; outline-offset: 3px; }
.dish :focus-visible, .sheet :focus-visible, .howto :focus-visible { outline-color: var(--gold); }
.num { font-family: var(--latin); font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; }

/* ---------------------------------------------------------- glass */

/* Light surfaces on the navy page carry the dark ink as their text. */
.glass, .dish .box, .howto, .sheet { color: var(--ink); }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), var(--shadow);
}
.round {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
}

/* ---------------------------------------------------------- photos */

/* The blur preview sits behind the real image until it arrives. */
.ph {
  position: relative; display: block;
  background-size: cover; background-position: center;
}
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.ph img.in { opacity: 1; }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: inherit; filter: blur(14px); transform: scale(1.1);
}
.ph.done::before { display: none; }
.ph.framed {
  border-radius: 24px; overflow: hidden;
  background-color: var(--bg-2);
  box-shadow: var(--shadow);
}
.tile .ph.framed { border-radius: 18px; }

/* ---------------------------------------------------------- landing */

.land {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}
.land-logo { width: min(58vw, 250px); height: auto; }

/* Three signature dishes, the first in the middle and largest. */
.land-photos { display: flex; align-items: center; justify-content: center; margin: 6px 0 10px; }
.land-photo {
  position: relative; flex: none;
  width: min(30vw, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background-size: cover; background-position: center;
  border: 4px solid var(--bg-2);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite alternate;
}
.land-photo img { width: 100%; height: 100%; object-fit: cover; }
.land-photo.n0 { order: 2; width: min(44vw, 220px); z-index: 1; margin-inline: -5vw; animation-delay: -2s; }
.land-photo.n1 { order: 1; }
.land-photo.n2 { order: 3; animation-delay: -4s; }
@keyframes float { to { transform: translateY(-8px); } }

.land-langs { display: grid; gap: 12px; width: min(100%, 360px); }
.pill {
  display: flex; align-items: center; justify-content: center;
  height: 58px; border-radius: 999px; font-size: 19px; font-weight: 500;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.pill:active { transform: scale(0.97); }
.land-social { display: flex; gap: 12px; margin-top: 6px; }
.land-social .round { background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.land-social .round:hover { color: var(--ink); }
.foot .round:hover { color: var(--on-page); }

/* The same page, laid over the menu on opening it (app.js `welcome`). */
.gate { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--page); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.gate.out { opacity: 0; transform: scale(1.03); pointer-events: none; }
.gate .pill { width: 100%; }

/* ---------------------------------------------------------- menu page */

#main { padding-top: env(safe-area-inset-top); padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* Two round buttons in the corner: the sections (navy), the language beside. */
.fab {
  position: fixed; z-index: 30;
  inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
}
.fab button {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  transition: transform 0.15s var(--ease);
}
.fab button:active { transform: scale(0.94); }
/* On the navy page the main button is white. */
.fab .go { background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow); }
.fab svg { width: 24px; height: 24px; }

.h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 34px 20px 14px;
}
.h h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.h small { color: var(--on-page-faint); font-size: 13px; }

/* Signatures: big swipeable cards, the best dishes first. */
.sig {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px 20px 20px; scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.sig::-webkit-scrollbar, .rail::-webkit-scrollbar, .col::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(76vw, 340px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  padding: 18px;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  color: #fff;
  text-align: start;
}
.card .ph { position: absolute; inset: 0; z-index: -2; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, transparent 50%, rgb(0 0 0 / 0.68));
}
.card b { font-size: 21px; font-weight: 600; line-height: 1.3; }
.card .price { margin-top: 4px; color: #f3d39c; }

.price { color: var(--gold); font-size: 15px; font-weight: 600; }

/* Sections: a hairline grid. */
.grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px; border-top: 1px solid var(--on-page-line); }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px 18px;
  border-bottom: 1px solid var(--on-page-line);
  text-align: center;
  transition: background-color 0.2s;
}
.tile:nth-child(odd) { border-inline-end: 1px solid var(--on-page-line); }
.tile:active { background: rgb(255 255 255 / 0.06); }
.tile .ph { width: 100%; aspect-ratio: 1; }
.tile b { font-size: 18px; font-weight: 600; margin-top: 4px; }
.tile small { color: var(--on-page-faint); font-size: 12.5px; margin-top: -6px; }

.foot {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 44px 20px 0; color: var(--on-page-muted);
}
.foot nav { display: flex; gap: 10px; }
.foot img { width: 120px; height: auto; margin-top: 8px; }

/* The viewer's floating bar. */
.bar {
  position: fixed; z-index: 30;
  inset-inline: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 520px; margin-inline: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 999px;
}
.bar .grow { flex: 1; min-width: 0; }
.bar .title {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 48px; overflow: hidden; line-height: 1.2;
}
.bar .title b { font-size: 15.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .title small { color: var(--muted); font-size: 12px; }
.bar .round:disabled { opacity: 0.3; }

/* ---------------------------------------------------------- viewer */

/* Sideways = sections, down = dishes. Both snap, like stories. */
.viewer { position: fixed; inset: 0; z-index: 20; background: var(--page); }
.rail {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior: contain;
  scrollbar-width: none;
}
.col {
  --top: calc(78px + env(safe-area-inset-top));
  --foot: calc(80px + env(safe-area-inset-bottom)); /* under the glass bar */
  --peek: 96px; /* the top of the next dish's card (its photo) shows here, above the bar */
  flex: 0 0 100%; height: 100%; position: relative;
  padding-top: var(--top); scroll-padding-top: var(--top);
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; scroll-snap-align: start; scroll-snap-stop: always;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.col::after { content: ""; display: block; height: calc(var(--foot) + var(--peek)); } /* lets the last dish reach the top */
/* One dish = one card: its photo on top, its name, price, description and
   options underneath, all inside the same white frame. A name never floats
   between two photos, so it always reads as belonging to the photo above it
   (names used to sit above the photo, with the next dish's name right under
   it, and guests could not tell which name went with which photo). */
.dish {
  height: calc(100% - var(--foot) - var(--peek));
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px 16px;
}
.dish .box {
  width: min(100%, 520px); max-height: 100%; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow);
}
/* Square when there is room; on a short screen the photo gives up height so
   the text below is never cut off. */
.dish .stage { flex: 0 1 auto; width: 100%; aspect-ratio: 1; min-height: 120px; }
.dish .stage .ph { width: 100%; height: 100%; }
.dish .info { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; text-align: start; }
.dish .row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.dish .name { margin: 0; font-size: clamp(20px, 5.4vw, 26px); font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; flex: 1 1 auto; min-width: 0; }
.dish .row .price { font-size: 18px; white-space: nowrap; }
.dish .desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
/* Sold out today (set from /admin): still listed, greyed, with a label. */
.dish .sold { padding: 3px 12px; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.08); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dish.out .stage img, .card.out img { filter: grayscale(1); opacity: 0.7; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.opts li { display: flex; gap: 8px; align-items: baseline; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }

.vtop {
  position: absolute; z-index: 2; inset-inline: 16px; top: calc(16px + env(safe-area-inset-top));
  display: flex; justify-content: space-between; pointer-events: none;
}
.vtop > * { pointer-events: auto; }

/* Progress down the section, at the inline end. */
.ticks {
  position: absolute; z-index: 2; inset-inline-end: 5px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.ticks i { display: block; width: 3px; height: 14px; border-radius: 2px; background: var(--on-page); opacity: 0.35; transition: all 0.3s var(--ease); }
.ticks i.on { height: 26px; background: var(--on-page); opacity: 1; }
.ticks.many { gap: 4px; }
.ticks.many i { height: 7px; }
.ticks.many i.on { height: 18px; }

.hint {
  position: absolute; z-index: 3; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; white-space: nowrap;
  animation: hint 3.2s var(--ease) forwards;
  pointer-events: none;
}
@keyframes hint { 0%, 100% { opacity: 0; } 12%, 80% { opacity: 1; } }

/* First open: the dishes lift once and settle, showing that they scroll. */
.col.nudge > .dish { animation: nudge 1.2s var(--ease) 0.5s; }
@keyframes nudge { 40% { transform: translateY(-64px); } }

/* The photo that flies from the tile into the viewer. */
::view-transition-group(hero) { animation-duration: 0.45s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

/* ---------------------------------------------------------- sheet */

.sheet {
  width: min(100vw - 24px, 520px); max-height: min(78dvh, 640px);
  margin: auto auto calc(12px + env(safe-area-inset-bottom));
  padding: 10px; border-radius: 28px; color: var(--ink);
  background-color: rgb(255 255 255 / 0.9);
}
.sheet::backdrop { background: rgb(var(--ink-rgb) / 0.3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: up 0.32s var(--ease); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet h3 { margin: 8px 12px 6px; font-size: 13px; font-weight: 500; color: var(--faint); }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 18px; text-align: start;
}
.sheet li button:active, .sheet li button[aria-current="true"] { background: rgb(var(--ink-rgb) / 0.07); }
.sheet li .ph { width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; }
/* A section's line icon: drawn plain, no blur preview behind it — a
   transparent drawing would show that preview as a smudge round its lines. */
.sheet li .icon { width: 46px; height: 46px; flex: none; object-fit: contain; padding: 4px; }
.sheet li b { flex: 1; font-weight: 500; font-size: 16px; }
.sheet li small { color: var(--faint); }

/* ---------------------------------------------------------- ordering */

/* The welcome screen's second step (delivery version): ordering here is real. */
.pill.go { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); gap: 10px; }
.land .pill.go { background: var(--bg-2); color: var(--ink); }
.pill.go svg { width: 22px; height: 22px; }
.gate.intro .land-photos { display: none; }
.howto { background: var(--bg-2); border-radius: 24px; box-shadow: var(--shadow); padding: 20px 20px 16px; text-align: start; }
.howto h2 { margin: 0 0 14px; font-size: 21px; font-weight: 700; line-height: 1.4; text-align: center; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.howto li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.45; }
.howto li b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 15px; }
.hrs { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14.5px; }
.hrs.off { color: #b3261e; font-weight: 600; }

/* The line at the top of the delivery menu: open (green) or closed (red). */
.dl-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: calc(16px + env(safe-area-inset-top)) 20px -10px; }
.strip { margin: 0; display: flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-align: center; }
.strip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.strip.on { background: #e3f2e6; color: #1f5f30; }
.strip.on i { background: #1f7a3a; animation: blink 1.2s ease-in-out infinite alternate; }
.strip.off { background: #fbe4e2; color: #8c1d17; }
.strip.off i { background: #b3261e; }
.closed { margin: 4px 0 6px; padding: 14px; border-radius: 16px; background: #fbe4e2; color: #8c1d17; text-align: center; font-weight: 600; }

/* The basket button in the corner, with its count. */
.fab .cart { position: relative; width: auto; padding: 0 20px 0 18px; gap: 8px; display: flex; border-radius: 999px; font-size: 16px; font-weight: 600; }
.badge {
  position: absolute; top: -3px; inset-inline-end: -3px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--gold); color: #fff; font-size: 12.5px; font-style: normal; font-weight: 700;
  border: 2px solid var(--bg-2);
}
.badge[hidden] { display: none; }
.vtop-end { display: flex; align-items: center; gap: 8px; }
.cartpill {
  display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow);
  font-size: 14.5px; font-weight: 600;
}
.cartpill [data-count][hidden], .cartpill [data-word][hidden] { display: none; }
.cartpill [data-total]:empty { display: none; }
.cartpill [data-total] { opacity: 0.85; font-weight: 500; }

/* "+ Add", turning into "− 2 +" once something is in the basket. */
.step { display: inline-flex; align-items: center; flex: none; }
.step button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(var(--ink-rgb) / 0.07); color: var(--ink); }
.step button:active { transform: scale(0.92); }
.step b { min-width: 30px; text-align: center; font-size: 16px; }
.step .addb { width: auto; height: 40px; padding: 0 18px 0 14px; gap: 6px; display: inline-flex; background: var(--ink); color: var(--bg); border-radius: 999px; font-weight: 600; font-size: 15px; }
.step svg { width: 18px; height: 18px; stroke-width: 2.2; }
.buyrow { display: flex; justify-content: flex-end; }
.opts.buy { flex-direction: column; gap: 6px; }
.opts.buy li { border-radius: 16px; padding: 5px 6px 5px 14px; align-items: center; }
[dir="rtl"] .opts.buy li { padding: 5px 14px 5px 6px; }
.opts.buy li > span:first-child { flex: 1; }

/* The order on the main page, while it waits and after. */
.track-slot:empty { display: none; }
.track-slot { display: flex; justify-content: center; }
.track { display: flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.track i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.track.pending i { animation: blink 1.2s ease-in-out infinite alternate; }
.track.confirmed i { background: #1f7a3a; }
.track.rejected i { background: #b3261e; }
@keyframes blink { to { opacity: 0.25; } }

/* The basket sheet. */
.sheet { overflow-y: auto; overscroll-behavior: contain; }
.sheet hr { border: 0; border-top: 1px solid var(--line); margin: 8px 12px; }
.sheet li button .icon { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; }
.bsk { padding: 0 4px 6px; }
.bsk .empty { margin: 18px 12px 24px; color: var(--muted); text-align: center; }
.lines { list-style: none; margin: 0; padding: 0; }
.sheet .lines li.line { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.line .ln { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.line .ln b { font-weight: 600; font-size: 15.5px; }
.line .ln small { color: var(--muted); font-size: 13px; }
.line .ln .price { font-size: 13.5px; margin-top: 2px; }
.line .step button { width: 34px; height: 34px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 10px 0; font-size: 17px; }
.sum .price { font-size: 18px; }
.fee { margin: 2px 10px 10px; color: var(--faint); font-size: 12.5px; }
.who { display: grid; gap: 10px; padding: 4px 10px 4px; }
.who label { display: grid; gap: 4px; }
.who label span { font-size: 13px; color: var(--muted); }
.who input, .who textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
}
.who textarea { resize: vertical; }
.who input[dir="ltr"] { text-align: left; }
.who input:focus, .who textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.err { margin: 0; min-height: 1.2em; color: #b3261e; font-size: 14px; }
.send {
  height: 54px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 17px; font-weight: 600; box-shadow: var(--shadow);
}
.send:disabled { opacity: 0.6; }

/* After sending: waiting, confirmed, or not accepted. */
.sent { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 8px; gap: 6px; }
.sent .mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 700; background: rgb(var(--ink-rgb) / 0.06); }
.sent.confirmed .mark { background: #1f7a3a; color: #fff; }
.sent.rejected .mark { background: #b3261e; color: #fff; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgb(var(--ink-rgb) / 0.15); border-top-color: var(--ink); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sent h4 { margin: 8px 0 0; font-size: 20px; }
.sent p { margin: 0 0 10px; color: var(--muted); max-width: 34ch; }
.sent .acts { display: grid; gap: 10px; width: 100%; }
.sent .pill { gap: 8px; height: 52px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-group(*) { animation: none !important; transition: none !important; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin-inline: auto; }
  .tile:nth-child(odd) { border-inline-end: 0; }
  .tile:not(:nth-child(4n)) { border-inline-end: 1px solid var(--on-page-line); }
  .h, .sig { max-width: 1100px; margin-inline: auto; }
}
