/* Halal Check: the thaal.
   A steel plate on white cloth, in the colours of the community's logo
   (brown, gold, maroon), with food colours used only for what they mean. */

@font-face {
  font-family: 'Anek Gujarati';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/fonts/anek-gujarati-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anek Gujarati';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/fonts/anek-gujarati-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anek Gujarati';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/fonts/anek-gujarati-gujarati-wght-normal.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}

:root {
  /* The community logo's colours: deep brown lettering, gold ornament, maroon, on white. */
  --cloth: #f8f3e7;      /* the ground: white cloth, warmed towards the gold */
  --cloth-hi: #fcf9f1;   /* the top bar and quiet fills */
  --line: #d8cbb0;       /* hairlines */
  --edge: #8c7559;       /* borders of things to press or fill in */
  --safra: #ffffff;      /* panels, for anything to read */
  --ink: #54240c;        /* the logo's brown: all text */
  --muted: #6a5340;
  /* gold: the one action, and what is selected */
  --gold: #d4ac2c;
  --gold-press: #c29a1c;
  --gold-deep: #a67c0a;  /* thin marks of selection, where gold itself would be too pale to see */
  /* steel: the plate and its bowls, nothing else */
  --steel-edge: #717d87;
  /* food colours, used only for their meaning */
  --chilli: #a31d1d;
  --chilli-deep: #74141c; /* the logo's maroon */
  --chilli-tint: #fbeae6;
  --amber: #ef8a17;
  --amber-tint: #fdebd2;
  --amber-ink: #6f3d00;
  --jamun: #5b2c6f;
  --jamun-tint: #f2e9f5;
  --chutney: #1d6b45;
  --chutney-tint: #e5f2ea;

  /* one family, seven fixed sizes */
  --t-14: 0.875rem;
  --t-15: 0.9375rem;
  --t-17: 1.0625rem;
  --t-19: 1.1875rem;
  --t-22: 1.375rem;
  --t-27: 1.6875rem;
  --t-32: 2rem;

  --r-s: 0.5rem;
  --r-m: 0.75rem;
  --r-l: 1rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: 0 1px 2px rgba(23, 32, 42, 0.07), 0 0.5rem 1rem -0.85rem rgba(23, 32, 42, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #b8a88e var(--cloth);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Anek Gujarati', system-ui, sans-serif;
  font-size: var(--t-17);
  font-weight: 440;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--cloth);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 24rem);
  background-repeat: no-repeat;
  caret-color: var(--gold-deep);
  accent-color: var(--gold-deep);
}

#app { display: flex; flex-direction: column; flex: 1; }

::selection { background: #f3dfa0; color: var(--ink); }

h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { font-size: var(--t-19); font-weight: 700; margin-bottom: 0.75rem; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; font-weight: 700; }
h1 { font-size: var(--t-27); letter-spacing: -0.01em; }
h2 { font-size: var(--t-22); }
h3 { font-size: var(--t-19); }
p { text-wrap: pretty; }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex: none; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; text-decoration-color: var(--edge); }
a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--r-s); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 0.75rem; top: -5rem; z-index: 20; padding: 0.75rem 1rem; background: var(--ink); color: #fff; border-radius: var(--r-m); font-weight: 600; }
.skip:focus { top: 0.75rem; }

