/* ==========================================================================
   TapMyTender — one stylesheet for the whole site.

   Mobile first: most people open it on a phone, at the bar. The site is dark
   on purpose (bars are dark, and so are phones at night), so there is no
   light theme.

   The colors come from the logo: amber into tangerine, on near-black.
   ========================================================================== */

:root {
  --bg:          #0e0c11;
  --bg-raise:    #141118;
  --surface:     #1a1620;
  --surface-2:   #231e2a;
  --line:        #2e2837;
  --line-strong: #40384b;

  --text:  #f6f0e6;
  --muted: #b3a9bc;
  --faint: #857b90;

  --amber:     #ffcf5a;
  --tangerine: #ff7a3d;
  --accent:    #ffab4a;                 /* links and focus rings: between the two */
  --ink:       #1c1305;                 /* text on amber */
  --glow:      linear-gradient(120deg, var(--amber), var(--tangerine));
  --accent-wash: rgba(255, 171, 74, .12);

  --live:      #3ddc97;
  --live-wash: rgba(61, 220, 151, .13);
  --danger:    #ff7a70;
  --danger-wash: rgba(255, 122, 112, .12);

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, .7);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap:   1120px;
  --narrow: 720px;
  --gutter: 16px;
  --tabbar: 64px;

  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

/* ---- Base ---------------------------------------------------------------- */

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

/* Anything marked hidden stays hidden, whatever its own display says (.btn, .card…). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; padding-bottom: 56px; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }

h1, h2, h3 {
  margin: 0 0 .4em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

em { font-style: normal; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

.wrap   { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.muted { color: var(--muted); }
.quiet { color: var(--faint); margin: .25rem 0 1rem; }

.visually-hidden, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---- Logo ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand .mark { width: 34px; height: 34px; }

.wordmark {
  font: 800 1.45rem/1 var(--display);
  letter-spacing: -.04em;
}
.wordmark b {
  font-weight: 800;
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .tm {
  display: inline-block;
  margin-left: .08em;
  font: 700 max(.36em, 8px)/1 var(--body);   /* never too small to read in the footer */
  letter-spacing: 0;
  vertical-align: top;
  opacity: .75;
  transform: translateY(.18em);   /* level with the top of the tall letters */
}

.mark-lg { width: 56px; height: 56px; }
.mark-xl { width: 88px; height: 88px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--glow);
  color: var(--ink);
  font: 700 .98rem/1.1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--ink); box-shadow: 0 8px 24px -8px rgba(255, 140, 60, .55); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--faint); box-shadow: none; }

.btn-danger { color: var(--danger); }
.btn-danger:hover { color: var(--danger); background: var(--danger-wash); border-color: var(--danger); }

.btn.is-static { cursor: default; transform: none; color: var(--muted); }
.btn.is-static:hover { background: transparent; border-color: var(--line-strong); }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* A form busy with something slow (painting a picture): its button shimmers
   until the next page arrives. */
form[aria-busy="true"] .btn:disabled {
  opacity: 1;
  cursor: progress;
  background: linear-gradient(100deg, var(--tangerine) 25%, var(--amber) 42%, #fff3cf 50%, var(--amber) 58%, var(--tangerine) 75%);
  background-size: 250% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: 0 0; }
}

/* Follow: a gradient button. Following: quiet, and says "Unfollow" on hover. */
.follow-form { margin: 0; }
.btn-following {
  background: var(--accent-wash);
  border-color: rgba(255, 171, 74, .45);
  color: var(--amber);
}
.btn-following .icon { fill: currentColor; }
.btn-following:hover { color: var(--danger); background: var(--danger-wash); border-color: var(--danger); box-shadow: none; }
.btn-following .when-hover { display: none; }
.btn-following:hover .when-idle, .btn-following:focus-visible .when-idle { display: none; }
.btn-following:hover .when-hover, .btn-following:focus-visible .when-hover { display: inline; }

/* ---- Header -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);   /* under the iPhone status bar when installed */
  background: rgba(14, 12, 17, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 6px; }

/* Phones: signed-in visitors get the tab bar at the bottom instead. Signed
   out, "Find a bartender or waitress" moves to the page itself. */
@media (max-width: 719px) {
  .is-signed-in .nav { display: none; }
  .nav a[href$="/bartenders"] { display: none; }
  .wordmark { font-size: 1.3rem; }
}

/* ---- Messages ------------------------------------------------------------ */

