/* The mockup's stylesheet, reused unchanged (design 2.3). Additions are at the end. */

:root {
  --bg: #FFFFFF;
  --text: #1B1D21;
  --text-2: #4B5560;
  --text-3: #68727D;
  --line: #E8EBEE;
  --coral: #F0553A;
  --coral-text: #B93A1E;
  --coral-tint: #FFEFEA;
  /* The selected campus, day and filter: a peach tint. Pale fill, an orange outline, dark text of the same hue. */
  --selected: #FFEEDD;
  --selected-line: #F08A3A;
  --selected-text: #9A4A0C;
  --selected-dim: #A85A1C;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --time-col: 4.75rem;
  --gap: 2.5rem;
  --rail: calc(var(--time-col) + var(--gap) / 2);
  /* Side gutters that also clear a phone's side system bar. */
  --gutter-l: max(1.25rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1.25rem, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.page {
  max-width: 44rem; margin: 0 auto;
  padding-block: 0 5rem;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
/* Keeps scrolled content from showing above the sticky day picker on phones with a top inset. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 10;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}

/* ---------- Top ---------- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 1.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.0625rem; font-weight: 800; letter-spacing: -.015em;
  color: inherit; text-decoration: none;
}
.brand i { flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--coral); }
.top-note { color: var(--text-3); font-size: .9375rem; margin-right: auto; }
/* Campus switch: one segmented control, two choices. The selected one is filled, like the selected day. */
.campus { display: inline-flex; flex: none; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.c-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.25rem; padding: .25rem .95rem;
  border: 0; border-radius: 999px; background: none;
  font-size: .875rem; font-weight: 700; color: var(--text-2); white-space: nowrap; text-decoration: none;
}
.c-btn:hover { color: var(--text); }
.c-btn[aria-current="true"] { background: var(--selected); color: var(--selected-text); box-shadow: inset 0 0 0 1px var(--selected-line); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .5rem 1.1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text);
  font-weight: 700; font-size: .9375rem; white-space: nowrap;
}
.btn:hover { border-color: var(--text); }

/* ---------- Day picker ---------- */

.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3;
  margin: 0 calc(var(--gutter-r) * -1) 0 calc(var(--gutter-l) * -1);
  padding: .75rem var(--gutter-r) .75rem var(--gutter-l);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.day {
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem .25rem .55rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: none; color: var(--text-3);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.d-date { font-size: 1.375rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.d-count { font-size: .75rem; line-height: 1.3; }
.day:hover { border-color: var(--text-3); }
.day[aria-pressed="true"] { background: var(--selected); border-color: var(--selected-line); color: var(--selected-dim); }
.day[aria-pressed="true"] .d-date { color: var(--selected-text); }

/* ---------- Timeline ---------- */

.slot { margin-top: 2rem; }
.slot h2 {
  padding: 0 0 .35rem calc(var(--time-col) + var(--gap));
  font-size: .875rem; font-weight: 600; color: var(--text-3);
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-col) minmax(0, 1fr) auto auto;
  grid-template-areas: "time name food cal" "time place food cal";
  gap: .15rem var(--gap);
  padding: .85rem 0;
}
/* The rail, and a dot on it for each event. */
.row::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--rail) - 1px); width: 2px;
  background: var(--line);
}
.row:first-child::before { top: 1.3rem; }
.row:last-child::before { bottom: auto; height: 1.3rem; }
.row:only-child::before { display: none; }
.row::after {
  content: ""; position: absolute; top: 1.3rem;
  left: calc(var(--rail) - 5px);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--coral);
}

