/* Cornerstone Stores Portal — component vocabulary
   Mobile-first. Semantic class names. CSS variables only.
*/

/* ——— Page chrome ——— */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top header — sticky forrest bar with centred wordmark, hamburger, view-as */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--forrest);
  color: var(--fg-on-dark);
  border-bottom: 1px solid rgba(252,250,241,0.08);
}
.topbar__inner {
  height: var(--header-h);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}
.topbar__hamburger,
.topbar__util {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-on-dark);
  cursor: pointer;
}
.topbar__hamburger:hover,
.topbar__util:hover { opacity: 0.7; }
.topbar__wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--fg-on-dark);
  text-decoration: none;
}
.topbar__wordmark::after {
  content: "";
  display: block;
  height: 1px;
  width: 28px;
  background: var(--fg-on-dark);
  opacity: 0.4;
  margin: 2px auto 0;
}

/* Section header — editorial section title with eyebrow */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: 0 0 var(--s-5);
}
.section-head__eyebrow { color: var(--fg3); }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}
.section-head__lede {
  font-size: var(--fs-body);
  color: var(--fg2);
  max-width: 56ch;
}
.section-head__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-sub);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--radius-1);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  min-height: 44px;
  line-height: 1;
}
.btn:hover { opacity: 1; }
.btn--primary {
  background: var(--forrest);
  color: var(--flaxen);
  border-color: var(--forrest);
}
.btn--primary:hover { background: var(--forrest-deep); border-color: var(--forrest-deep); }
.btn--ghost {
  background: transparent;
  color: var(--forrest);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { border-color: var(--forrest); }
.btn--quiet {
  background: transparent;
  color: var(--forrest);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--quiet:hover { color: var(--forrest-deep); text-decoration: underline; text-underline-offset: 4px; }
.btn--accent {
  background: var(--brick);
  color: var(--flaxen);
  border-color: var(--brick);
}
.btn--accent:hover { background: var(--brick-deep); border-color: var(--brick-deep); }
.btn--danger {
  background: transparent;
  color: var(--brick);
  border-color: var(--brick);
}
.btn--danger:hover { background: var(--brick); color: var(--flaxen); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 32px; padding: 6px 12px; font-size: 11px; }
.btn--lg { min-height: 52px; padding: 16px 28px; font-size: 14px; }

/* Icon-only button (e.g. drawer close) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-1);
}
.icon-btn:hover { background: var(--flaxen-warm); }

/* ——— Cards & blocks ——— */

.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-5);
}
.card--quiet { background: transparent; }
.card--dark {
  background: var(--forrest);
  color: var(--fg-on-dark);
  border-color: var(--forrest);
}
.card--dark .eyebrow,
.card--dark h2,
.card--dark h3 { color: var(--fg-on-dark); }
.card--dark .meta { color: rgba(252,250,241,0.6); }

.block { padding: var(--s-6) 0; }
.block + .block { border-top: 1px solid var(--hairline); }
.block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.block__title {
  font-family: var(--font-body);
  font-size: var(--fs-sub);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
}

/* ——— List rows (queues, events, board, directory) ——— */

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3) var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.list__date {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--fg3);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  min-width: 64px;
  padding-top: 2px;
}
.list__date strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--fg1);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}
.list__body { min-width: 0; }
.list__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--fg1);
  line-height: 1.3;
  margin: 0 0 var(--s-1);
}
.list__title a { text-decoration: none; color: inherit; }
.list__title a:hover { color: var(--forrest-tint); }
.list__meta {
  color: var(--fg3);
  font-size: var(--fs-small);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.list__meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg3);
  margin-right: var(--s-3);
  vertical-align: middle;
  opacity: 0.6;
}
.list__aside {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* ——— Badges ——— */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--flaxen-warm);
  color: var(--fg2);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.badge--forrest { background: var(--forrest); color: var(--flaxen); border-color: var(--forrest); }
.badge--brick { background: transparent; color: var(--brick); border-color: var(--brick); }
.badge--sand { background: var(--sand); color: var(--forrest-deep); border-color: transparent; }
.badge--ghost { background: transparent; color: var(--fg3); border-color: var(--hairline); }

/* Status badges — soft washes, dark ink, leading dot for at-a-glance scanning.
   Use these for queue/post statuses (Approved, Needs attention, Scheduled, etc).
   The brand badges above remain for editorial accents. */
.badge--status {
  padding: 5px 10px 5px 8px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border-width: 1px;
  border-style: solid;
}
.badge--status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex: 0 0 7px;
  opacity: 0.85;
}
.badge--success {
  background: var(--status-success-tint);
  color: var(--status-success-ink);
  border-color: var(--status-success-edge);
}
.badge--warning {
  background: var(--status-warning-tint);
  color: var(--status-warning-ink);
  border-color: var(--status-warning-edge);
}
.badge--danger {
  background: var(--status-danger-tint);
  color: var(--status-danger-ink);
  border-color: var(--status-danger-edge);
}
.badge--info {
  background: var(--status-info-tint);
  color: var(--status-info-ink);
  border-color: var(--status-info-edge);
}
.badge--neutral {
  background: var(--status-neutral-tint);
  color: var(--status-neutral-ink);
  border-color: var(--status-neutral-edge);
}
/* Count chip — for "3 pending" style notifications. Stronger ink, no dot. */
.badge--count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.badge--count::before { display: none; }

.badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ——— Eyebrow & meta ——— */
.eyebrow { color: var(--fg3); display: inline-block; }
.eyebrow--accent { color: var(--brick); }

/* ——— Form fields ——— */