/* ---------- Page frame ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: 3.5rem;
  padding: 0.375rem max(1rem, calc((100vw - 68rem) / 2 + 1.5rem));
  background: var(--cloth-hi);
  border-bottom: 2px solid var(--gold);
}
.brand { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; font-size: var(--t-19); font-weight: 700; text-decoration: none; letter-spacing: -0.005em; }
.mark-plate { fill: #e6eaed; stroke: var(--steel-edge); stroke-width: 1.4; }
.mark-well { fill: #fff; }
.mark-bowl { fill: #f7f9fa; stroke: var(--steel-edge); stroke-width: 1; }
.mark-bowl.hot { fill: var(--chilli); stroke: none; }
.tag { padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: var(--ink); color: #fff; font-size: var(--t-14); font-weight: 600; }

.bar nav { display: flex; flex-wrap: wrap; gap: 0 0.125rem; margin-inline: -0.625rem; }
.navlink {
  display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 2.75rem; padding: 0 0.625rem;
  background: none; border: 0; border-radius: var(--r-s);
  font-size: var(--t-17); font-weight: 600; text-decoration: none; color: var(--ink);
}
.navlink:hover { background: rgba(58, 28, 11, 0.08); }
.navlink:active { background: rgba(58, 28, 11, 0.14); }
.navlink[aria-current='page'] { background: linear-gradient(var(--gold-deep), var(--gold-deep)) no-repeat 50% calc(100% - 0.25rem) / calc(100% - 1.25rem) 0.25rem; }
main .navlink { margin-left: -0.625rem; }

.page {
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  display: grid;
  align-content: start;
  gap: 1.5rem;
}
.page.narrow { max-width: 38rem; }
.page.home, .page.result { max-width: 68rem; }

.foot {
  width: 100%; max-width: 68rem; margin: 0 auto; padding: 1.25rem 1rem 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-15); color: var(--muted);
}
.foot p:last-child { display: flex; gap: 1.25rem; }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -0.75rem; }

.stack { display: grid; gap: 1rem; align-content: start; }
.stack.tight { gap: 0.375rem; }
.stack.loose { gap: 1.75rem; }
.stack > * { min-width: 0; }
.stack > div:empty, .page > div:empty { display: none; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.row.tight { gap: 0.5rem; }
.row.between { justify-content: space-between; }
.row.end { align-items: flex-end; }
.grow { flex: 1 1 12rem; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--t-15); }
.lede { font-size: var(--t-19); color: var(--muted); max-width: 60ch; }

.safra { background: var(--safra); border-radius: var(--r-l); padding: 1.25rem; box-shadow: var(--lift); }

/* ---------- Controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0 1.125rem;
  background: var(--safra); color: var(--ink);
  border: 1.5px solid var(--edge); border-radius: var(--r-m);
  font-size: var(--t-17); font-weight: 600; line-height: 1.15; text-decoration: none; text-align: center;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s var(--ease);
}
.btn:hover { background: var(--cloth-hi); border-color: var(--ink); }
.btn:active { transform: translateY(1px); background: var(--cloth); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn.primary { background: var(--gold); border-color: var(--gold); }
.btn.primary:hover, .btn.primary:active { background: var(--gold-press); border-color: var(--gold-press); }
.btn.big { min-height: 3.5rem; padding: 0 1.5rem; font-size: var(--t-19); border-radius: 0.875rem; }
.btn.small { min-height: 2.75rem; padding: 0 0.875rem; font-size: var(--t-15); }
.btn.square { width: 3.5rem; padding: 0; }
.btn.danger { background: var(--chilli); border-color: var(--chilli); color: #fff; }
.btn.danger:hover { background: var(--chilli-deep); border-color: var(--chilli-deep); }
.row > .btn.big { flex: 1 1 13rem; }
.row > .btn.big.square { flex: none; }

.linkbtn { min-height: 2.75rem; padding: 0; background: none; border: 0; text-align: left; font-weight: 600; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 0.2em; }
.linkbtn:hover { text-decoration-color: var(--ink); }

.field { display: block; font-weight: 600; }
.input {
  width: 100%; min-height: 3.25rem; padding: 0 1rem;
  background: var(--safra); border: 1.5px solid var(--edge); border-radius: var(--r-m);
  font-size: var(--t-17);
  transition: border-color 0.15s;
}
.input::placeholder { color: #7a6450; opacity: 1; }
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); border-radius: var(--r-m); }
.input.big { min-height: 3.5rem; font-size: var(--t-19); }
.input.grow { width: auto; }
textarea.input { min-height: 6.5rem; padding: 0.75rem 1rem; line-height: 1.45; resize: vertical; }
select.input { width: auto; min-height: 2.75rem; padding: 0 0.75rem; }
input[type='radio'], input[type='checkbox'] { flex: none; width: 1.375rem; height: 1.375rem; margin: 0.125rem 0 0; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }

.error, .notice { padding: 0.75rem 1rem; border-radius: var(--r-m); }
.error { background: var(--chilli-tint); color: var(--chilli-deep); font-weight: 600; }
.notice { background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.safra .notice { background: var(--cloth-hi); }

.toast {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 1rem;
  width: max-content; max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.125rem;
  background: var(--ink); color: #fff; border-radius: var(--r-m);
  box-shadow: 0 0.75rem 1.5rem -0.5rem rgba(58, 28, 11, 0.6);
  font-weight: 600;
}
.toast button { min-height: 2.75rem; margin-block: -0.5rem; padding: 0 0.5rem; background: none; border: 0; color: #ecc95a; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.toast button:focus-visible { outline-color: #fff; }

dialog {
  width: min(32rem, calc(100vw - 2rem)); padding: 1.5rem;
  border: 0; border-radius: 1.25rem; background: var(--safra); color: var(--ink);
  box-shadow: 0 1.5rem 3rem -1rem rgba(58, 28, 11, 0.6);
}
dialog::backdrop { background: rgba(58, 28, 11, 0.55); }

.working { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); }
.spinner { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.skeleton { display: grid; gap: 0.5rem; }
.bone { height: 4.5rem; border-radius: var(--r-l); background: linear-gradient(100deg, #ebe2cf 30%, #f7f1e3 50%, #ebe2cf 70%) 0 0 / 300% 100%; animation: sheen 1.6s linear infinite; }
@keyframes sheen { to { background-position: -150% 0; } }

/* A fold: a part of the page that opens when asked. */
.fold > summary {
  display: flex; align-items: center; gap: 0.625rem;
  min-height: 2.75rem; padding: 0.25rem 0;
  list-style: none; cursor: pointer;
  font-size: var(--t-19); font-weight: 700;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before {
  content: ''; flex: none; width: 0.6rem; height: 0.6rem; margin: 0 0.3rem 0 0.2rem;
  border-right: 0.16rem solid var(--ink); border-bottom: 0.16rem solid var(--ink);
  transform: rotate(-45deg); transition: transform 0.2s var(--ease);
}
.fold[open] > summary::before { transform: rotate(45deg); }
.fold > summary:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.09em; }
.fold > summary + * { margin-top: 0.5rem; }