.r-time { grid-area: time; padding-top: .05rem; font-weight: 700; text-align: right; white-space: nowrap; }
.name { grid-area: name; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.008em; }
/* The title links to the event's source page; its hit area covers the whole row. */
.name a { color: inherit; text-decoration: none; }
.name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.name svg { width: .75em; height: .75em; margin-left: .4em; color: var(--text-3); }
.row:hover .name a, .name a:focus-visible {
  color: var(--coral-text);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.row:hover .name svg, .name a:focus-visible svg { color: inherit; }
.name a:focus-visible { outline: 0; }
.name a:focus-visible::after { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.place { grid-area: place; color: var(--text-3); font-size: .9375rem; }
.food {
  grid-area: food; align-self: center; justify-self: end;
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--coral-tint); color: var(--coral-text);
  font-size: .875rem; font-weight: 600; white-space: nowrap;
}
/* Add to calendar: a round button in a last column of its own, so the buttons line up down the page. */
.cal {
  grid-area: cal; align-self: center;
  /* Above the title link's row-wide hit area, so a tap here does not open the event page. */
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-left: calc(.75rem - var(--gap));
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--text-2);
}
.cal svg { width: 1.125rem; height: 1.125rem; }
/* A 44px tap target around the smaller circle. */
.cal::before { content: ""; position: absolute; inset: -.25rem; border-radius: 50%; }
.cal:hover { border-color: var(--text); color: var(--text); }
/* Pointing at the button does not also light up the title as if it were about to be opened. */
.row:has(.cal:hover) .name a { color: inherit; text-decoration: none; }
.row:has(.cal:hover) .name svg { color: var(--text-3); }

@media (max-width: 639px) {
  :root { --time-col: 4.3rem; --gap: 1.9rem; }
  .top { flex-wrap: wrap; row-gap: .1rem; padding: 1.25rem 0 1rem; }
  .top-note { order: 3; flex-basis: 100%; }
  /* On a phone the switch takes its own row under the title, each choice half the width. */
  .campus { order: 3; display: flex; flex-basis: 100%; margin-top: .6rem; }
  .c-btn { flex: 1; }
  /* Seven days across a phone: tighter cells, and the count drops its word. */
  .days { gap: .25rem; }
  .day { padding: .4rem 0 .45rem; border-radius: 11px; font-size: .75rem; }
  .d-date { font-size: 1.125rem; }
  .d-word { display: none; }
  .row {
    grid-template-columns: var(--time-col) minmax(0, 1fr) auto;
    grid-template-areas: "time name name" "time place place" "time food cal";
  }
  .r-time { font-size: .9375rem; padding-top: .1rem; }
  .food { justify-self: start; margin-top: .4rem; }
  /* On a phone the button shares the food chip's line, at the right edge; the title keeps its full width. */
  .cal { width: 2rem; height: 2rem; margin-top: .4rem; margin-left: calc(.5rem - var(--gap)); }
  .cal::before { inset: -.375rem; }
}

/* ---------- Empty state and footer ---------- */

.empty { margin-top: 3rem; max-width: 30rem; }
.empty h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.empty p { margin: .5rem 0 1.1rem; color: var(--text-2); }

.foot { margin-top: 3rem; color: var(--text-3); font-size: .875rem; }

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

/* ---------- Spotlight (mockup version 2) ---------- */

:root {
  /* Spotlight slide colours, used in turn, and the text colour on them. */
  --spot-1: #D93A20;
  --spot-2: #0F5C4A;
  --spot-3: #4B3BC9;
  --spot-4: #14507A;
  --on-spot: #FFFFFF;
}
.spotlight { position: relative; margin-bottom: .75rem; }
.slides {
  display: flex; overflow-x: auto; border-radius: 24px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 17rem; padding: 1.75rem 2rem;
  background: var(--c); color: var(--on-spot);
}
/* The mockup sets each slide's colour inline; the page's content policy allows no inline styles. */
.slide.c1 { --c: var(--spot-1); }
.slide.c2 { --c: var(--spot-2); }
.slide.c3 { --c: var(--spot-3); }
.slide.c4 { --c: var(--spot-4); }
.slide > * { position: relative; z-index: 1; }
/* The food emoji is the slide's picture: large, tilted, running off the right edge. */
.slide .art {
  position: absolute; z-index: 0; right: -1.25rem; top: 50%;
  font-size: 15rem; line-height: 1; transform: translateY(-50%) rotate(12deg);
}
/*
 * A slide with a photograph: the picture fills the right of the slide, edge to edge, and fades
 * into the slide's colour so the text on the left stays readable.
 */