.field { display: block; margin-bottom: var(--s-5); }
.field__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: var(--s-2);
}
.field__hint { font-size: var(--fs-small); color: var(--fg3); margin-top: var(--s-2); }
.field__error { font-size: var(--fs-small); color: var(--brick); margin-top: var(--s-2); }

.input,
.textarea,
.select {
  width: 100%;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: 12px var(--s-3);
  min-height: 44px;
  transition: border-color 120ms ease, background 120ms ease;
}
.textarea { min-height: 120px; resize: vertical; padding-top: 12px; line-height: 1.5; }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--forrest);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0,70,69,0.10);
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg2) 50%),
                    linear-gradient(135deg, var(--fg2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field__row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.field__row .field { flex: 1; min-width: 140px; }

/* Toggle/checkbox row */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--hairline);
}
.check:last-of-type { border-bottom: 0; }
.check input { margin-top: 4px; }
.check__label { font-size: var(--fs-body); color: var(--ink); }
.check__hint { display: block; font-size: var(--fs-small); color: var(--fg3); margin-top: 2px; }

/* Segmented control / tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: var(--s-5);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  padding: 14px var(--s-4) 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.tabs__item:hover { color: var(--fg1); }
.tabs__item--active { color: var(--fg1); border-bottom-color: var(--forrest); }
.tabs__count {
  font-size: 11px;
  background: var(--flaxen-warm);
  color: var(--fg2);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0;
  font-weight: 600;
  border: 1px solid var(--hairline);
}
.tabs__item--active .tabs__count { background: var(--forrest); color: var(--flaxen); border-color: var(--forrest); }

/* ——— Empty state ——— */

.empty {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-1);
}
.empty__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--fg1);
  margin-bottom: var(--s-3);
  line-height: 1.1;
}
.empty__body { color: var(--fg3); max-width: 36ch; margin: 0 auto var(--s-4); font-size: var(--fs-small); }

/* ——— Toast / inline confirmation ——— */
.toast {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--forrest);
  color: var(--fg-on-dark);
  font-size: var(--fs-small);
  border-radius: var(--radius-1);
}
.toast__bar {
  width: 3px;
  align-self: stretch;
  background: var(--flaxen);
  opacity: 0.5;
}
.toast--inline {
  background: var(--flaxen-warm);
  color: var(--forrest);
  border: 1px solid var(--hairline);
}
.toast--inline .toast__bar { background: var(--forrest); opacity: 1; }

/* ——— Calendar cells ——— */

.cal {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: var(--bg-card);
}
.cal__dow,
.cal__day {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-2);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--fg2);
}
.cal__dow {
  min-height: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  padding: var(--s-2) var(--s-3);
  background: var(--flaxen-warm);
}
.cal__day--out { background: var(--flaxen-warm); color: var(--fg3); }
.cal__day--today .cal__num {
  background: var(--forrest);
  color: var(--flaxen);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.cal__num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg1);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
.cal__day--out .cal__num { color: var(--fg3); }
.cal__event {
  font-size: 11px;
  line-height: 1.3;
  padding: 3px 6px;
  background: var(--flaxen-warm);
  border-left: 2px solid var(--forrest);
  color: var(--fg1);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal__event--brick { border-left-color: var(--brick); }
.cal__event--sand  { border-left-color: var(--sand); background: var(--flaxen-cool); }
.cal__event--concrete { border-left-color: var(--concrete); color: var(--fg2); }
.cal__more { font-size: 10px; color: var(--fg3); padding-left: 6px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ——— Queue row (admin approval) ——— */
.qrow {
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-4) 0;
}
.qrow__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  align-items: center;
}
.qrow__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brick);
  padding-right: var(--s-3);
  border-right: 1px solid var(--hairline);
  min-width: 84px;
}
.qrow__title { font-size: 16px; font-weight: 500; color: var(--fg1); margin: 0 0 2px; line-height: 1.3; }
.qrow__meta { font-size: var(--fs-small); color: var(--fg3); }
.qrow__actions { display: flex; gap: var(--s-2); }
.qrow__expand {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--flaxen-warm);
  border-radius: var(--radius-1);
  border: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) {
  .qrow__expand { grid-template-columns: 1fr 1fr; }
}
.qrow__preview {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  padding: var(--s-4);
  border-radius: var(--radius-1);
  font-size: var(--fs-small);
  color: var(--fg2);
}
.qrow__previewlabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: var(--s-2);
}

/* ——— Drawer (mobile nav) — light, structured, with collapsible groups ——— */
.drawer {
  background: var(--bg);
  color: var(--fg1);
  padding: 0;
  font-family: var(--font-body);
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.drawer__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--forrest);
  text-decoration: none;
  line-height: 1;
}
.drawer__close {
  background: transparent;
  border: 0;
  color: var(--forrest);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawer__close:hover { opacity: 0.7; }
.drawer__profile {
  background: var(--flaxen-warm);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.drawer__profile-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--forrest);
  margin: 0 0 2px;
}
.drawer__profile-meta {
  font-size: 13px;
  color: var(--fg3);
  margin: 0;
}
.drawer__section {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}
.drawer__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  padding: var(--s-4) var(--s-5) var(--s-2);
  margin: 0;
}
.drawer__link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--forrest);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  border-left: 3px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}
.drawer__link:last-child { border-bottom: 0; }
.drawer__link:hover { background: var(--flaxen-warm); opacity: 1; }
.drawer__link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.drawer__link--active {
  border-left-color: var(--forrest);
  background: var(--flaxen-warm);
}
.drawer__link--accent {
  /* "Save as app" — a soft brand callout */
  color: var(--forrest);
}
.drawer__link--accent .drawer__icon-chip {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-1);
  background: var(--forrest);
  color: var(--flaxen);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}