.flashes { padding-top: 16px; }
.flash {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 220, 151, .35);
  background: var(--live-wash);
  color: #c9f7e2;
  font-weight: 600;
}
.flash-error { border-color: rgba(255, 122, 112, .4); background: var(--danger-wash); color: #ffd3cf; }

/* ---- Cards and pills ----------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
@media (min-width: 720px) { .card { padding: 28px; } }

.card-title { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill .icon { width: 1em; height: 1em; }
.pill-live  { background: var(--live-wash); color: var(--live); }
.pill-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .6);
  animation: pulse 2s infinite;
}
.pill-ended { background: var(--surface-2); color: var(--faint); }
.pill-new   { background: var(--glow); color: var(--ink); }
.pill-news  { background: var(--accent-wash); color: var(--accent); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); }
  70%  { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.avatar {
  --size: 40px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: linear-gradient(140deg, hsl(var(--hue) 55% 42%), hsl(calc(var(--hue) + 40) 60% 30%));
  color: #fff;
  font: 700 calc(var(--size) * .38)/1 var(--display);
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.avatar-sm { --size: 26px; }
.avatar-lg { --size: 52px; }
.avatar-xl { --size: 88px; }

/* ---- Home: hero ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 30%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(255, 150, 70, .22), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 20px; }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { color: var(--faint); font-size: .95rem; }

/* The phone in the hero: an illustration of the Tonight page. */
.phone {
  justify-self: center;
  width: min(100%, 340px);
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2b2533, #15121a);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(2deg);
}
.phone-screen {
  padding: 26px 16px 18px;
  border-radius: 34px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.phone-date { margin: 0; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phone-title { margin: 0 0 14px; font: 700 1.7rem/1.1 var(--display); letter-spacing: -.03em; }

.mini-update {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .82rem;
  line-height: 1.4;
}
.mini-update.is-live { border-color: rgba(61, 220, 151, .35); }
.mini-update p { margin: 0; }
.mini-update .avatar { --size: 34px; }
.mini-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-who .pill { font-size: .66rem; padding: 1px 7px; }
.mini-job { color: var(--faint); font-size: .74rem; }
.mini-when { color: var(--muted); }
.mini-where, .mini-special { display: flex; align-items: center; gap: 5px; margin-top: 3px !important; }
.mini-special { color: var(--amber); }
.mini-update .icon { width: 13px; height: 13px; color: var(--faint); }
.mini-special .icon { color: var(--amber); }

/* ---- Home: sections ------------------------------------------------------ */

.section { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 88px 0; } }

.section-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 32px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.steps li {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: step;
}
.steps li::after {
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--line-strong);
  font: 800 2.4rem/1 var(--display);
}
.steps p { margin: 0; color: var(--muted); }

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-wash);
  color: var(--amber);
}
.step-icon .icon { width: 26px; height: 26px; }

.pitch { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .pitch { grid-template-columns: 1fr 1fr; gap: 64px; } }
.pitch h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.035em; }
.pitch .lead { margin-bottom: 28px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.checks strong { color: var(--text); }
.checks .icon {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: var(--glow);
  color: var(--ink);
  stroke-width: 2.6;
}

.closer-inner { display: grid; justify-items: center; gap: 20px; text-align: center; }
.closer h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); max-width: 16em; margin: 0; }

/* ---- Page headings ------------------------------------------------------- */

.page-head { padding: 36px 0 20px; }
.page-head h1 { margin-bottom: 6px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head .muted { margin: 0; }

.section-block { margin-top: 36px; }

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.3rem;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 700 .8rem/1 var(--body);
  letter-spacing: 0;
}