.slide .photo { position: absolute; z-index: 0; inset: 0 0 0 38%; }
.slide .photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%);
  mask-image: linear-gradient(to right, transparent 0, #000 42%);
}
/* A cut-out picture (no background of its own) is shown whole on the slide's colour, not cropped or faded. */
.slide .photo img[src*="food-boba"] { object-fit: contain; object-position: right center; padding: .75rem 1rem .75rem 0; -webkit-mask-image: none; mask-image: none; }
/*
 * The boba slide has a background of its own, chosen by the owner: milk tea cream, with dark text
 * and a dark button. It does not take part in the daily colour rotation.
 */
.slide.milk {
  --on-spot: #3A2A1E;
  background: linear-gradient(120deg, #FBF1E2 0%, #F3DFC6 55%, #EBCFAE 100%);
}
.slide.has-photo.milk .s-when, .slide.has-photo.milk h2, .slide.has-photo.milk .s-what { text-shadow: none; }
.slide.milk .s-btn { background: #3A2A1E; color: #FFF8EE; }
.slide.milk .s-btn:hover { background: #53402F; }
.slide.has-photo { min-height: 19rem; }
.slide.has-photo h2, .slide.has-photo .s-what { max-width: 50%; }
.slide.has-photo .s-when, .slide.has-photo h2, .slide.has-photo .s-what { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.s-when { font-weight: 700; }
/* The event's name is the headline. Names run long, so it is set smaller than the mockup's food headline and stops at three lines. */
.slide h2 {
  max-width: 62%; margin: .35rem 0 .5rem;
  font-size: clamp(1.375rem, 3.6vw, 1.875rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
/* The food and the place, under the name. */
.s-what { max-width: 60%; font-size: 1.125rem; font-weight: 700; }
.s-btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1.1rem; padding: .5rem 1.15rem;
  border-radius: 999px; background: var(--on-spot); color: var(--text);
  font-weight: 700; font-size: .9375rem; text-decoration: none;
}
.s-btn:hover { background: var(--coral-tint); }
.s-btn:focus-visible, .s-nav button:focus-visible { outline-color: var(--on-spot); }
.s-nav { position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 2; display: flex; align-items: center; gap: .4rem; }
.s-nav button {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 0; border-radius: 50%; background: var(--on-spot); color: var(--text);
}
.s-nav button:hover { background: var(--coral-tint); }
.s-nav svg { width: .8rem; height: .8rem; }
/* The dots sit on a dark pill so they stay readable over the slide's picture. */
.dots { display: flex; gap: .35rem; margin-right: .2rem; padding: .45rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .3); }
.dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--on-spot); opacity: .45; }
.dots i.on { opacity: 1; }
[hidden] { display: none !important; }

@media (max-width: 639px) {
  /* Spotlight on a phone: shorter, with the picture tucked into the top corner. */
  .slides { border-radius: 20px; }
  /* On a phone the picture is in the top corner, so the text keeps to the bottom, level with the arrows. */
  .slide { justify-content: flex-end; min-height: 15.5rem; padding: 1.25rem 1.25rem 1.1rem; }
  .slide .art { top: .25rem; right: -.75rem; font-size: 7.5rem; transform: rotate(12deg); }
  /* On a phone the photograph fills the top of the slide and fades down into the colour behind the text. */
  .slide.has-photo { min-height: 21rem; }
  .slide .photo { inset: 0 0 38% 0; }
  .slide .photo img {
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  }
  .slide.has-photo h2, .slide.has-photo .s-what { max-width: none; }
  /* The boba cups keep to the top of the slide, clear of the text below them. */
  .slide.milk .photo { inset: 0 0 46% 0; }
  .slide.milk .photo img[src*="food-boba"] { padding: .6rem .75rem 0 0; }
  .slide h2 { max-width: 72%; font-size: 1.25rem; }
  .s-what { max-width: none; font-size: 1rem; }
  .s-btn { margin-top: .9rem; }
  .s-nav { right: .9rem; bottom: 1.1rem; }
}

@media print {
  /* A banner of featured events has no place on paper: the list below holds them all. */
  .spotlight { display: none; }
}

/* ---------- Additions to the mockup ---------- */

/* The food or drink filter, under the day picker. */
.filters { display: flex; gap: .5rem; margin-top: .65rem; }
.filter {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.25rem; padding: .3rem .9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--text-2);
  font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.filter:hover { border-color: var(--text-3); }
.filter[aria-pressed="true"] { background: var(--selected); border-color: var(--selected-line); color: var(--selected-text); }
.f-icon { font-size: 1rem; line-height: 1; }

/* Share, at the top right: a link drawn as a pill, as tall as the campus switch beside it. */
.top .campus { margin-left: auto; }
.share {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .3rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--text-2); font-size: .875rem; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.share:hover { border-color: var(--text-3); color: var(--text); }
.share svg { flex: none; width: 1rem; height: 1rem; }

@media (max-width: 639px) {
  /* On a phone Share is its icon alone, at the end of the title's row; the title gives way to it. */
  .brand { flex: 1; min-width: 0; }
  .share { order: 2; width: 2.5rem; min-height: 2.5rem; padding: 0; }
  .share svg { width: 1.125rem; height: 1.125rem; }
  /* The word is kept for screen readers, and what the link says after a tap floats under it. */
  .share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .share.said .share-label {
    z-index: 6; top: calc(100% + .4rem); right: 0; width: auto; height: auto; overflow: visible; clip-path: none;
    padding: .3rem .7rem; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .8125rem; font-weight: 600;
  }
}
@media (max-width: 359px) {
  /* The narrowest phones: a slightly smaller title, so it stays on one line beside Share. */
  .top { column-gap: .5rem; }
  .brand { font-size: .9375rem; }
}

/* Shown when the listings have not been refreshed for a while. */
.stale { margin-top: 1.25rem; color: var(--text-3); font-size: .875rem; }

/* ---------- Owner status page ---------- */

.admin { max-width: 62rem; }
.admin h1 { margin: 0 0 .25rem; font-size: 1.375rem; font-weight: 800; letter-spacing: -.015em; }
.admin h2 { margin: 2.25rem 0 .6rem; font-size: 1rem; font-weight: 700; }
.admin .sub { color: var(--text-3); font-size: .9375rem; }
.admin .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.admin .fact { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; }
.admin .fact b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.admin .fact span { color: var(--text-3); font-size: .8125rem; }
.admin .problems { margin-top: 1.25rem; padding: .85rem 1rem; border-radius: 14px; background: var(--coral-tint); color: var(--coral-text); font-weight: 600; font-size: .9375rem; }
.admin .problems li + li { margin-top: .35rem; }
.admin .scroll { overflow-x: auto; }
.admin table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin th, .admin td { padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin th { color: var(--text-3); font-weight: 600; white-space: nowrap; }
.admin td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin td.wrap { overflow-wrap: anywhere; min-width: 12rem; }
.admin .ok { color: #1F7A4D; font-weight: 600; }
.admin .bad { color: var(--coral-text); font-weight: 600; }
.admin .muted { color: var(--text-3); }

/* ---------- Printing and saving as PDF ---------- */

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { max-width: none; padding-bottom: 0; }
  .bar { position: static; border-bottom: 0; padding-bottom: 0; }
  .filters, .cal { display: none; }
  .row { break-inside: avoid; }
  .slot h2 { break-after: avoid; }
}

/* ---------- Sign-in prompt (design 1.8), from the chosen mockup: docs/mockups/sign-in.html, option 1 ---------- */

.gate-rail { margin-top: 1.75rem; }
.gate-row { padding-bottom: 1.5rem; }
.gate-row::after { background: var(--coral); }
.gate-row .r-time { padding-top: .2rem; color: var(--text-3); }
.lock { display: block; width: 1rem; height: 1rem; margin-left: auto; }
/* The prompt takes everything to the right of the rail. */
.gate-body { grid-column: 2 / -1; grid-row: 1 / -1; min-width: 0; container-type: inline-size; }
.g-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.g-sub { max-width: 34rem; margin-top: .3rem; color: var(--text-2); }
.g-break { overflow-wrap: anywhere; }
.g-form { margin-top: .9rem; }
.g-field {
  display: flex; gap: .4rem; max-width: 27rem; padding: .3rem;
  border: 1px solid #C5CBD1; border-radius: 999px; background: var(--bg);
}
.g-field:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px rgba(27, 29, 33, .1); }
.g-field input { flex: 1; min-width: 0; padding: .4rem .25rem .4rem .9rem; border: 0; outline: 0; background: none; font-size: 1rem; }
.g-field input::placeholder, .g-code::placeholder { color: var(--text-3); }
/* The one main action on the locked page: solid, where the selected day is only tinted. */
.g-go {
  flex: none; min-height: 2.6rem; padding: .4rem 1.1rem; border: 0; border-radius: 999px;
  background: #D8412A; color: #fff; font-weight: 700; font-size: .9375rem; white-space: nowrap;
}
.g-go:hover { background: #BF3620; }
.g-err { margin-top: .6rem; color: var(--coral-text); font-size: .875rem; font-weight: 600; }
.g-fine, .g-note { max-width: 27rem; margin-top: .6rem; color: var(--text-3); font-size: .8125rem; line-height: 1.45; }
/* A tap on a locked day: one short ring shows where to type. */
.nudge { animation: nudge .7s ease-out 1; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(240, 85, 58, .55); } 100% { box-shadow: 0 0 0 14px rgba(240, 85, 58, 0); } }

.g-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.g-code {
  width: 10.5rem; padding: .5rem .5rem .5rem .95rem; border: 1px solid #C5CBD1; border-radius: 14px; background: var(--bg);
  font-size: 1.375rem; font-weight: 800; letter-spacing: .32em;
}
.g-code::placeholder { color: #C5CBD1; }
.g-code:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px rgba(27, 29, 33, .1); }
.g-links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin-top: .5rem; }
.g-link {
  display: inline-block; padding: .4rem 0; border: 0; background: none; color: var(--text-2);
  font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.g-link:hover { color: var(--text); }

/* In a narrow column (a phone) the button drops under the email field. */
@container (max-width: 21rem) {
  .g-field { flex-direction: column; gap: .5rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .g-field input { padding: .7rem 1rem; border: 1px solid #C5CBD1; border-radius: 999px; background: var(--bg); }
  .g-field input:focus { border-color: var(--text); }
  .g-field .g-go { width: 100%; }
  .g-field:focus-within { border: 0; box-shadow: none; }
  .g-field input:focus { box-shadow: 0 0 0 3px rgba(27, 29, 33, .1); }
  .g-field.nudge { animation: none; }
  .g-field.nudge input { animation: nudge .7s ease-out 1; }
}

/* Placeholder rows: the shape of the list behind the sign-in, with nothing in it, fading out. */
.gb { display: block; height: .8rem; border-radius: 999px; background: var(--line); }
.row.ghost::after { border-color: #D5DADF; }
.row.ghost .r-time .gb { width: 3.1rem; margin: .3rem 0 0 auto; }
.row.ghost .name .gb { margin: .3rem 0 .25rem; }
.row.ghost .place .gb { height: .6rem; margin-top: .25rem; }
.row.ghost .food { width: 4.75rem; height: 1.75rem; background: var(--line); }
.ghost.g1 { opacity: .9; }  .g1 .name .gb { width: 72%; } .g1 .place .gb { width: 34%; }
.ghost.g2 { opacity: .6; }  .g2 .name .gb { width: 55%; } .g2 .place .gb { width: 42%; }
.ghost.g3 { opacity: .35; } .g3 .name .gb { width: 84%; } .g3 .place .gb { width: 30%; }
.ghost.g4 { opacity: .15; } .g4 .name .gb { width: 63%; } .g4 .place .gb { width: 38%; }

/* Shown once after signing in. */
.welcome { margin-top: 1.25rem; padding: .6rem .9rem; border-radius: 12px; background: var(--coral-tint); color: var(--coral-text); font-size: .875rem; font-weight: 600; }

/* At the bottom of the page: who is signed in, and "Sign out". */
.me { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .9rem; margin-top: .5rem; color: var(--text-3); font-size: .875rem; }
.me-email { color: var(--text-2); font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 639px) {
  /* On a phone the prompt needs the width: the rail moves to the left edge, with only the lock beside it. */
  .gate-rail { --time-col: 1rem; --gap: 1.5rem; --rail: calc(var(--time-col) + var(--gap) / 2); }
  .row.ghost .r-time .gb { display: none; }
}

@media print {
  #gate { display: none; }
}