.drawer__link--accent .drawer__icon-chip svg { width: 16px; height: 16px; stroke: var(--flaxen); }

/* Collapsible section (uses <details><summary>) */
.drawer__group { border-bottom: 1px solid var(--hairline); }
.drawer__group[open] { background: var(--flaxen-warm); }
.drawer__group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--forrest);
}
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 180ms ease;
}
.drawer__group[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.drawer__group > summary:hover { color: var(--forrest-deep); }
.drawer__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s-3);
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}
.drawer__group:not([open]) .drawer__sublist { display: none; }
.drawer__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--s-5) 12px calc(var(--s-5) + var(--s-5));
  color: var(--forrest);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--hairline-soft);
}
.drawer__sublink:last-child { border-bottom: 0; }
.drawer__sublink:hover { background: var(--flaxen-cool); opacity: 1; }
.drawer__sublink .badge { margin-left: var(--s-2); }

.drawer__foot {
  padding: var(--s-5);
}

/* ——— Bottom tab bar (mobile) ——— */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--forrest);
  color: var(--fg-on-dark);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(252,250,241,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -6px 18px rgba(0,52,51,0.18);
}
.tabbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px 12px;
  min-height: 64px;
  color: rgba(252,250,241,0.65);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 120ms ease;
}
.tabbar__item:hover { color: var(--flaxen); opacity: 1; }
.tabbar__item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar__item--active { color: var(--flaxen); }
.tabbar__item--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--flaxen);
}
.tabbar__item--ask { /* the AI ask button — softly distinguished */
  color: var(--sand);
}
.tabbar__item--ask:hover,
.tabbar__item--ask.tabbar__item--active { color: var(--flaxen); }
.tabbar__item--ask::after {
  content: "";
  position: absolute;
  top: 12px;
  right: calc(50% - 18px);
  width: 6px;
  height: 6px;
  background: var(--brick-tint);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--forrest);
}
/* Body offset so tab bar doesn't cover content on mobile */
@media (max-width: 720px) {
  .has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
}
@media (min-width: 721px) {
  .tabbar { display: none; }
}

/* ——— Site footer ——— */
.sitefoot {
  background: var(--forrest);
  color: var(--flaxen);
  padding: var(--s-7) var(--gutter) var(--s-6);
  text-align: center;
  margin-top: var(--s-8);
}
.sitefoot__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: center;
}
.sitefoot__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--flaxen);
}
.sitefoot__rule {
  width: 28px;
  height: 1px;
  background: rgba(252,250,241,0.35);
  margin: 0;
}
.sitefoot__cats {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--flaxen);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
}
.sitefoot__cats span {
  display: inline-flex;
  align-items: center;
}
.sitefoot__cats span + span::before {
  content: "·";
  margin-right: var(--s-3);
  opacity: 0.5;
}
.sitefoot__social {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(252,250,241,0.7);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
}
.sitefoot__social a { color: inherit; text-decoration: none; }
.sitefoot__social a:hover { color: var(--flaxen); opacity: 1; }
.sitefoot__social span + span::before {
  content: "·";
  margin-right: var(--s-3);
  opacity: 0.5;
}
.sitefoot__support {
  font-size: 13px;
  color: rgba(252,250,241,0.7);
  font-style: italic;
  font-family: var(--font-display);
  margin-top: var(--s-2);
}
.sitefoot__support a {
  color: var(--flaxen);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ——— Drawer mount — overlay container that hosts .drawer ——— */
.drawer-mount {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.drawer-mount--open { pointer-events: auto; visibility: visible; }
.drawer-mount__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 52, 51, 0.4);
  opacity: 0;
  transition: opacity 240ms ease;
}
.drawer-mount--open .drawer-mount__backdrop { opacity: 1; }
.drawer-mount__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 88vw;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 70, 69, 0.18);
  -webkit-overflow-scrolling: touch;
}
.drawer-mount--open .drawer-mount__panel { transform: translateX(0); }

/* ============================================================
   STAFF LAYER — back-of-house ops surface
   Tablet-first. Same brand skin, distinct chrome (name-chip bar
   sticky at top). Big tap targets. No modals.
   ============================================================ */

/* Name chip bar — sticky "who's on shift" picker */
.namebar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.namebar__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-3) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.namebar__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  flex: 0 0 auto;
  white-space: nowrap;
}
.namebar__scroll {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 4px 0;
}
.namebar__scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--forrest);
  border: 1px solid var(--hairline-strong);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
  min-height: 36px;
}
.chip:hover { background: var(--flaxen-warm); }
.chip--active {
  background: var(--forrest);
  color: var(--flaxen);
  border-color: var(--forrest);
  font-weight: 600;
}
.chip--add {
  color: var(--fg3);
  border-style: dashed;
}
.chip--add:hover { color: var(--forrest); border-color: var(--forrest); border-style: solid; }

/* Greeting hero — softer than .next, place-rooted */
.greet {
  padding: var(--s-7) 0 var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.greet__eyebrow { color: var(--fg3); display: block; margin-bottom: var(--s-3); }
.greet__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
  margin: 0 0 var(--s-3);
  text-wrap: pretty;
}
.greet__lede {
  font-size: var(--fs-body);
  color: var(--fg2);
  max-width: 56ch;
  margin: 0;
}

/* Quick-action tiles — 2×2 grid on tablet, single column on mobile */
.actiongrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 640px) {
  .actiongrid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .actiongrid { grid-template-columns: repeat(4, 1fr); }
}
.action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-5);
  min-height: 140px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  text-decoration: none;
  color: var(--fg1);
  transition: background 120ms, border-color 120ms;
}
.action:hover { background: var(--flaxen-warm); border-color: var(--hairline-strong); opacity: 1; }
.action svg {
  width: 28px;
  height: 28px;
  stroke: var(--forrest);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: var(--fg1);
}
.action__meta {
  font-size: 13px;
  color: var(--fg3);
  margin-top: auto;
}