.day-title { margin: 22px 0 10px; font-size: 1rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.day-title .muted { font-weight: 500; margin-left: 4px; }

/* ---- An update ----------------------------------------------------------- */

.update {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.update.is-live {
  border-color: rgba(61, 220, 151, .4);
  background: linear-gradient(180deg, rgba(61, 220, 151, .06), transparent 60%), var(--surface);
}
.update.is-ended { opacity: .62; }

.update-who {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.update-who:hover { color: var(--text); }
.update-who:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.update-who span { display: grid; line-height: 1.25; }
.update-who small { color: var(--faint); font-size: .85rem; }

.update-body > p { margin: 0 0 8px; }
.update-body > p:last-child { margin-bottom: 0; }

.update-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.update-when strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.01em; }
.update-when .dot { color: var(--faint); }

.update-where, .update-special { display: flex; gap: 10px; align-items: flex-start; }
.update-where > .icon, .update-special > .icon { margin-top: 3px; color: var(--accent); }
.update-where > span { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.update-where .muted { font-size: .92rem; }
.directions { font-size: .88rem; font-weight: 600; }

.update-special > span { display: grid; line-height: 1.35; }
.update-special small {
  color: var(--faint);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.update-special { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-wash); color: var(--amber); font-weight: 600; }

.update-message { color: var(--text); white-space: normal; overflow-wrap: anywhere; }

.update-meta { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: .85rem; }

.update-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.update-actions form { margin: 0; }

@media (min-width: 600px) {
  .update:has(.update-who) { grid-template-columns: 180px 1fr; }
  .update-who { align-self: start; }
}

/* ---- Tonight ------------------------------------------------------------- */

.post-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease;
}
.post-prompt:hover { color: var(--text); border-color: var(--line-strong); }
.post-prompt > span:nth-child(2) { display: grid; flex: 1; line-height: 1.35; }
.post-prompt small { color: var(--muted); }

.empty { display: grid; justify-items: center; gap: 4px; padding: 40px 24px; text-align: center; }
.empty .mark { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 30em; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 600 .92rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.chip-add { padding-left: 12px; color: var(--muted); }

/* ---- Find ---------------------------------------------------------------- */

.search {
  position: relative;
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-top: 18px;
}
.search > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input[type="search"] { flex: 1; padding-left: 46px; border-radius: 999px; }

.results-line { margin-bottom: 16px; }

.bgrid { display: grid; gap: 12px; }
@media (min-width: 640px)  { .bgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bgrid { grid-template-columns: repeat(3, 1fr); } }

.bcard {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.bcard-main { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.bcard-main:hover { color: var(--text); }
.bcard-main:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.bcard-text { display: grid; line-height: 1.3; min-width: 0; }
.bcard-text strong { font-size: 1.05rem; }
.bcard-text small { color: var(--faint); }
.bcard-text .muted { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bcard-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; }

/* ---- A bartender's page -------------------------------------------------- */

.profile {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 28px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 150, 70, .12), transparent 60%),
    var(--surface);
}
.profile h1 { margin-bottom: 2px; }
.profile-handle { margin: 0 0 8px; color: var(--faint); }
.profile-where { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.profile-where .icon { color: var(--accent); }
.profile-bio { max-width: 34em; margin: 0 auto 12px; color: var(--muted); }
.profile-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin: 0; color: var(--muted); }
.profile-meta strong { color: var(--text); }
.profile-meta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (min-width: 720px) {
  .profile { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; }
  .profile-bio { margin-left: 0; }
  .profile-meta { justify-content: flex-start; }
}

.share { display: grid; gap: 14px; margin-top: 12px; }
.share h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin-bottom: 4px; }
.share .muted { margin: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row input { flex: 1 1 220px; min-width: 0; color: var(--amber); }

/* ---- "Get the app" ------------------------------------------------------- */

.install {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-color: rgba(255, 171, 74, .35);
  background: linear-gradient(135deg, rgba(255, 171, 74, .10), transparent 70%), var(--surface);
}
.install[hidden] { display: none; }
.install-icon { width: 52px; height: 52px; border-radius: 12px; }
.install-text h2 { margin: 0 0 2px; font-size: 1.1rem; }
.install-text p { margin: 0; color: var(--muted); font-size: .92rem; }
.install-text p[hidden] { display: none; }
.install-text strong { color: var(--text); }
.ios-share { display: inline-grid; place-items: center; vertical-align: -3px; color: var(--accent); }
.install-actions { grid-column: 2; display: flex; gap: 8px; margin-top: 8px; }
.install-actions:not(:has(:not([hidden]))) { display: none; }
.install-close {
  position: absolute; top: 6px; right: 8px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--faint); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.install-close:hover { color: var(--text); background: var(--surface-2); }
.install:has(.install-close) .install-text { padding-right: 28px; }

/* ---- Get the app page (/install) ------------------------------------------- */
/* The steps for the phone in hand (site.js picks them, the switch changes
   them), each beside a sketch of the buttons to tap, the one to tap ringed. */

.get-app-head { display: grid; justify-items: center; padding: 36px 0 28px; text-align: center; }
.get-app-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 22px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong);
}
.get-app-head h1 { max-width: 12em; margin-bottom: 10px; }
.get-app-head .lead { margin: 0; }

.get-app-computer, .get-app-note { margin-bottom: 20px; }
.get-app-note { border-color: rgba(255, 171, 74, .45); }
.get-app-note .muted { margin: 6px 0 14px; }

.get-app-switch { max-width: 300px; margin: 0 auto 20px; }

/* One phone's steps at a time: the one the switch is on. */
.get-app:has([data-install-phone][value="iphone"]:checked) [data-phone="android"],
.get-app:has([data-install-phone][value="android"]:checked) [data-phone="iphone"] { display: none; }

.how-to { display: grid; gap: 12px; }
.how-to-note { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-wash); font-size: .95rem; }

.add-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: add-step; }
.add-step { counter-increment: add-step; }
.add-step, .add-done { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) {
  .add-step, .add-done { grid-template-columns: 1fr 250px; gap: 28px; }
}

/* The words, beside the step's number (or a tick, once it's done). */
.add-step-text { position: relative; padding-left: 44px; }
.add-step-text h2 { margin-bottom: 8px; font-size: 1.3rem; line-height: 1.3; }
.add-step-text p { margin: 0; }
.add-step-text .hint { margin-top: 10px; }
.add-step .add-step-text::before, .add-done-check {
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.add-step .add-step-text::before {
  content: counter(add-step);
  display: grid;
  place-items: center;
  background: var(--glow);
  color: var(--ink);
  font: 800 1rem/1 var(--display);
}
.add-done-check { padding: 6px; background: var(--live); color: var(--bg); stroke-width: 2.8; }
.add-done {
  border-color: rgba(61, 220, 151, .35);
  background: linear-gradient(180deg, rgba(61, 220, 151, .07), transparent 70%), var(--surface);
}

/* A button named in the steps (•••, Share, ⋮), drawn like the button itself. */
.key {
  display: inline-grid;
  place-items: center;
  min-width: 1.55em;
  height: 1.55em;
  padding: 0 .3em;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--amber);
  line-height: 1;
  vertical-align: -.4em;
}
.key .icon { width: 1em; height: 1em; }