.count { font-size: var(--t-17); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- The plate ---------- */

.plate {
  position: relative;
  flex: none;
  inline-size: min(66vw, 17rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  container-type: inline-size;
  background: conic-gradient(from 28deg, #f8fafb, #d6dde2 12%, #f2f4f6 24%, #ced6dc 37%, #f5f7f8 50%, #d4dbe0 62%, #f1f3f5 76%, #ccd4da 88%, #f8fafb);
  box-shadow:
    inset 0 0 0 1px #a7b2bb,
    inset 0 0 0 0.25rem rgba(255, 255, 255, 0.75),
    0 0.125rem 0.25rem rgba(58, 28, 11, 0.1),
    0 1rem 1.5rem -1rem rgba(58, 28, 11, 0.38);
}
.plate::before {
  content: ''; position: absolute; inset: 3.4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 50%, rgba(23, 32, 42, 0.05) 100%);
  box-shadow: inset 0 0.0625rem 0.2rem rgba(23, 32, 42, 0.12);
}
.plate-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plate-svg:focus-visible { outline: none; }
.plate-centre {
  position: absolute; inset: 25.5%;
  display: grid; place-content: center; justify-items: center; gap: 0.2rem;
  padding: 5%;
  border-radius: 50%;
  background: var(--safra);
  box-shadow: 0 0.0625rem 0.2rem rgba(58, 28, 11, 0.2);
  text-align: center;
  transition: color 0.2s;
}
.plate-word { font-size: clamp(var(--t-17), 8.6cqi, var(--t-27)); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.plate[data-verdict] .plate-word { letter-spacing: 0.04em; }
.plate[data-verdict='ok'] .plate-centre { background: var(--chutney); color: #fff; }
.plate[data-verdict='no'] .plate-centre { background: var(--chilli); color: #fff; }
.plate[data-verdict='doubt'] .plate-centre { background: var(--amber); color: var(--ink); }
.plate[data-verdict='ok'] .plate-sub, .plate[data-verdict='no'] .plate-sub { color: #fff; }
.plate[data-verdict='doubt'] .plate-sub { color: var(--ink); }
.plate-sub { font-size: var(--t-14); font-weight: 600; color: var(--muted); line-height: 1.2; }
.tone-no { color: var(--chilli); }
.tone-doubt { color: var(--amber-ink); }
.tone-ok { color: var(--chutney); }
.tone-health, .tone-health-soft { color: var(--jamun); }

.katoris { filter: drop-shadow(0 1px 1.2px rgba(58, 28, 11, 0.26)); }
.rim { fill: #f6f8f9; stroke: var(--rim, var(--steel-edge)); stroke-width: 1.25; transition: stroke 0.2s; }
.food { fill: var(--food, #c7d0d6); transition: fill 0.2s; }
.shade, .glow { fill: none; stroke-width: 1.6; stroke-linecap: round; transition: stroke 0.2s, opacity 0.2s; }
.shade { stroke: var(--shade, rgba(23, 32, 42, 0.34)); }
.glow { stroke: #fff; opacity: var(--glow, 0.95); }
.sign { display: none; fill: none; stroke: var(--sign, #fff); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sign .heart { fill: #fff; stroke: none; }
.rim, .shade, .glow, .sign path { vector-effect: non-scaling-stroke; }
.seat { transition: translate 0.36s var(--ease); }
.bowl { transition: scale 0.36s var(--ease); }

.katori { cursor: pointer; outline: none; }
.katori .hit { fill: transparent; }
.katori:hover .rim { stroke: var(--ink); stroke-width: 2.5; }
.katori:focus-visible .rim { stroke: var(--ink); stroke-width: 4; }
.katori.open .rim { stroke: var(--gold-deep); stroke-width: 4.5; }

/* What each course paints. A filled bowl catches the light on top instead of holding a shadow. */
.plate[data-course='halal'] .k-no, .katori-icon.k-no { --food: var(--chilli); --shade: rgba(255, 255, 255, 0.5); --glow: 0; }
.plate[data-course='halal'] .k-doubt, .katori-icon.k-doubt { --food: var(--amber); --shade: rgba(255, 255, 255, 0.7); --glow: 0; --rim: var(--amber-ink); --sign: var(--amber-ink); }
.plate[data-course='halal'] .k-doubt .rim, .katori-icon.k-doubt .rim { stroke-dasharray: 3.2 2.4; }
.plate[data-course='halal'] .k-allow, .katori-icon.k-allow { --food: var(--chutney); --shade: rgba(255, 255, 255, 0.5); --glow: 0; }
.plate.all-clear[data-course='halal'] .k-plain { --food: var(--chutney); --shade: rgba(255, 255, 255, 0.5); --glow: 0; }
.plate[data-course='halal'] .katori .s-halal.s-clear { display: none; }
.plate.all-clear[data-course='halal'] .katori .s-halal.s-clear { display: block; }
.plate[data-course='health'] .k-health, .katori-icon.k-health { --food: var(--jamun); --shade: rgba(255, 255, 255, 0.5); --glow: 0; }
.plate[data-course='halal'] .katori .s-halal, .katori-icon .s-halal { display: block; }
.plate[data-course='health'] .k-health .s-health, .katori-icon.k-health .s-health { display: block; }
/* a bowl too small to carry a sign shows its colour alone; its name is in the list */
.plate .katori.tiny .sign, .plate .katori.tiny .shade, .plate .katori.tiny .glow { display: none; }
.katori-icon { overflow: visible; filter: drop-shadow(0 1px 1px rgba(58, 28, 11, 0.25)); }

/* a result is served once: each bowl set down in turn */
.bowl.served { animation: serve 0.46s var(--ease) both; }
@keyframes serve { from { opacity: 0; transform: scale(0.3); filter: blur(2px); } }
/* while a label is read, empty bowls take their turn */
.bowl.waiting { animation: wait 1.32s ease-in-out infinite both; }
@keyframes wait { 0%, 55%, 100% { opacity: 0.3; } 18% { opacity: 1; } }

.plate.is-picture { inline-size: 7.5rem; margin: 0; box-shadow: inset 0 0 0 1px #a7b2bb, inset 0 0 0 0.14rem rgba(255, 255, 255, 0.75), 0 0.5rem 0.9rem -0.6rem rgba(58, 28, 11, 0.4); }
.plate.is-picture .plate-centre { box-shadow: 0 1px 2px rgba(58, 28, 11, 0.25); }
.plate.is-waiting { inline-size: min(62vw, 15rem); }

/* ---------- Home ---------- */

.home { gap: 1.5rem 3rem; }
.page.home:not(.has-recent) { max-width: 44rem; }
.home-side:empty { display: none; }
.home-side h2, .safra > h2 { font-size: var(--t-22); }

.ways { display: flex; border-bottom: 2px solid var(--line); }
.way {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 0.5rem; margin-bottom: -2px;
  background: none; border: 0; border-bottom: 0.25rem solid transparent; border-radius: var(--r-s) var(--r-s) 0 0;
  font-size: var(--t-17); font-weight: 600; color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.way:hover { color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.way[aria-selected='true'] { color: var(--ink); font-weight: 700; border-bottom-color: var(--gold-deep); }

.drop { display: grid; justify-items: center; gap: 1.25rem; padding: 1.5rem 1.25rem; text-align: center; }
.drop .row { justify-content: center; }
.drop .linkbtn { justify-self: center; text-align: center; }
.drop.is-reading { padding-block: 2rem; }
.thumbs { display: flex; gap: 0.75rem; }
.thumb { position: relative; width: 7rem; height: 7rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); }
.thumb button {
  position: absolute; top: -0.625rem; right: -0.625rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0.3125rem solid var(--safra); border-radius: 50%; background: var(--ink); color: #fff;
}
.thumb button:hover { background: var(--chilli); }

.step-n {
  display: grid; place-items: center; flex: none; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--safra); border: 1.5px solid var(--edge);
  font-size: var(--t-15); font-weight: 700; line-height: 1;
}

.pasts { display: grid; gap: 0.5rem; }
.past {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
  min-height: 3.75rem; padding: 0.625rem 0.875rem;
  background: var(--safra); border: 0; border-radius: var(--r-m); box-shadow: var(--lift);
  text-align: left; transition: background-color 0.15s, transform 0.15s var(--ease);
}
.past:hover { background: var(--cloth-hi); }
.past:active { transform: translateY(1px); }
.past-body { display: grid; min-width: 0; }
.past-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-sub { font-size: var(--t-15); color: var(--muted); }
.past-says { display: grid; justify-items: end; }

.says { font-size: var(--t-15); font-weight: 700; line-height: 1.3; }
.says.s-no { color: var(--chilli); }
.says.s-doubt { color: var(--amber-ink); }
.says.s-allow { color: var(--chutney); }
.says.s-plain { color: var(--muted); }
.says.s-health { color: var(--jamun); }

/* ---------- Result ---------- */

.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; }
.product { font-size: var(--t-22); }
.result { gap: 1rem; }

.thaal { display: grid; gap: 1.5rem; }
.thaal-side { display: grid; gap: 1.25rem; align-content: start; justify-items: center; }
.thaal-main { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.verdict-line { max-width: 22rem; text-align: center; text-wrap: balance; }
.verdict-line:empty { display: none; }
.verdict-line.tone-ok { color: var(--chutney); font-weight: 600; }

/* The strip of checks: the same tabs as the home screen, each with what it found. */
.courses { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 2px solid var(--line); }
.course {
  display: grid; justify-items: center; align-content: center;
  min-height: 3.75rem; padding: 0.375rem 0.25rem 0.5rem; margin-bottom: -2px;
  background: none; color: var(--ink);
  border: 0; border-bottom: 0.25rem solid transparent; border-radius: var(--r-s) var(--r-s) 0 0;
  transition: background-color 0.15s, border-color 0.15s;
}
.course:hover { background: rgba(255, 255, 255, 0.5); }
.course[aria-selected='true'] { border-bottom-color: var(--gold-deep); }
.course-name { font-size: var(--t-17); font-weight: 600; line-height: 1.3; }
.course[aria-selected='true'] .course-name { font-weight: 700; }
.course-says { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--t-15); font-weight: 600; line-height: 1.3; color: var(--muted); }
.c-no .course-says { color: var(--chilli); }
.c-doubt .course-says { color: var(--amber-ink); }
.c-ok .course-says { color: var(--chutney); }
.c-health .course-says, .c-health-soft .course-says { color: var(--jamun); }

.group { display: flex; align-items: baseline; gap: 0.5rem; font-size: var(--t-19); }

.ings { display: grid; gap: 0.5rem; }
.ing {
  position: relative;
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 0.875rem 1rem;
  background: var(--safra); border-radius: var(--r-m);
  transition: box-shadow 0.25s var(--ease);
}
.ing:focus { outline: none; }
.ing.is-open { z-index: 1; box-shadow: 0 0 0 0.1875rem var(--gold-deep); }
.ing-body { display: grid; gap: 0.25rem; flex: 1; min-width: 0; }
.ing-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: var(--t-19); line-height: 1.25; }
.ing-name .says { padding: 0.1rem 0.5rem; border-radius: 0.375rem; background: var(--jamun-tint); font-size: var(--t-14); font-weight: 600; }
.ing p { max-width: 68ch; }
.printed { font-size: var(--t-15); color: var(--muted); }
.why { font-weight: 600; }
.note { font-style: italic; }
.ing.is-no { background: var(--chilli-tint); }
.ing.is-no .why { color: var(--chilli-deep); }
.ing.is-doubt { background: var(--amber-tint); }
.ing.is-doubt .why { color: var(--amber-ink); }
.ing.is-allow { background: var(--chutney-tint); }
.ing.is-allow .why { color: var(--chutney); }
.ing.is-health { background: var(--jamun-tint); }
.ing.is-health .why { color: var(--jamun); }
.ing.is-no .ing-name .says { background: var(--safra); }
.fold .ings { gap: 0; background: var(--safra); border-radius: var(--r-l); box-shadow: var(--lift); }
.fold .ing { border-radius: 0; background: none; padding-block: 0.75rem; }
.fold .ing + .ing { border-top: 1px solid var(--line); }
.fold .ing:first-child { border-radius: var(--r-l) var(--r-l) 0 0; }
.fold .ing:last-child { border-radius: 0 0 var(--r-l) var(--r-l); }
.fold .ing-name { font-size: var(--t-17); }

.energy { font-size: var(--t-19); }
.table-wrap { overflow-x: auto; background: var(--safra); border-radius: var(--r-l); box-shadow: var(--lift); padding: 0.25rem 1rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 0.625rem 0; text-align: left; font-weight: 440; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-size: var(--t-15); font-weight: 600; color: var(--muted); }
tbody th { font-weight: 600; }
.num { text-align: right; padding-left: 1rem; white-space: nowrap; }
.bullets { display: grid; gap: 0.375rem; }
.bullets li { display: grid; grid-template-columns: 0.5rem 1fr; gap: 0.625rem; }
.bullets li::before { content: ''; width: 0.5rem; height: 0.5rem; margin-top: 0.5rem; border-radius: 50%; background: var(--chutney); }
.label-text {
  max-height: 16rem; overflow: auto; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--safra); border-radius: var(--r-l); box-shadow: var(--lift);
  font-size: var(--t-15); line-height: 1.5; scrollbar-color: #b8a88e transparent;
}

.unread { justify-items: center; text-align: center; max-width: 34rem; }
.unread > :first-child { justify-self: start; }
.unread .stack { justify-items: center; }

/* ---------- Admin ---------- */

.items { display: grid; gap: 0.5rem; }
.item { background: var(--safra); border-radius: var(--r-l); padding: 0.875rem 1rem; box-shadow: var(--lift); transition: box-shadow 0.2s var(--ease); }
.item.is-editing { box-shadow: 0 0 0 0.1875rem var(--gold-deep), var(--lift); }
.item-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.625rem 0.875rem; }
.item-head > svg { margin-top: 0.3rem; }
.item-head > .row, .item-head > .btn { margin-left: auto; align-self: center; }
.item-name { font-weight: 700; }
.item-edit { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.items.flat { gap: 0; }
.items.flat .item { padding: 0.5rem 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.items.flat .item:first-child { border-top: 0; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0.625rem; }
.choices.tall { grid-template-columns: 1fr; }
.choice {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--safra); border: 1.5px solid var(--line); border-radius: var(--r-m);
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.2s var(--ease);
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--gold-deep); box-shadow: 0 0 0 0.125rem var(--gold-deep); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 0.3125rem; }
.choice input:focus-visible { outline: none; }
.choice.off { background: var(--cloth-hi); border-style: dashed; cursor: default; }
.choice.off:hover { border-color: var(--line); }
.choice-body { display: grid; gap: 0.125rem; }
.choice .t { font-weight: 700; }
.choice .d { font-size: var(--t-15); color: var(--muted); }
.item-edit .choice, .safra .choice { background: var(--cloth-hi); }
.item-edit .choice:has(input:checked) { background: var(--safra); }

.step-title { display: flex; align-items: center; gap: 0.625rem; font-size: var(--t-22); margin-bottom: 0; }
legend.step-title { margin-bottom: 0.625rem; }
.keybox {
  padding: 0.875rem 1rem; background: var(--cloth-hi); border: 1.5px dashed var(--edge); border-radius: var(--r-m);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: var(--t-17); overflow-wrap: anywhere; user-select: all;
}

/* ---------- Reading pages ---------- */

.prose { display: grid; gap: 0.875rem; max-width: 66ch; }
.prose h2 { margin-top: 1.25rem; }
.prose ul { display: grid; gap: 0.5rem; }
.prose li { display: grid; grid-template-columns: 0.5rem 1fr; gap: 0.75rem; }
.prose li::before { content: ''; width: 0.5rem; height: 0.5rem; margin-top: 0.55rem; border-radius: 50%; background: var(--edge); }

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  h1 { font-size: var(--t-32); }
  .page { padding: 2rem 1.5rem 4rem; gap: 1.75rem; }
  .foot { padding-inline: 1.5rem; }
  .safra { padding: 1.5rem; }
  .drop { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 1.75rem; padding: 1.75rem; text-align: left; }
  .drop .row { justify-content: flex-start; }
  .drop .linkbtn { justify-self: start; text-align: left; }
  .plate.is-picture { inline-size: 9rem; }
  .drop.is-reading { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .row > .btn.big { flex: 0 1 auto; }
  .product { font-size: var(--t-27); }
}

@media (min-width: 60rem) {
  .home.has-recent { grid-template-columns: minmax(0, 1fr) 21rem; }
  .home.has-recent .home-head { grid-column: 1 / -1; }
  .result { gap: 1.25rem; }
  .thaal { grid-template-columns: 20rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .thaal-side { position: sticky; top: 1.5rem; }
  .plate { inline-size: 19rem; }
  .plate.is-picture { inline-size: 11rem; }
  .drop { padding: 2.25rem; gap: 2.25rem; }
  .plate.is-waiting { inline-size: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .bowl.served { animation: none; }
  .bowl.waiting { animation: none; opacity: 0.6; }
  .bone { animation: none; }
  .spinner { animation-duration: 2.4s; }
}

.btn.hint { height: auto; padding: 0.5rem 0.875rem; justify-content: flex-start; text-align: left; white-space: normal; width: 100%; }

/* a calm note at the end of every result: the check reads only what is printed */
.disclaimer { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--r-l); background: var(--cloth-hi); border: 1px solid var(--line); color: var(--muted); }
.disclaimer h2 { font-size: var(--t-17); color: var(--ink); }

/* Material-style touch feedback: no tap delay, and a quick press so every tap is felt at once */
button, a, .way, .course, .katori { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn { transition: transform 0.12s var(--ease), background-color 0.15s, box-shadow 0.15s; }
.btn:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* ---------- A finer finish: depth, light and a little motion ---------- */
body {
  background-image:
    radial-gradient(52rem 22rem at 50% -9rem, rgba(212, 172, 44, 0.16), rgba(212, 172, 44, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 24rem);
}
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 249, 241, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(166, 124, 10, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0.75rem 1.5rem -1.25rem rgba(84, 36, 12, 0.35);
}
h1 { font-size: clamp(var(--t-27), 4.2vw, 2.75rem); letter-spacing: -0.022em; }
.safra {
  border-radius: 1.25rem;
  border: 1px solid rgba(216, 203, 176, 0.55);
  box-shadow: 0 1px 1px rgba(84, 36, 12, 0.05), 0 0.25rem 0.5rem -0.125rem rgba(84, 36, 12, 0.06), 0 1.25rem 2rem -1.25rem rgba(84, 36, 12, 0.28);
}
.ings { border-radius: 1.25rem; box-shadow: 0 1px 1px rgba(84, 36, 12, 0.05), 0 1.25rem 2rem -1.25rem rgba(84, 36, 12, 0.28); }
.btn { border-radius: 0.875rem; }
.btn.primary {
  background: linear-gradient(180deg, #dcb63c, var(--gold));
  border-color: var(--gold-press);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.5rem 1rem -0.5rem rgba(166, 124, 10, 0.7);
}
.btn.primary:hover { background: linear-gradient(180deg, #e1bd44, #d8b132); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0.75rem 1.25rem -0.5rem rgba(166, 124, 10, 0.75); }
.btn.primary:active { transform: scale(0.98); background: var(--gold-press); box-shadow: none; }
.input { border-radius: 0.875rem; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus { box-shadow: 0 0 0 4px rgba(212, 172, 44, 0.28); }
.plate:not(.is-picture) { filter: drop-shadow(0 1.25rem 1.5rem rgba(84, 36, 12, 0.18)); }

/* each page rises into place once */
@keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } }
.page > * { animation: rise 0.5s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: 0.05s; }
.page > *:nth-child(3) { animation-delay: 0.1s; }
.page > *:nth-child(4) { animation-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) { .page > * { animation: none; } }

/* ---------- The admin list: one calm table instead of a wall of cards ---------- */
.page.wide { max-width: 56rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.toolbar .search { flex: 1 1 14rem; min-height: 2.75rem; max-width: 22rem; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0 0.875rem;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-15); font-weight: 600; color: var(--muted); transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--edge); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-weight: 600; opacity: 0.7; }

.items.table { gap: 0; background: var(--safra); border: 1px solid rgba(216, 203, 176, 0.6); border-radius: 1.25rem; overflow: hidden; box-shadow: 0 1px 1px rgba(84, 36, 12, 0.04), 0 1.25rem 2rem -1.5rem rgba(84, 36, 12, 0.25); }
.items.table .item { background: none; border-radius: 0; box-shadow: none; padding: 0.875rem 1.25rem; border-top: 1px solid rgba(216, 203, 176, 0.55); transition: background-color 0.15s; }
.items.table .item:first-child { border-top: 0; }
.items.table .item:hover { background: var(--cloth-hi); }
.items.table .item.is-editing { background: var(--cloth-hi); }
.items.table .item-head { flex-wrap: nowrap; align-items: center; gap: 1rem; }
.items.table .item-head > .grow { min-width: 0; }
.items.table .item-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.625rem; font-size: var(--t-17); }
.items.table .item-desc { color: var(--muted); font-size: var(--t-15); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kind { font-size: var(--t-14); font-weight: 600; color: var(--muted); padding: 0 0.5rem; border: 1px solid var(--line); border-radius: 999px; }
.dot { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; box-shadow: 0 0 0 4px var(--dot-halo, transparent); }
.dot.d-no { background: var(--chilli); --dot-halo: var(--chilli-tint); }
.dot.d-doubt { background: var(--amber); --dot-halo: var(--amber-tint); }
.dot.d-allow { background: var(--chutney); --dot-halo: var(--chutney-tint); }
.quiet { flex: none; min-height: 2.5rem; padding: 0 0.875rem; background: none; border: 1px solid transparent; border-radius: 0.75rem; font-size: var(--t-15); font-weight: 600; color: var(--ink); }
.quiet:hover, .quiet[aria-expanded='true'] { background: var(--safra); border-color: var(--line); }
.danger-link { color: var(--chilli); text-decoration-color: var(--chilli); }
.row.between { justify-content: space-between; }
.items.table .item-edit { margin-top: 0.875rem; }
@media (max-width: 34rem) { .items.table .item { padding-inline: 1rem; } }

/* ---------- The admin workspace: a dark side menu beside the page ---------- */
.shell { flex: 1; display: flex; flex-wrap: wrap; align-items: stretch; background: #f4efe3; }
.side {
  flex: 0 0 15.5rem; box-sizing: border-box; display: flex; flex-direction: column; gap: 1.75rem;
  padding: 1.5rem 1rem; background: linear-gradient(180deg, #3a1a08, #2b1205); color: #f6ecd6;
  position: sticky; top: 0; align-self: flex-start; height: 100vh; height: 100dvh;
}
.side .brand { color: #fff; font-size: var(--t-19); font-weight: 800; }
.side .mark-plate { fill: #e6eaed; stroke: #9aa5ae; }
.side-top { display: flex; align-items: center; gap: 0.625rem; padding: 0 0.5rem; flex-wrap: wrap; }
.side .tag { background: rgba(212, 172, 44, 0.2); color: #f0cf6a; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; font-weight: 800; }
.side-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.side-link {
  display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0 0.875rem;
  background: none; border: 0; border-radius: 0.75rem; color: #e6d9bd; font-size: var(--t-17); font-weight: 600; text-align: left;
  transition: background-color 0.15s, color 0.15s;
}
.side-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-link[aria-current='page'] { background: rgba(212, 172, 44, 0.18); color: #fff3cf; }
.side-link[aria-current='page'] .glyph { color: #d4ac2c; }
.side-link .badge { margin-left: auto; padding: 0 0.5rem; border-radius: 999px; background: #d4ac2c; color: #2b1205; font-size: 0.75rem; font-weight: 800; line-height: 1.4; }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.875rem 0.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.who { display: flex; align-items: center; gap: 0.625rem; min-width: 0; font-weight: 700; }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: #d4ac2c; color: #2b1205; font-weight: 800; }
.side-out { min-height: 2.5rem; padding: 0 0.5rem; background: none; border: 0; border-radius: 0.5rem; color: #c9b995; font-size: var(--t-15); font-weight: 600; }
.side-out:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.shell > main { flex: 1 1 36rem; min-width: 0; }
.shell .page { max-width: 64rem; margin: 0; padding: 2.5rem clamp(1rem, 4vw, 3rem) 3.5rem; }
.shell .page.narrow { max-width: 44rem; }
.shell .page.wide { max-width: 64rem; }
.shell h1 { font-size: clamp(2rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat {
  display: grid; gap: 0.5rem; padding: 1.125rem 1.25rem; text-align: left; border-radius: 1.25rem;
  background: #fff; border: 1px solid #eadfc6; box-shadow: 0 18px 28px -22px rgba(43, 22, 8, 0.4); font: inherit; color: inherit;
}
.stat-label { display: flex; align-items: center; gap: 0.5rem; font-size: var(--t-15); font-weight: 700; color: var(--muted); }
.stat-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: currentColor; }
.stat-n { font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat.s-no .stat-dot, .stat.s-no .stat-n { color: var(--chilli); }
.stat.s-doubt .stat-dot { color: var(--amber); }
.stat.s-doubt .stat-n { color: #b36100; }
.stat.s-allow .stat-dot, .stat.s-allow .stat-n { color: var(--chutney); }

.panel { background: #fff; border: 1px solid #eadfc6; border-radius: 1.375rem; box-shadow: 0 24px 36px -28px rgba(43, 22, 8, 0.45); overflow: hidden; }
.panel .toolbar { padding: 1rem 1.5rem; border-bottom: 1px solid #f0e8d4; }
.panel .toolbar .search { background: #f7f2e6; border-color: transparent; border-radius: 0.75rem; }
.panel .chip.on { background: #2b1205; border-color: #2b1205; }
.panel .items.table { border: 0; border-radius: 0; box-shadow: none; background: none; }
.panel .items.table .item { padding: 0.875rem 1.5rem; border-top: 1px solid #f6efdc; }
.panel .items.table .item:first-child { border-top: 0; }
.panel .items.table .item:hover { background: #faf6ea; }
.panel .items.table .item.is-editing { background: #faf6ea; }
.panel .empty { padding: 2rem 1.5rem; }
.panel > .stack { padding: 1.5rem; }

.initial { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 0.75rem; font-weight: 800; font-size: var(--t-17); }
.initial.i-no { background: var(--chilli-tint); color: var(--chilli); }
.initial.i-doubt { background: var(--amber-tint); color: var(--amber-ink); }
.initial.i-allow { background: var(--chutney-tint); color: var(--chutney); }
.status { flex: none; padding: 0.125rem 0.75rem; border-radius: 999px; font-size: var(--t-14); font-weight: 700; }
.status.st-no { background: var(--chilli-tint); color: var(--chilli); }
.status.st-doubt { background: var(--amber-tint); color: var(--amber-ink); }
.status.st-allow { background: var(--chutney-tint); color: var(--chutney); }
.iconbtn { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: none; border: 1px solid #e3d8bd; border-radius: 0.75rem; color: var(--ink); transition: background-color 0.15s, border-color 0.15s; }
.iconbtn:hover, .iconbtn[aria-expanded='true'] { background: #fff; border-color: var(--ink); }
.items.table .item-head { gap: 1rem; }

@media (max-width: 52rem) {
  .side { position: static; flex: 1 1 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 1rem; }
  .side-nav { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; }
  .side-link { min-height: 2.75rem; padding: 0 0.75rem; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .who-name { display: none; }
  .shell .page { padding-top: 1.5rem; }
}
@media (max-width: 34rem) { .stat-n { font-size: 2.25rem; } .panel .toolbar { padding-inline: 1rem; } .panel .items.table .item { padding-inline: 1rem; } .status { display: none; } }
.items { padding: 0; margin: 0; }

.input.short, textarea.input.short { min-height: 4.5rem; }
.findout { margin-top: 0.625rem; padding: 0.75rem 0.875rem; border-radius: 0.875rem; background: var(--cloth-hi); border: 1px solid var(--line); display: grid; gap: 0.5rem; }
.findout p { margin: 0; }
.findout-title { font-weight: 700; font-size: var(--t-15); }
.findout .row { align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.why.cleared { color: var(--chutney); font-weight: 600; }
.guidance { text-align: center; max-width: 22rem; margin: 0; }

.srch-head { width: 100%; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.srch-head .grow { min-width: 0; }
.srch-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.srch-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.25rem 0; }
.srch-head .kind { white-space: nowrap; }
.srch-head .status { flex-shrink: 0; white-space: nowrap; }
.srch-ings { display: grid; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.srch-ing { display: flex; align-items: flex-start; gap: 0.75rem; }
.srch-detail .field { display: block; margin-bottom: 0.25rem; }
@media (max-width: 34rem) { .srch-head .status { display: inline-block; align-self: flex-start; } }

.ai-when { margin: 0; font-size: var(--t-14); font-weight: 700; color: var(--muted); }
.ai-why { margin: 0; font-size: var(--t-17); font-weight: 600; }
.ai-tech { font-size: var(--t-14); color: var(--muted); }
.ai-tech summary { cursor: pointer; font-weight: 600; }
.ai-tech dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.625rem 0 0; }
.ai-tech dt { font-weight: 600; }
.ai-tech dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Restaurants ---------- */
.home-kinds { grid-column: 1 / -1; }
.home-kinds:empty { display: none; }
/* The top switch (Ingredients / Restaurants): a pill, so it never looks like the underline tabs below it */
.ways.kinds {
  gap: 0.25rem; padding: 0.25rem; margin-bottom: 1.5rem;
  border: 0; border-radius: 999px; background: var(--ink);
}
.kinds .way {
  min-height: 3rem; margin: 0; border: 0; border-radius: 999px;
  font-size: var(--t-17); font-weight: 700; color: #f3e6c8;
}
.kinds .way:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.kinds .way[aria-selected='true'] { background: var(--gold); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.home .home-head { margin-top: 0.25rem; }
.home-main { margin-top: 0.5rem; }
.places { gap: 1.125rem; }
.area-box { display: grid; gap: 0.75rem; background: var(--cloth-hi); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.875rem 1rem; }
.area-line { display: flex; gap: 0.75rem; align-items: flex-start; }
.area-line .icon { flex: none; margin-top: 0.125rem; color: var(--chilli); }
.area-title { font-weight: 700; }
.small-head { font-size: var(--t-15); font-weight: 700; color: var(--muted); margin: 0; }
.pick {
  display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; inline-size: 100%; min-height: 3.5rem;
  padding: 0.875rem 1rem; text-align: left; color: inherit; cursor: pointer;
  background: var(--safra); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--lift);
}
.pick:hover { border-color: var(--edge); }
.pick:active { transform: translateY(1px); }
.pick-body { display: grid; gap: 0.125rem; min-width: 0; }
.pick-name { font-weight: 800; font-size: var(--t-19); line-height: 1.2; }
.pick-km { font-weight: 700; }
.tag { flex: none; font-size: var(--t-14); font-weight: 700; padding: 0.125rem 0.625rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cloth); color: var(--ink); line-height: 1.4; }
.tag.plain { background: transparent; font-weight: 600; }
.steps { list-style: none; margin: 0; display: grid; gap: 0.875rem; }
.steps li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: var(--t-17); }
.steps .next { color: var(--muted); }
.dot { flex: none; display: grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem; border-radius: 999px; border: 2px solid var(--line); }
.steps .done .dot { background: var(--cloth); border-color: var(--edge); }
.steps .now .dot { border-color: var(--gold); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps .now .dot { animation: none; border-top-color: var(--gold); } }
.fact { padding: 1rem 1.125rem; }
.fact-label { margin: 0; font-size: var(--t-14); font-weight: 700; color: var(--muted); }
.fact-label.pad { padding: 0 0.125rem; }
.fact-main { margin: 0; font-size: var(--t-19); font-weight: 700; line-height: 1.3; }
.fact-main.small-main { font-size: var(--t-17); font-weight: 600; }
.fact .tag { justify-self: start; }
.flag { display: grid; gap: 0.375rem; padding: 0.875rem 1rem; background: var(--chilli-tint); border: 2px solid var(--chilli); border-radius: var(--r-l); color: var(--chilli-deep); }
.flag a { color: var(--chilli-deep); }
.flag-head { display: flex; gap: 0.5rem; align-items: center; font-size: var(--t-19); font-weight: 800; }
.flag-head .icon { flex: none; color: var(--chilli); }
.flag-lines { font-size: var(--t-17); }
.missing { border: 1px dashed var(--edge); box-shadow: none; }

/* Restaurants: admin */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat.s-plain .stat-dot { color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.check-row input { width: 1.5rem; height: 1.5rem; accent-color: var(--ink); }
.row.top { align-items: flex-start; }
.saved-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.saved-val { font-weight: 600; overflow-wrap: anywhere; }
.saved-box { min-width: 14rem; }
.suggest-box { min-width: 14rem; padding: 0.75rem 1rem; border-radius: var(--r-m); background: var(--amber-tint); color: var(--amber-ink); }
.note-card { gap: 0.75rem; }
.notice.amber { background: var(--amber-tint); border-color: var(--amber); color: var(--amber-ink); }
@media (max-width: 40rem) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