/* Template prefill button row — sits above textareas */
.templates {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.template-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  color: var(--forrest);
  border-radius: var(--radius-1);
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.template-btn:hover { background: var(--flaxen-cool); border-color: var(--hairline-strong); }
.template-btn__bullet {
  width: 4px;
  height: 4px;
  background: var(--forrest);
  border-radius: 50%;
  display: inline-block;
}

/* Tickable checklist — big tap targets, single-tap to tick */
.tickable {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.tickable__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: 1px solid var(--hairline);
  min-height: 56px;
  cursor: pointer;
  transition: background 120ms ease;
}
.tickable__item:hover { background: var(--flaxen-warm); }
.tickable__check {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--radius-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: background 120ms, border-color 120ms;
  background: var(--bg-card);
}
.tickable__check svg {
  width: 18px;
  height: 18px;
  opacity: 0;
  stroke: var(--flaxen);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 120ms;
}
.tickable__item--done .tickable__check {
  background: var(--forrest);
  border-color: var(--forrest);
}
.tickable__item--done .tickable__check svg { opacity: 1; }
.tickable__item--done .tickable__label { color: var(--fg3); text-decoration: line-through; text-decoration-thickness: 1px; }
.tickable__label {
  font-size: 16px;
  color: var(--fg1);
  line-height: 1.4;
}
.tickable__by {
  font-size: 12px;
  color: var(--fg3);
  letter-spacing: 0.04em;
  text-align: right;
  font-style: italic;
  font-family: var(--font-display);
}
.tickable__item--done .tickable__by { color: var(--forrest-tint); font-style: normal; font-family: var(--font-body); font-weight: 500; }

/* Log feed row — daily log entries, larger and warmer than list rows */
.logfeed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.logfeed__group {
  margin-top: var(--s-5);
}
.logfeed__group:first-child { margin-top: 0; }
.logfeed__daylabel {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--fg2);
  margin: 0 0 var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--hairline);
}
.logentry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: start;
}
.logentry__time {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
}
.logentry__time strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--fg1);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  margin-bottom: 2px;
}
.logentry__kind {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: var(--s-2);
  padding: 2px 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
}
.logentry__kind--open { color: var(--status-success-ink); background: var(--status-success-tint); border-color: var(--status-success-edge); }
.logentry__kind--close { color: var(--status-info-ink); background: var(--status-info-tint); border-color: var(--status-info-edge); }
.logentry__kind--handover { color: var(--status-warning-ink); background: var(--status-warning-tint); border-color: var(--status-warning-edge); }
.logentry__kind--note { color: var(--status-neutral-ink); background: var(--status-neutral-tint); border-color: var(--status-neutral-edge); }
.logentry__body { font-size: 15px; line-height: 1.55; color: var(--ink); }
.logentry__body p { margin: 0 0 var(--s-2); }
.logentry__by {
  font-size: 13px;
  color: var(--fg3);
  margin-top: var(--s-2);
  font-style: italic;
  font-family: var(--font-display);
}
.logentry__photo {
  margin-top: var(--s-3);
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  width: 120px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
}

/* Sync pill — sits below namebar, shows pending offline entries */
.syncpill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  background: var(--status-warning-tint);
  color: var(--status-warning-ink);
  border: 1px solid var(--status-warning-edge);
  border-radius: var(--radius-pill);
}
.syncpill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: syncpulse 1.6s ease-in-out infinite;
}
@keyframes syncpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.syncpill--synced {
  background: var(--status-success-tint);
  color: var(--status-success-ink);
  border-color: var(--status-success-edge);
}
.syncpill--synced .syncpill__dot { animation: none; }

/* "Names manager" admin row — used in /settings/staff-names */
.nameadmin {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.nameadmin__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.nameadmin__name { font-size: 16px; color: var(--fg1); font-weight: 500; }
.nameadmin__name--inactive { color: var(--fg3); text-decoration: line-through; text-decoration-thickness: 1px; }
.nameadmin__meta { font-size: 12px; color: var(--fg3); letter-spacing: 0.04em; }

/* ——— Toggle switch (iOS-style, on-brand) ——— */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--hairline-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease;
}
.toggle__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--flaxen);
  border-radius: 50%;
  transition: transform 160ms ease;
  box-shadow: var(--shadow-1);
}
.toggle input:checked + .toggle__slider { background: var(--forrest); }
.toggle input:checked + .toggle__slider::before { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__slider { box-shadow: 0 0 0 3px rgba(0,70,69,0.18); }

/* Settings row — label/desc on left, control on right */
.setrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.setrow:last-child { border-bottom: 0; }
.setrow__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg1);
  margin: 0 0 2px;
}
.setrow__desc {
  font-size: 13px;
  color: var(--fg3);
  margin: 0;
  max-width: 56ch;
  line-height: 1.5;
}
.setrow__meta {
  font-size: 12px;
  color: var(--fg3);
  font-style: italic;
  font-family: var(--font-display);
  margin-top: 4px;
  display: block;
}

/* Settings block — grouped section with editorial heading */
.setblock {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
.setblock:first-of-type { border-top: 0; padding-top: 0; margin-top: var(--s-6); }
.setblock__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
@media (min-width: 720px) {
  .setblock__head { grid-template-columns: 240px 1fr; gap: var(--s-6); }
}
.setblock__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
}
.setblock__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--fg1);
  margin: 0;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}