/* Sketches of the buttons to tap. Not screenshots, so they don't go out of
   date with every iPhone update. */
.mock {
  display: grid;
  align-content: end;
  gap: 8px;
  justify-self: center;
  width: 100%;
  max-width: 250px;
  padding: 14px;
  border-radius: 24px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.2;
  -webkit-user-select: none;
  user-select: none;
}
.mock .icon { width: 16px; height: 16px; }
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface-2);
}
.mock-row:empty::before { content: ""; width: 55%; height: 7px; border-radius: 4px; background: var(--line-strong); }
.mock-row:empty:nth-child(even)::before { width: 38%; }
.mock-menu {
  display: grid;
  gap: 6px;
  width: 80%;
  justify-self: end;
  margin-bottom: 4px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.mock-bar, .mock-top { display: flex; align-items: center; gap: 6px; }
.mock-top { justify-content: space-between; margin-bottom: 2px; color: var(--text); }
.mock-top strong { font-size: .74rem; white-space: nowrap; }
.mock-top .mock-round { width: 30px; height: 30px; font-size: 1rem; }
.mock-round {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 1.2rem;
}
.mock-address {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-pill { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); font-weight: 700; }
.mock-app-row { justify-content: flex-start; gap: 10px; min-height: 54px; padding: 8px 10px; color: var(--text); font-weight: 600; }
.mock-app-row img { width: 36px; height: 36px; border-radius: 9px; }
.mock-switch { position: relative; flex: none; width: 38px; height: 23px; border-radius: 999px; background: var(--live); }
.mock-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
}

/* The one to tap. */
.mock .is-tap {
  color: var(--text);
  font-weight: 700;
  background: var(--accent-wash);
  box-shadow: 0 0 0 2px var(--accent), 0 0 20px -2px rgba(255, 171, 74, .6);
}
.mock .is-tap .icon { color: var(--amber); }

/* A home screen, with the new button on it. */
.mock-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
  align-content: start;
  padding: 18px 16px 20px;
  background: radial-gradient(120% 90% at 15% 0%, #3b2b4f, #17131c 70%);
}
.mock-app { display: grid; justify-items: center; gap: 6px; }
.mock-tile, .mock-app img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 24%; }
.mock-tile { background: rgba(255, 255, 255, .1); }
.mock-app img { box-shadow: 0 0 0 2px var(--accent), 0 0 20px -2px rgba(255, 171, 74, .6); }
.mock-label { width: 70%; height: 5px; margin-top: 2px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.mock-name { font-size: .6rem; line-height: 1; color: var(--text); white-space: nowrap; }

.android-steps { display: grid; gap: 18px; }
.android-steps .hint { margin: 0; }
.plain-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: plain-step; }
.plain-steps li { position: relative; min-height: 30px; padding: 3px 0 0 44px; counter-increment: plain-step; }
.plain-steps li::before {
  content: counter(plain-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--amber);
  font: 800 .95rem/1 var(--display);
}
.done-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--live); font-weight: 700; }

.get-app-share { margin-top: 28px; }

/* Inside the installed app there's nothing to get, so links to this page go. */
@media (display-mode: standalone) {
  .only-in-browser { display: none; }
}

/* ---- Your shift tonight (bartenders, on Tonight) --------------------------- */

.my-shift {
  display: grid; gap: 6px; margin-bottom: 8px; padding: 18px 20px;
  border-color: rgba(61, 220, 151, .35);
  background: linear-gradient(180deg, rgba(61, 220, 151, .07), transparent 70%), var(--surface);
}
.my-shift p { margin: 0; }
.my-shift-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.my-shift-where { font-size: 1.15rem; }
.my-shift-special { display: flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 600; }
.my-shift-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---- Forms --------------------------------------------------------------- */

.form { display: grid; gap: 20px; margin-bottom: 16px; }
.form .card-title { margin-bottom: 0; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset[hidden] { display: none; }
legend { padding: 0; margin-bottom: 10px; font-weight: 700; }

.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .95rem; }
.optional { color: var(--faint); font-weight: 500; font-size: .85rem; margin-left: 4px; }
.hint { margin: 0; color: var(--faint); font-size: .88rem; }

.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row-pair { grid-template-columns: 1fr 1fr; gap: 12px; }   /* From / Until fit side by side even on phones */

input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  color: var(--text);
  font: 400 1rem/1.4 var(--body);   /* 16px keeps iPhones from zooming in */
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }

.field-error { margin: 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-wash);
  color: #ffd3cf;
  font-weight: 600;
}