.setblock__lede {
  font-size: 14px;
  color: var(--fg2);
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
}

/* Accent color picker — preset swatches + custom <input type="color"> */
.accentpick {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
}
.accent-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--hairline-strong);
  cursor: pointer;
  position: relative;
  transition: transform 120ms ease, box-shadow 120ms ease;
  flex: 0 0 44px;
}
.accent-swatch:hover { transform: scale(1.08); }
.accent-swatch--active {
  box-shadow: 0 0 0 2px var(--forrest), 0 0 0 4px var(--bg);
}
.accent-swatch--active::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--flaxen);
  border-radius: 50%;
  opacity: 0.85;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5 9-10'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5 9-10'/></svg>") center/contain no-repeat;
  background: var(--flaxen);
}
.accent-custom {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 4px 14px 4px 4px;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}
.accent-custom input[type="color"] {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.accent-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.accent-custom input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.accent-custom__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg2);
}

/* Brand preview pane — shows accent applied to a chip + action tile */
.brandpreview {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-5);
  margin-top: var(--s-4);
  display: grid;
  gap: var(--s-4);
}
.brandpreview__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  margin: 0;
}

/* Notification matrix — event row with two toggle columns */
.notifrow {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.notifrow--head {
  border-bottom: 1px solid var(--hairline-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  padding-bottom: var(--s-2);
}
.notifrow__title { font-size: 15px; color: var(--fg1); }
.notifrow__desc { font-size: 12px; color: var(--fg3); margin-top: 2px; }
.notifrow__cell { text-align: center; }

/* Test-fire button — quietly distinguished from primary */
.testbtn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 6px 12px;
  background: transparent;
  color: var(--forrest);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-1);
  cursor: pointer;
  min-height: 32px;
}
.testbtn:hover { background: var(--flaxen-warm); border-color: var(--forrest); }

/* Stepper — for numeric prefs like variance threshold */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-1);
  background: var(--bg-card);
}
.stepper__btn {
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: var(--forrest);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stepper__btn:hover { background: var(--flaxen-warm); }
.stepper__value {
  min-width: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--fg1);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  padding: 0 var(--s-3);
  line-height: 36px;
}

/* Danger zone — flagged with brick */
.danger {
  border: 1px solid rgba(126,78,44,0.3);
  background: rgba(126,78,44,0.04);
  padding: var(--s-5);
  border-radius: var(--radius-1);
  margin-top: var(--s-6);
}
.danger__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brick);
  margin: 0 0 var(--s-2);
  font-style: italic;
}
.danger .setrow { border-color: rgba(126,78,44,0.18); }
.danger .setrow:last-child { border-bottom: 0; }

/* ============================================================
   STAFF WAITLIST — customer SMS notify list
   ============================================================ */

/* Stats strip — small inline counters above the feed */
.wlstrip {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin: var(--s-5) 0;
  padding: var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
}
.wlstrip__cell { min-width: 110px; }
.wlstrip__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 4px;
}
.wlstrip__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--fg1);
}
.wlstrip__delta { font-size: 11px; color: var(--fg3); margin-top: 2px; }

/* Add-to-waitlist composer — inline, expandable */
.wladd {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
}
.wladd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.wladd__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--fg1);
  margin: 0;
}
.wladd__body {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  margin-top: var(--s-4);
}
@media (min-width: 720px) {
  .wladd__body { grid-template-columns: 1fr 1fr 2fr auto; align-items: end; }
}
.wladd .field { margin: 0; }

/* Waitlist row — list row with status, customer, item, action */
.wlfeed {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.wlrow {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-card);
}
.wlrow:hover { background: var(--flaxen-warm); }
.wlrow--expanded { background: var(--flaxen-warm); }
.wlrow__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3) var(--s-4);
  align-items: center;
  padding: var(--s-4);
}
@media (min-width: 720px) {
  .wlrow__main {
    grid-template-columns: 110px 1fr auto auto;
    gap: var(--s-4) var(--s-5);
  }
}
.wlrow__customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wlrow__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg1);
  margin: 0;
  line-height: 1.3;
}
.wlrow__mobile {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
  letter-spacing: 0;
}
.wlrow__item {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.4;
  font-style: italic;
  font-family: var(--font-display);
}
.wlrow__waiting {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg3);
  font-style: italic;
  text-align: right;
  white-space: nowrap;
}
.wlrow__waiting strong {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-style: normal;
  color: var(--fg1);
  display: block;
}
.wlrow__waiting--old { color: var(--brick); }
.wlrow__waiting--old strong { color: var(--brick); }
.wlrow__actions { display: flex; gap: var(--s-2); align-items: center; }

/* Expanded notify confirm — SMS preview bubble + two buttons */
.wlrow__confirm {
  padding: var(--s-5);
  border-top: 1px solid var(--hairline);
  background: var(--flaxen-cool);
}
.wlrow__confirm-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: var(--s-3);
}

/* SMS bubble — phone chat style */
.smsbubble {
  display: inline-block;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  padding: var(--s-3) var(--s-4);
  border-radius: 18px 18px 18px 4px;
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.smsbubble__from {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg3);
  display: block;
  margin-bottom: 4px;
}
.smsbubble__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg3);
  margin-left: var(--s-2);
  vertical-align: middle;
}

.wlrow__confirm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-4);
  gap: var(--s-3);
  flex-wrap: wrap;
}
.wlrow__confirm-cost {
  font-size: 12px;
  color: var(--fg3);
  font-style: italic;
  font-family: var(--font-display);
}