.prefixed {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  overflow: hidden;
}
.prefixed:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.prefixed span {
  display: flex;
  flex-shrink: 0;   /* the field gives way first, so the address stays readable */
  align-items: center;
  padding: 0 4px 0 14px;
  color: var(--faint);
  white-space: nowrap;
  font-size: .95rem;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prefixed input { min-width: 0; border: 0; border-radius: 0; padding-left: 2px; background: transparent; box-shadow: none !important; }

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sign-up: guest, bartender or waitress */
.choice { display: grid; gap: 10px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card > span {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  transition: border-color .15s ease, background-color .15s ease;
}
.choice-card .icon { grid-row: span 2; width: 24px; height: 24px; margin-top: 2px; color: var(--faint); }
.choice-card small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.choice-card input:checked + span { border-color: var(--accent); background: var(--accent-wash); }
.choice-card input:checked + span .icon { color: var(--amber); }
.choice-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Post form: shift or news */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background-color .15s ease, color .15s ease;
}
.segmented input:checked + span { background: var(--glow); color: var(--ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Account: "You're a" bartender or waitress, labeled like the fields around it. */
.job-choice legend { margin-bottom: 7px; font-size: .95rem; }

.shift-fields { display: grid; gap: 20px; }

.day-chips, .venue-chips { gap: 6px; }
.day-chips .chip, .venue-chips .chip { min-height: 36px; padding: 5px 14px; font-size: .88rem; }
.venue-chips .chip { padding-left: 10px; }
.venue-chips .chip .icon { color: var(--faint); width: 1em; height: 1em; }
.chip[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--amber); }
.chip[aria-pressed="true"] .icon { color: var(--amber); }

.prefill-note {
  display: flex; align-items: flex-start; gap: 10px; margin: 0;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--live-wash); color: #c9f7e2; font-size: .9rem;
}
.prefill-note .icon { margin-top: 3px; color: var(--live); }
.prefill-note[hidden] { display: none; }

/* The special is what brings people in, so its field stands out. */
.field-special label { display: flex; align-items: center; gap: 8px; color: var(--amber); }
.field-special input { border-color: rgba(255, 171, 74, .45); background: rgba(255, 171, 74, .05); }

/* A tick box with a line about it: "Make a picture of it for Facebook", "I am 21 years of age or older". */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check > span { display: grid; gap: 2px; line-height: 1.35; }
.check strong { font-size: .95rem; }
.check small { color: var(--muted); font-size: .88rem; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.check input:focus { box-shadow: none; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sign-up, log-in and other single-card pages */
.auth { display: grid; place-items: center; padding-top: 40px; }
.auth-card { width: 100%; max-width: 440px; text-align: center; }
.auth-card .mark { margin: 0 auto 14px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .form { margin: 24px 0 0; text-align: left; }
.auth-card > .btn { margin-top: 20px; }
.auth-switch { margin: 22px 0 0; color: var(--muted); }

.switch-card { display: grid; gap: 16px; margin-bottom: 16px; }
.switch-card .muted { margin: 0; }
@media (min-width: 720px) { .switch-card { grid-template-columns: 1fr auto; align-items: center; } }

.logout { margin-top: 8px; }

/* ---- Footer and phone tab bar -------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--faint); font-size: .92rem; }
.footer-inner { display: grid; gap: 10px; }
.brand-sm .mark { width: 26px; height: 26px; }
.brand-sm .wordmark { font-size: 1.15rem; }
.footer-line { margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.footer-links a { color: var(--muted); }
.footer-fine { margin: 0; }

.tabbar { display: none; }

@media (max-width: 719px) {
  .is-signed-in .site-footer { padding-bottom: calc(var(--tabbar) + 44px + env(safe-area-inset-bottom)); }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(20, 17, 24, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    flex: 1;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 12px;
    color: var(--faint);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
  }
  .tabbar a .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--amber); }
  .tabbar .tab-post .icon {
    width: 36px;
    height: 36px;
    margin-top: -12px;
    padding: 7px;
    border-radius: 50%;
    background: var(--glow);
    color: var(--ink);
    stroke-width: 2.4;
    box-shadow: 0 6px 18px -6px rgba(255, 140, 60, .7);
  }
}

/* ---- Admin: stats -------------------------------------------------------- */

/* Chart marks: one deeper step of the brand orange. It passes the chart
   checks on the card surface (lightness band, chroma, 3:1 contrast), where
   the brighter button orange is too light. */
.admin { --chart-bar: #d9772b; --chart-bar-hover: #e8822f; --chart-track: rgba(217, 119, 43, .2); }

.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.admin-head .eyebrow { width: 100%; margin-bottom: -6px; }
.admin-head h1 { margin: 0; }

.range { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-raise); border: 1px solid var(--line); }
.range a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none; }
.range a:hover { color: var(--text); background: var(--surface); }
.range a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.tile { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile-hero, .tile:nth-child(4):last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .tile-hero, .tile:nth-child(4):last-child { grid-column: auto; } }
.tile-label { margin: 0 0 6px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.tile-value { margin: 0; font: 700 2rem/1.05 var(--body); letter-spacing: -.01em; }
.tile-hero .tile-value { font-size: 3rem; }
.tile-delta { margin: 8px 0 0; color: var(--faint); font-size: .85rem; }
.tile-delta.is-up { color: var(--live); }
.tile-delta.is-down { color: var(--danger); }

.chart-card { margin-bottom: 12px; }
.chart-card .card-title .muted { font: 500 .9rem var(--body); letter-spacing: 0; }

.chart { position: relative; margin-top: 18px; }
.chart-plot { position: relative; height: 220px; margin: 0 0 0 44px; }
.chart-grid span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.chart-grid b {
  position: absolute; right: calc(100% + 10px); top: 0; transform: translateY(-50%);
  color: var(--faint); font: 600 .75rem/1 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.chart-col {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 1px; border: 0; background: none; cursor: default; border-radius: 0;
}
.chart-bar { position: relative; width: min(24px, 100%); border-radius: 4px 4px 0 0; background: var(--chart-bar); }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { background: var(--chart-bar-hover); }
.chart-col:focus-visible { outline-offset: 0; }
.chart-peak {
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  color: var(--text); font: 700 .8rem/1 var(--body); white-space: nowrap;
}
.chart-x { display: flex; justify-content: space-between; margin: 8px 0 0 44px; color: var(--faint); font-size: .78rem; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7);
  transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap;
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-size: .95rem; }
.chart-tip span { color: var(--muted); font-size: .8rem; }

.table-view { margin-top: 18px; }
.table-view summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.table-view table { margin-top: 12px; }

.admin-grid { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 900px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd one out takes the whole row */
}

.admin table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin th {
  padding: 0 0 8px; border-bottom: 1px solid var(--line); text-align: left;
  color: var(--faint); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.admin td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin tr:last-child td { border-bottom: 0; }
.admin .num { padding-left: 12px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin td .muted { font-size: .85rem; }

.shares { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.shares li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.share-label { font-weight: 600; }
.share-value { font-variant-numeric: tabular-nums; color: var(--muted); }
.share-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--chart-track); overflow: hidden; }
.share-track span { display: block; height: 100%; border-radius: 4px; background: var(--chart-bar); }

.totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; }
@media (min-width: 720px) { .totals { grid-template-columns: repeat(4, 1fr); } }
.totals dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.totals dd { margin: 4px 0 0; font: 700 1.8rem/1.1 var(--body); }
.totals .hint { margin-top: 4px; }

.admin-note { margin-top: 16px; }

.admin-link, .link-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--text); text-decoration: none; }
.admin-link:hover, .link-card:hover { color: var(--text); border-color: var(--line-strong); }

/* ---- QR codes to print --------------------------------------------------- */

.qr-form .choice { gap: 10px; }
.qr-handle { margin: 0 0 6px; padding-left: 16px; border-left: 2px solid var(--line); }

.qr-main { display: grid; gap: 20px; justify-items: center; text-align: center; }
@media (min-width: 640px) {
  .qr-main { grid-template-columns: 240px 1fr; gap: 28px; justify-items: start; align-items: center; text-align: left; }
}

/* White whatever the theme: phones read dark squares on white best. */
.qr-code {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.qr-code svg { width: 100%; height: 100%; }

.qr-about h2 { margin-bottom: 2px; font-size: 1.35rem; }
.qr-url { margin: 0 0 10px; color: var(--amber); font-weight: 700; overflow-wrap: anywhere; }
.qr-about .muted, .qr-about .hint { margin-bottom: 12px; }
.qr-about .form-error { margin-top: 12px; }

.print-options { display: grid; gap: 12px; }
.print-option { display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-content: start; }
.print-option > :not(.print-sketch) { grid-column: 2; }
.print-sketch { grid-row: 1 / span 3; width: 52px; height: auto; }
.print-option h3 { margin: 2px 0 0; }
.print-option p { margin: 0 0 10px; font-size: .92rem; }
.print-option .btn { justify-self: start; }
@media (min-width: 760px) {
  .print-options { grid-template-columns: repeat(3, 1fr); }
  .print-option { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .print-option > :not(.print-sketch) { grid-column: 1; }
  .print-sketch { grid-row: auto; margin-bottom: 8px; }
}
.sk-paper { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.2; }
.sk-line  { fill: none; stroke: var(--faint); stroke-width: 1.2; stroke-linecap: round; }
.sk-ink   { fill: var(--amber); }

.qr-tips { margin-top: 12px; }
.tips { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; color: var(--muted); }
.tips strong { color: var(--text); }

/* The printed sheets: US Letter, laid out in inches (layout/header.php asks
   the printer for Letter with no margins). Hidden on screen. Printing the QR
   codes page (or Admin → Tap cards) prints only these, one layout at a time:
   each Print button sets data-print on .sheets first. */
.sheets { display: none; }

@media print {
  .page-qr, .page-tap-cards { display: block; min-height: 0; background: #fff; }
  .page-qr > :not(main), .page-qr main > :not(.sheets),
  .page-tap-cards > :not(main), .page-tap-cards main > :not(.sheets) { display: none !important; }
  .page-qr main, .page-tap-cards main { padding: 0; }
  .page-qr .sheets, .page-tap-cards .sheets { display: block; }
  .sheets[data-print="cards"] > :not(.sheet-cards),
  .sheets[data-print="tent"] > :not(.sheet-tent),
  .sheets[data-print="sign"] > :not(.sheet-sign) { display: none; }
}

.sheet {
  position: relative;
  width: 8.5in;
  height: 11in;
  overflow: hidden;
  break-after: page;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.25;
  -webkit-print-color-adjust: exact;   /* keep the logo's colors, which count as "background" */
  print-color-adjust: exact;
}
.sheet:last-child { break-after: auto; }
.sheet p { margin: 0; }
.sheet [data-qr] svg { width: 100%; height: 100%; }

.print-brand { display: flex; align-items: center; gap: .3em; }
/* Solid on paper: gradient-filled text can print with a hairline above it. */
.sheet .wordmark b { background: none; color: #ff9345; }
.print-kicker { color: #b4531c; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.print-kicker.has-icon { display: flex; align-items: center; gap: .4em; }   /* tap cards: the contactless waves */
.print-kicker .icon { width: 1.5em; height: 1.5em; stroke-width: 2.2; }
.print-title { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.print-line { color: #4d4239; }
.print-url { font-weight: 700; overflow-wrap: anywhere; }

/* Business cards: ten of 3.5 × 2 in, laid out like Avery 8371 sheets
   (0.5 in top and bottom, 0.75 in each side). The grey lines are for cutting. */
.sheet-cards {
  display: grid;
  grid-template-columns: repeat(2, 3.5in);
  grid-template-rows: repeat(5, 2in);
  place-content: center;
}
.pcard {
  display: grid;
  grid-template-columns: 1.38in 1fr;
  gap: .12in;
  align-items: center;
  padding: .14in .18in .14in .1in;
  border: 0 solid #d8d0c4;
  border-width: 0 .5pt .5pt 0;
  overflow: hidden;
}
.pcard:nth-child(odd) { border-left-width: .5pt; }
.pcard:nth-child(-n+2) { border-top-width: .5pt; }
.pcard-code { width: 1.38in; height: 1.38in; }
.pcard-text { min-width: 0; }
.pcard .print-brand { margin-bottom: .1in; }
.pcard .print-brand .mark { width: .2in; height: .2in; }
.pcard .print-brand .wordmark { font-size: 10pt; }
.pcard .print-kicker { margin-bottom: .03in; font-size: 6pt; }
.pcard .print-title { margin-bottom: .05in; font-size: 15pt; }
.pcard .print-title.is-long { font-size: 11pt; line-height: 1.05; }
.pcard .print-line { margin-bottom: .05in; font-size: 7.5pt; line-height: 1.3; }
.pcard .print-url { font-size: 6.5pt; }

/* Table tent: the same card twice, back to back. Fold across the middle and
   stand it up; the top copy, printed upside down, faces the other way. */
.sheet-tent { display: grid; grid-template-rows: 5.5in 5.5in; }
.tent-face {
  display: grid;
  grid-template-columns: 3.5in 1fr;
  gap: .4in;
  align-items: center;
  padding: .5in .55in;
}
.tent-face.is-flipped { transform: rotate(180deg); }
.tent-code { width: 3.5in; height: 3.5in; }
.tent-text { min-width: 0; }
.tent-face .print-kicker { margin-bottom: .08in; font-size: 11pt; }
.tent-face .print-title { margin-bottom: .14in; font-size: 32pt; }
.tent-face .print-title.is-long { font-size: 24pt; line-height: 1.05; }
.tent-face .print-title.is-sentence { font-size: 22pt; line-height: 1.08; }
.tent-face .print-line { margin-bottom: .24in; font-size: 12pt; line-height: 1.35; }
.tent-face .print-brand { margin-bottom: .05in; }
.tent-face .print-brand .mark { width: .32in; height: .32in; }
.tent-face .print-brand .wordmark { font-size: 18pt; }
.tent-face .print-url { font-size: 10.5pt; }
.tent-fold {
  position: absolute;
  top: 5.5in;
  left: .35in;
  right: .35in;
  border-top: .75pt dashed #bfb5a8;
  text-align: center;
}
.tent-fold span {
  position: relative;
  top: -.6em;
  padding: 0 .1in;
  background: #fff;
  color: #9a8f83;
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Sign: one big code on a page. */
.sheet-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .6in .8in;
  text-align: center;
}
.sheet-sign .print-brand { margin-bottom: .3in; }
.sheet-sign .print-brand .mark { width: .5in; height: .5in; }
.sheet-sign .print-brand .wordmark { font-size: 27pt; }
.sheet-sign .print-kicker { margin-bottom: .08in; font-size: 14pt; }
.sheet-sign .print-title { max-width: 6.6in; margin-bottom: .3in; font-size: 50pt; }
.sheet-sign .print-title.is-long { font-size: 38pt; }
.sheet-sign .print-title.is-sentence { font-size: 34pt; line-height: 1.05; }
.sign-code { width: 4.6in; height: 4.6in; margin-bottom: .3in; }
.sheet-sign .print-line { max-width: 5.6in; margin-bottom: .1in; font-size: 15pt; line-height: 1.35; }
.sheet-sign .print-url { font-size: 14pt; }

/* ---- Pictures for Facebook ----------------------------------------------- */

.picture-result { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 760px) {
  .picture-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
}

.picture-side { display: grid; gap: 10px; }

/* The finished picture's shape. The plain painting is cut to the same shape
   (object-position matches picture.js), so nothing jumps when the words go on. */
.picture-frame {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.picture-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.picture-tries { display: flex; flex-wrap: wrap; gap: 8px; }
.picture-tries a {
  width: 56px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 10px;
}
.picture-tries a:hover { border-color: var(--line-strong); }
.picture-tries a[aria-current="true"] { border-color: var(--accent); }
.picture-tries img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.picture-share { display: grid; gap: 16px; align-content: start; }
.picture-share .card-title, .picture-share .hint { margin: 0; }
.picture-share .form-actions:not(:has(:not([hidden]))) { display: none; }
.picture-share textarea { min-height: 176px; }

.picture-how { display: grid; gap: 6px; margin: 0; padding-left: 1.3em; color: var(--muted); }
.picture-how strong { color: var(--text); }

.picture-note {
  display: flex; align-items: flex-start; gap: 10px; margin: 0;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--live-wash); color: #c9f7e2; font-size: .92rem; font-weight: 600;
}
.picture-note .icon { margin-top: 2px; color: var(--live); }

.caption-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.caption-head label { font-weight: 700; font-size: .95rem; }

.picture-form legend { font-size: .95rem; }

.looks { display: grid; gap: 8px; }
@media (min-width: 560px) { .looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.looks .choice-card > span { column-gap: 12px; padding: 11px 14px; }
.look-swatch {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.look-moody   { background: radial-gradient(circle at 35% 30%, #ffc56b, #8a4a1c 45%, #1e110a 80%); }
.look-bright  { background: radial-gradient(circle at 35% 30%, #fffbe0, #9fe0cf 45%, #2f8f7a 85%); }
.look-neon    { background: radial-gradient(circle at 35% 30%, #6ff5e6, #4d3fe0 50%, #150d33 85%); }
.look-classic { background: linear-gradient(140deg, #f4f1ec, #8f8b86 45%, #121212 80%); }

/* ---- Bar pages and tap cards --------------------------------------------- */

/* A bar's page (views/bar.php): the badge stands where a bartender's initials would. */
.bar-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--glow);
  color: var(--ink);
}
.bar-badge .icon { width: 42px; height: 42px; stroke-width: 1.7; }

.bar-report { margin-top: 12px; }
.bar-report .totals { margin: 16px 0; }

/* Admin → Tap cards (views/tap-cards.php) */
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.tapcards .card { margin-bottom: 12px; }
.back-link { margin: 24px 0 -12px; font-weight: 600; }
.back-link a::before { content: "\2190\00a0"; }
.notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  color: var(--amber);
  font-weight: 600;
}

.make-cards { display: grid; grid-template-columns: 110px 1fr; gap: 12px 14px; align-items: end; margin: 8px 0 20px; }
.make-cards .btn, .make-cards .hint { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) {
  .make-cards { grid-template-columns: 110px 1fr auto; }
  .make-cards .btn { grid-column: auto; }
}

.tapcard-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tapcard {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
}
.tapcard.is-off { opacity: .65; }
.tapcard.is-written { border-color: rgba(61, 220, 151, .55); }
.tapcard p { margin: 0; }
.tapcard-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* The card's link: readable and copyable, without looking like a field to fill in. */
.tapcard .tapcard-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--amber);
  font-size: .9rem;
  text-overflow: ellipsis;
}
.tapcard .tapcard-link:focus { box-shadow: none; }
.tapcard-numbers { color: var(--faint); font-size: .85rem; }
.tapcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tapcard-actions form, .tapcard-more form { margin: 0; }
.tapcard-more summary { color: var(--accent); font-size: .88rem; font-weight: 600; cursor: pointer; }
.tapcard-more form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tapcard-more input, .tapcard-more select { flex: 1 1 180px; width: auto; min-height: 40px; padding: 7px 12px; }

.nfc-help { margin-top: 16px; }
.nfc-help p { color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .92rem; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }

/* ---- Your followers, and blocking (views/followers.php) ------------------ */

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.person-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.person-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-text a { color: var(--text); text-decoration: none; }
.person-text a:hover { color: var(--text); text-decoration: underline; }
.person-text small { color: var(--faint); font-size: .85rem; }
.person form { margin: 0; }
.person.is-blocked .avatar { filter: grayscale(1); opacity: .5; }
.people-more { margin-top: 12px; }

.blocking-help { margin-top: 36px; }
.blocking-help .card-title { margin-bottom: 14px; }
.blocking-help .card-title .icon { color: var(--danger); }

/* Block, at the foot of another bartender's page: there if needed, out of the way. */
.page-foot { margin: 36px 0 0; text-align: center; }

/* ---- Motion -------------------------------------------------------------- */

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