/* Receipt line — shows under a recently-notified row */
.wlrow__receipt {
  padding: var(--s-3) var(--s-4);
  font-size: 12px;
  color: var(--status-success-ink);
  background: var(--status-success-tint);
  border-top: 1px solid var(--status-success-edge);
  border-bottom: 1px solid var(--status-success-edge);
  font-family: var(--font-body);
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

/* Kill-switch / quiet-hours banner */
.smsbanner {
  background: var(--status-info-tint);
  border: 1px solid var(--status-info-edge);
  color: var(--status-info-ink);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-1);
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.smsbanner svg { flex: 0 0 18px; margin-top: 2px; }
.smsbanner strong { display: block; font-size: 13px; margin-bottom: 2px; }
.smsbanner p { font-size: 13px; margin: 0; color: var(--status-info-ink); opacity: 0.9; line-height: 1.5; }
.smsbanner--warning {
  background: var(--status-warning-tint);
  border-color: var(--status-warning-edge);
  color: var(--status-warning-ink);
}
.smsbanner--warning p { color: var(--status-warning-ink); }

/* SMS log table */
.smstable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
}
.smstable th, .smstable td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.smstable th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  background: var(--flaxen-warm);
}
.smstable tr:last-child td { border-bottom: 0; }
.smstable__cost { font-family: var(--font-mono); font-size: 12px; color: var(--fg2); text-align: right; }
.smstable__sender { font-family: var(--font-mono); font-size: 11px; color: var(--forrest); letter-spacing: 0.04em; }

/* ============================================================
   CHECKLISTS — open-up & close-down
   ============================================================ */

/* Progress bar — shows completion at a glance */
.progress {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-5);
  margin: var(--s-5) 0;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .progress { grid-template-columns: auto 1fr auto; align-items: center; }
}
.progress__count {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--fg1);
  letter-spacing: var(--tracking-tight);
}
.progress__count em {
  font-size: 22px;
  color: var(--fg3);
  font-style: normal;
}
.progress__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  display: block;
  margin-top: 4px;
}
.progress__bar {
  height: 6px;
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar > span {
  display: block;
  height: 100%;
  background: var(--forrest);
  transition: width 240ms ease;
}
.progress__meta {
  font-size: 13px;
  color: var(--fg3);
  font-style: italic;
  font-family: var(--font-display);
  white-space: nowrap;
}

/* Group within a checklist — Front of house / Kitchen / Cellar etc. */
.checkgroup {
  margin-top: var(--s-6);
}
.checkgroup__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--hairline);
}
.checkgroup__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--fg1);
  margin: 0;
  font-style: italic;
}
.checkgroup__count {
  font-size: 12px;
  color: var(--fg3);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: 600;
}

/* Sticky finish bar — shows once checklist nears completion */
.finishbar {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: var(--s-4) var(--gutter);
  margin: var(--s-7) calc(-1 * var(--gutter)) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.finishbar__msg {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--fg1);
  font-style: italic;
}
.finishbar__msg strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brick);
  font-style: normal;
  display: block;
  margin-bottom: 2px;
}

/* Notes field at the foot of a checklist */
.shiftnote {
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-4);
  margin-top: var(--s-6);
}
.shiftnote__label {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg1);
  font-style: italic;
  margin: 0 0 var(--s-3);
}
.shiftnote .textarea { background: var(--bg-card); }

/* ============================================================
   LOGBOOK — generic category view
   ============================================================ */

/* Category switcher — horizontal scrollable chips */
.catbar {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-3) var(--gutter);
  margin: 0 calc(-1 * var(--gutter)) var(--s-5);
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  gap: var(--s-2);
}
.catbar::-webkit-scrollbar { display: none; }
.catbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--fg2);
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all 120ms;
  min-height: 36px;
}
.catbar__chip:hover { background: var(--flaxen-warm); color: var(--forrest); }
.catbar__chip--active {
  background: var(--forrest);
  color: var(--flaxen);
  border-color: var(--forrest);
}
.catbar__chip .meta {
  font-size: 10px;
  color: inherit;
  opacity: 0.6;
  letter-spacing: 0;
}
.catbar__chip--active .meta { opacity: 0.7; }

/* Logbook entry — like a list row but with category-specific badges */
.lbfeed {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.lbentry {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.lbentry__date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
}
.lbentry__date strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--fg1);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}
.lbentry__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg1);
  margin: 0 0 4px;
  line-height: 1.3;
}
.lbentry__body { font-size: 14px; color: var(--fg2); line-height: 1.55; margin: 0 0 var(--s-2); }
.lbentry__meta {
  font-size: 12px;
  color: var(--fg3);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.lbentry__meta span + span::before {
  content: "·";
  margin-right: var(--s-3);
  opacity: 0.5;
}
.lbentry__photos {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.lbentry__photos .logentry__photo {
  margin: 0;
  width: 88px;
  height: 66px;
}
.lbentry__aside { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-end; }

/* ============================================================
   KANBAN — to-do board (3 columns)
   ============================================================ */
.kanban {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (min-width: 720px) {
  .kanban { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}
.kanban__col {
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-4);
  min-height: 320px;
}
.kanban__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-3);
}
.kanban__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--fg1);
  margin: 0;
}
.kanban__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
}
.kanban__cards { display: flex; flex-direction: column; gap: var(--s-3); }

.kcard {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-3) var(--s-4);
  cursor: grab;
  transition: border-color 120ms, box-shadow 120ms;
}
.kcard:hover { border-color: var(--hairline-strong); }
.kcard:active { cursor: grabbing; }
.kcard--dragging {
  opacity: 0.5;
  transform: rotate(-1deg);
  box-shadow: var(--shadow-2);
}
.kcard--ghost {
  border-style: dashed;
  background: transparent;
  opacity: 0.5;
}
.kcard__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg1);
  margin: 0 0 var(--s-2);
  line-height: 1.35;
}
.kcard__meta {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0.04em;
}
.kcard__progress {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg2);
  background: var(--flaxen-warm);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
}
.kcard__progress svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.kcard__due--overdue { color: var(--brick); font-weight: 600; }
.kcard__assignee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--fg2);
}
.kcard__assignee::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--forrest);
  border-radius: 50%;
  display: inline-block;
}

.kcard--done .kcard__title { color: var(--fg3); text-decoration: line-through; text-decoration-thickness: 1px; }

.kcard-add {
  border: 1px dashed var(--hairline-strong);
  background: transparent;
  padding: var(--s-3);
  border-radius: var(--radius-1);
  text-align: left;
  cursor: pointer;
  color: var(--fg3);
  font-size: 13px;
  letter-spacing: var(--tracking-caps);
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  min-height: 44px;
  transition: color 120ms, border-color 120ms;
}
.kcard-add:hover { color: var(--forrest); border-color: var(--forrest); border-style: solid; }

/* ============================================================
   CASH-UP form
   ============================================================ */
.cashgrid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  margin-top: var(--s-5);
}
@media (min-width: 900px) {
  .cashgrid { grid-template-columns: 1.5fr 1fr; }
}
.cashform {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-5);
}
.cashrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.cashrow:last-child { border-bottom: 0; }
.cashrow__label { font-size: 15px; color: var(--fg1); font-weight: 500; }
.cashrow__hint { font-size: 12px; color: var(--fg3); margin-top: 2px; }
.cashinput {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-1);
  background: var(--bg-card);
  overflow: hidden;
}
.cashinput__sym {
  padding: 0 var(--s-3);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg3);
  border-right: 1px solid var(--hairline);
  height: 100%;
  display: inline-flex;
  align-items: center;
}
.cashinput input {
  border: 0;
  padding: 10px var(--s-3);
  font: inherit;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg1);
  background: transparent;
  width: 120px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cashinput input:focus { outline: 0; }

.cashresult {
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  padding: var(--s-5);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 60px);
}
.cashresult__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: var(--s-2);
}
.cashresult__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--fg1);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-3);
  font-variant-numeric: tabular-nums;
}
.cashresult__value--ok { color: var(--status-success-ink); }
.cashresult__value--over { color: var(--status-success-ink); }
.cashresult__value--under { color: var(--status-danger-ink); }
.cashresult__delta {
  font-size: 14px;
  color: var(--fg2);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}
.cashresult__breakdown {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cashresult__breakdown > div { display: flex; justify-content: space-between; }

/* ============================================================
   ROSTER grid
   ============================================================ */
.roster {
  margin-top: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  overflow: auto;
}
.roster__grid {
  display: grid;
  grid-template-columns: 140px repeat(7, minmax(120px, 1fr));
  min-width: 920px;
}
.roster__dow,
.roster__namecol,
.roster__cell {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-3);
  font-size: 12px;
  background: var(--bg-card);
}
.roster__dow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  background: var(--flaxen-warm);
  text-align: center;
}
.roster__dow strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--fg1);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}
.roster__dow--today { background: var(--forrest); color: var(--flaxen); }
.roster__dow--today strong { color: var(--flaxen); }
.roster__namecol {
  background: var(--flaxen-warm);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roster__namecol-meta {
  font-size: 11px;
  color: var(--fg3);
  font-weight: 400;
}
.roster__cell {
  min-height: 80px;
}
.roster__cell:last-child { border-right: 0; }
.shiftblock {
  background: var(--flaxen-cool);
  border-left: 3px solid var(--forrest);
  padding: 6px 8px;
  font-size: 12px;
  color: var(--fg1);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
  margin-bottom: 4px;
  line-height: 1.3;
}
.shiftblock strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg1);
  font-weight: 500;
}
.shiftblock--clockedin {
  background: var(--status-success-tint);
  border-left-color: var(--status-success-ink);
  color: var(--status-success-ink);
}
.shiftblock--clockedin strong { color: var(--status-success-ink); }
.shiftblock--swap {
  background: var(--status-warning-tint);
  border-left-color: var(--status-warning-ink);
  color: var(--status-warning-ink);
}
.shiftblock--swap strong { color: var(--status-warning-ink); }
.shiftblock--open {
  background: var(--flaxen-warm);
  border-left-color: var(--hairline-strong);
  border-left-style: dashed;
  color: var(--fg3);
  font-style: italic;
  font-family: var(--font-display);
}
.shiftblock--open strong { color: var(--fg2); font-style: normal; font-family: var(--font-body); }

/* "I'm here" big button — only shown for active shift */
.imhere {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  background: var(--forrest);
  color: var(--flaxen);
  border: 0;
  border-radius: var(--radius-1);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  cursor: pointer;
  min-height: 36px;
}
.imhere:hover { background: var(--forrest-deep); }
.imhere--clockedout {
  background: var(--brick);
}

/* Open shift claim banner */
.openshift-cta {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 6px;
  background: transparent;
  color: var(--forrest);
  border: 1px dashed var(--forrest);
  border-radius: var(--radius-1);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  cursor: pointer;
}
.openshift-cta:hover { background: var(--forrest); color: var(--flaxen); }

/* ============================================================
   PRECINCT notices
   ============================================================ */
.notice {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--forrest);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.notice--brick { border-left-color: var(--brick); }
.notice--sand { border-left-color: var(--sand); }
.notice--archived { border-left-color: var(--hairline-strong); opacity: 0.7; }
.notice__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
  flex-wrap: wrap;
}
.notice__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
}
.notice__valid { font-size: 12px; color: var(--fg3); font-style: italic; font-family: var(--font-display); }
.notice__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--fg1);
  margin: 0 0 var(--s-3);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}
.notice__body { font-size: 15px; color: var(--fg2); line-height: 1.55; margin: 0; max-width: 64ch; }
.notice__byline { font-size: 12px; color: var(--fg3); margin-top: var(--s-3); font-style: italic; font-family: var(--font-display); }

/* ——— Install hint / inline banner ——— */
.hint {
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-1);
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.hint__body { flex: 1; }
.hint__title { font-size: 15px; font-weight: 600; color: var(--fg1); margin: 0 0 2px; }
.hint__text { font-size: var(--fs-small); color: var(--fg2); margin: 0; }
.hint__close { color: var(--fg3); background: transparent; border: 0; cursor: pointer; padding: 4px; }

/* ——— View-as admin pill (impersonation) ——— */
.view-as {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--forrest);
  color: var(--flaxen);
  padding: 10px 14px 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-2);
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: 600;
}
.view-as__close {
  background: rgba(252,250,241,0.16);
  color: var(--flaxen);
  border: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* ——— Hero / next-task block (home) ——— */
.next {
  background: var(--forrest);
  color: var(--fg-on-dark);
  padding: var(--s-7) var(--s-5) var(--s-6);
  border-radius: var(--radius-1);
}
.next__eyebrow { color: rgba(252,250,241,0.5); margin-bottom: var(--s-3); display: block; }
.next__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 var(--s-3);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-on-dark);
  text-wrap: pretty;
}
.next__lede { color: rgba(252,250,241,0.75); margin-bottom: var(--s-5); max-width: 44ch; }
.next__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.next__actions .btn--primary { background: var(--flaxen); color: var(--forrest); border-color: var(--flaxen); }
.next__actions .btn--primary:hover { background: var(--flaxen-warm); border-color: var(--flaxen-warm); }
.next__actions .btn--ghost { color: var(--flaxen); border-color: rgba(252,250,241,0.3); }
.next__actions .btn--ghost:hover { border-color: var(--flaxen); }
.next__meta { font-size: 12px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgba(252,250,241,0.5); margin-left: var(--s-2); }

/* ——— Quick links — taxonomy by group ——— */
.quicklinks { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .quicklinks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .quicklinks { grid-template-columns: 1fr 1fr 1fr; }
}
.quicklinks__group {
  border-top: 1px solid var(--hairline);
  padding: var(--s-5) 0;
}
.quicklinks__group + .quicklinks__group { border-left: 0; }
@media (min-width: 720px) {
  .quicklinks__group + .quicklinks__group { border-left: 1px solid var(--hairline); padding-left: var(--s-5); margin-left: -1px; }
  .quicklinks__group { padding: var(--s-5); }
}
.quicklinks__eyebrow { color: var(--fg3); display: block; margin-bottom: var(--s-3); }
.quicklinks__list { list-style: none; padding: 0; margin: 0; }
.quicklinks__list li { border-top: 1px solid var(--hairline-soft); }
.quicklinks__list li:first-child { border-top: 0; }
.quicklinks__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) 0;
  color: var(--fg1);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.quicklinks__list a:hover { color: var(--brick); }
.quicklinks__list a .meta {
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
}

/* ——— Quick stat ——— */
.stat {
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-1);
}
.stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: var(--s-2);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--fg1);
}
.stat__delta { font-size: 12px; color: var(--fg3); margin-top: var(--s-2); }

/* ——— Avatar (initials, hairline border) ——— */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--flaxen-warm);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--forrest);
  letter-spacing: 0;
  text-transform: uppercase;
  flex: 0 0 32px;
}
.avatar--lg { width: 44px; height: 44px; flex-basis: 44px; font-size: 14px; }
.avatar--brick { background: var(--brick); color: var(--flaxen); border-color: var(--brick); }
.avatar--forrest { background: var(--forrest); color: var(--flaxen); border-color: var(--forrest); }

/* ——— Utility ——— */
.stack > * + * { margin-top: var(--s-5); }
.stack-sm > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-7); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.muted { color: var(--fg3); }
.center { text-align: center; }
.divider { height: 1px; background: var(--hairline); border: 0; margin: var(--s-6) 0; }
.hide-mobile { display: none; }
@media (min-width: 720px) {
  .hide-mobile { display: initial; }
  .hide-desktop { display: none; }
}

/* ——— Foundations page specifics ——— */
.fnd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 720px) {
  .fnd-grid { grid-template-columns: 240px 1fr; }
}
.fnd-side {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  align-self: start;
  border-right: 1px solid var(--hairline);
  padding-right: var(--s-5);
}
.fnd-side ol { list-style: none; padding: 0; margin: 0; counter-reset: fnd; }
.fnd-side li { counter-increment: fnd; }
.fnd-side a {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  font-size: 14px;
  color: var(--fg2);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-soft);
}
.fnd-side a::before {
  content: counter(fnd, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0;
}
.fnd-side a:hover { color: var(--forrest); opacity: 1; }
.fnd-side a:last-of-type { border-bottom: 0; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 540px) {
  .swatch-grid { grid-template-columns: repeat(4, 1fr); }
}
.swatch {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-1);
  overflow: hidden;
  background: var(--bg-card);
}
.swatch__chip { height: 88px; }
.swatch__meta { padding: var(--s-3); }
.swatch__name { font-size: 13px; font-weight: 500; color: var(--fg1); margin: 0; }
.swatch__hex { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); margin-top: 2px; display: block; }

.spec-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-4);
  align-items: baseline;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-row:last-of-type { border-bottom: 0; }
.spec-row__token {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0;
}
.spec-row__demo { color: var(--fg1); }
