/* The app's own layout, on top of Cornerstone and the theme. Colors and fonts
 * come from theme tokens only, so a different theme restyles everything. */

body {
  margin: 0;
  font-family: var(--cs-font-family-body);
  background: var(--cs-color-surface-lowered);
}

h1,
h2,
h3 {
  font-family: var(--cs-font-family-heading);
  color: var(--cs-color-brand-40);
}

/* A thick red bar under the top bar: AIA's section divider. */
/* Two rows: the brand, menu, and tools, then the search box, so the menu
 * never shares a line with it (David, Oct 25, 2026). */
/* Two rows: the search box with the gear and the person, then the menu
 * under it, and the logo taking the height of both (David, Oct 26). */
.topbar {
  display: grid;
  grid-template-areas:
    "brand search tools"
    "brand nav nav";
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  padding: 0.5rem 1rem 0;
  background: var(--cs-color-surface-default);
  border-bottom: 4px solid var(--aia-red);
}

.topbar-brand {
  display: block;
  grid-area: brand;
  padding-bottom: 0.5rem;
}

/* Sized here, not with the img's height attribute: Cornerstone's base styles
 * set images to height: auto, which wins over the attribute. */
.topbar-logo {
  display: block;
  height: 72px;
  width: auto;
}

.topbar-icon {
  display: none;
  width: 40px;
  height: 40px;
}

/* The gear and the person, each opening a short menu. */
.topbar-tools {
  display: flex;
  grid-area: tools;
  align-items: center;
  gap: 0.25rem;
}

.topbar-tool {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  min-width: 2.75rem;
  height: auto; /* Cornerstone's base styles give buttons one line's height */
  padding: 0.3rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cs-color-text-quiet);
  background: none;
  border: 0;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.topbar-tool cs-icon {
  display: block;
  width: 1em;
  height: 1em;
  font-size: 1.6rem;
}

.topbar-tool:hover,
.topbar-tool:focus-visible,
cs-dropdown[open] .topbar-tool {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

/* Their initials in a navy circle, the size of the gear. */
.topbar-me {
  padding: 0.25rem;
  border-radius: 999px;
}

.topbar-me cs-avatar,
.nav-menu-me cs-avatar {
  --size: 2.25rem;
  color: var(--cs-color-surface-default);
  background-color: var(--cs-color-brand-40);
  border-radius: 999px;
  font-weight: 700;
}

.topbar-me:hover cs-avatar,
.topbar-me:focus-visible cs-avatar,
cs-dropdown[open] .topbar-me cs-avatar {
  box-shadow: 0 0 0 3px var(--cs-color-brand-80);
}

.topbar-gear {
  padding: 0.4rem;
  border-radius: 999px;
}

.nav-menu-head.nav-menu-me {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-menu-me div {
  display: grid;
  gap: 0.1rem;
}

.nav-menu-head {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 1rem 0.6rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
  border-bottom: 1px solid var(--cs-color-surface-border);
}

/* A group's heading in the gear's menu (Booking, Finance, ...). */
.nav-menu-group {
  padding: 0.65rem 1rem 0.2rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
  border-top: 1px solid var(--cs-color-surface-border);
}

.nav-menu-head strong {
  font-size: 0.9rem;
  color: var(--cs-color-text-normal);
}

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Every page's content sits on a white sheet, the background a frame
   around it (David, Oct 30, 2026: pages sat right on the background, every
   part floating on it). A record has its own white panel beside the
   drawer already, and the calendar and the kitchen's board use the whole
   window, so they're left as they were. On a phone the sheet runs edge to
   edge. David, after trying it: "This made a huge difference." */
.page:not(:has(> .split, > .cal-page, > .kitchen-page)) {
  margin: 1.25rem auto 2rem;
  padding: 1.5rem 2rem 2.5rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-panel-border-radius, 0.5rem);
  box-shadow: var(--cs-shadow-s);
}

/* A record's panel matches the sheet. */
.page .record {
  border-radius: var(--cs-panel-border-radius, 0.5rem);
  box-shadow: var(--cs-shadow-s);
}

/* A page that starts with its tabs (Settings) starts at the sheet's top. */
.page > .tabs:first-child {
  margin-top: 0;
}

/* A section's tabs sit on the sheet now, so the open one is white. */
.page .sales-tabs,
.page .accounts-tabs,
.page .settings-tabs,
.page .dashboard-tabs,
.page .shift-tabs {
  --tab-open: var(--cs-color-surface-default);
}

/* On a phone the sheet is the whole screen: white all the way down, so a
   short page doesn't end in a band of the background. */
@media (max-width: 640px) {
  body {
    background: var(--cs-color-surface-default);
  }

  .page:not(:has(> .split, > .cal-page, > .kitchen-page)) {
    margin: 0;
    padding: 1.25rem 1rem 2.5rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* A record is the page too, not a box on it. */
  .page .record {
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* The Dashboard uses the whole width on a desktop (David, Nov 2, 2026:
   "gives us more room for things"), the background still a frame. */
@media (min-width: 641px) {
  .page:has(.dashboard-nav):not(:has(> .split, > .cal-page, > .kitchen-page)) {
    max-width: none;
    margin-inline: 1.25rem;
  }
}

cs-callout {
  margin-bottom: 1.5rem;
}

.page h2 {
  margin-top: 2rem;
}

.page h3 {
  margin-top: 1.5rem;
}

.quiet {
  color: var(--cs-color-text-quiet);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.narrow {
  max-width: 28rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.panel {
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
}

.people {
  list-style: none;
  padding: 0;
}

.people li + li {
  margin-top: 0.5rem;
}

.people form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.echo th {
  text-align: left;
  padding-right: 1rem;
}

/* --- Parts page (/dev/parts) --- */

.parts-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.parts-nav a {
  font-weight: 600;
  text-decoration: none;
}

.parts-nav a:hover {
  text-decoration: underline;
}

.parts-section {
  padding-top: 1rem;
  scroll-margin-top: 1rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.swatches li {
  display: flex;
  flex-direction: column;
  width: 5.5rem;
  font-size: 0.8rem;
}

.swatch-chip {
  height: 3rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--cs-color-surface-border);
}

.swatch-step {
  font-weight: 600;
}

.swatch-name {
  color: var(--cs-color-text-quiet);
}

/* --- Sign-in stage ---------------------------------------------------------
 * Ported from the Rails finance app (aia-finance, sessions/new): the AIA mark
 * with a slow glow and a shimmer, white by day and deep blue after 5 PM
 * Eastern. The server picks data-mode; ?bg=day or ?bg=night previews one. */

.login-stage {
  /* night (blue) is the default; day overrides below */
  --dep: 0.06;
  --nudge: -6%;
  --glow-op: 0.12;
  --glow-blur: 26px;
  --glow-sat: 1.15;
  --glow-scale: 1.06;
  --glow-dy: 6px;
  --shimmer: 0.3;
  /* The two marks (David, Oct 26): the app's logo leads and the AIA logo
   * above it endorses it, sized by how much ink each puts down, not by
   * their boxes (the AIA logo is about 19% ink). The app's logo is twice
   * as big by that measure, at every width, so the AIA logo reads as a
   * small "a ministry of" tag: its width is 1.56 of --wm-h, the height the
   * Sports Complex's wordmark had (39% ink; 1.93 would be the golden
   * ratio). HomeField's logo (Nov 5, 2026: the plate over its name, 35%
   * ink and narrower) is 1.14 of it, to put down the same ink. Clear
   * space around it is at least its capital height (0.22 of it, 0.26 of
   * --wm-h to be sure). */
  --wm-h: clamp(120px, 14vw, 176px);
  --logo-h: calc(var(--wm-h) * 1.14);
  --mark-w: calc(var(--wm-h) * 1.56);
  --stage-gap: clamp(1.2rem, 3vh, 2rem);
  --msat: 1.15;
  --mcon: 1.045;
  --l-ink: #eaf1f9;
  --l-ink-soft: #93a8bf;
  --l-alert: #ffb4b4;
  --l-good: var(--cs-color-success-70);
  --dent-rgb: 10, 18, 46;
  --l-top: #172a41;
  --l-p: #0b1522;
  --l-p2: #05090f;
  --l-btn-bg: #eaf1f9;
  --l-btn-ink: #0b1522;
  --l-btn-hi: #ffffff;

  min-height: 100dvh;
  box-sizing: border-box;
  /* More padding below than above, so the block sits a little above true
   * center: centered content reads as sitting low. */
  padding: clamp(1.25rem, 4vh, 3rem) 1.25rem clamp(4.5rem, 14vh, 10rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--stage-gap);
  position: relative;
  isolation: isolate;
  /* The glow behind the AIA logo is wider than a phone: cut it at the
   * screen's edge, so the page never scrolls sideways. */
  overflow-x: clip;
  color: var(--l-ink);
  background: radial-gradient(135% 105% at 50% -15%, var(--l-top) 0%, var(--l-p) 45%, var(--l-p2) 100%);
}

/* The campus's fields and Wooden's courts as faint lines behind
 * everything (David, Oct 26), in the page's own ink so it suits day and
 * night. The drawing is a mask; the color comes from here. */
.login-campus {
  position: absolute;
  inset: 3vh 2vw;
  z-index: -1;
  background: color-mix(in srgb, var(--l-ink) var(--campus-op, 6%), transparent);
  -webkit-mask: url('../img/campus-lines.svg') center / contain no-repeat;
  mask: url('../img/campus-lines.svg') center / contain no-repeat;
  pointer-events: none;
}

.login-stage[data-mode='day'] {
  --campus-op: 7%;
  --dep: 0.045;
  --glow-op: 0.1;
  --glow-sat: 1.1;
  --shimmer: 0.44;
  --msat: 1.1;
  --mcon: 1.03;
  --l-ink: #0e1b2a;
  --l-ink-soft: #5d6a7a;
  --l-alert: #b3261e;
  --l-good: var(--aia-green);
  --dent-rgb: 8, 30, 66;
  --l-top: #ffffff;
  --l-p: #fbfcfe;
  --l-p2: #e7ecf4;
  --l-btn-bg: var(--aia-navy);
  --l-btn-ink: #ffffff;
  --l-btn-hi: #00417f;
}

.login-mono {
  position: relative;
  width: min(720px, 92vw);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem) 0;
}

.login-dent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 132%;
  height: 230%;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(7px);
  background: radial-gradient(
    closest-side,
    rgba(var(--dent-rgb), var(--dep)) 0%,
    rgba(var(--dent-rgb), calc(var(--dep) * 0.42)) 44%,
    transparent 72%
  );
}

.login-stack {
  position: relative;
  z-index: 1;
  width: var(--mark-w);
  aspect-ratio: 2.712 / 1; /* the logo file is 2000 x 737 */
  transform: translateX(var(--nudge));
}

.login-mark,
.login-glow,
.login-shimmer {
  position: absolute;
  inset: 0;
  background: url('../img/aia-logo.png') center / contain no-repeat;
}

.login-mark {
  z-index: 2;
  filter: saturate(var(--msat)) contrast(var(--mcon)); /* the logo stays crisp */
}

.login-glow {
  z-index: 1;
  opacity: var(--glow-op);
  filter: blur(var(--glow-blur)) saturate(var(--glow-sat)) brightness(1.12);
  transform: translateY(var(--glow-dy)) scale(var(--glow-scale));
  animation: login-breathe 7.5s ease-in-out infinite;
}

@keyframes login-breathe {
  0%,
  100% {
    opacity: calc(var(--glow-op) * 0.78);
  }
  50% {
    opacity: var(--glow-op);
  }
}

.login-shimmer {
  z-index: 3;
  pointer-events: none;
  opacity: var(--shimmer);
  mix-blend-mode: soft-light;
  background-image: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 255, 255, 0.95) 47%,
    rgba(190, 220, 255, 0.6) 52%,
    transparent 66%
  );
  background-repeat: no-repeat;
  background-size: 280% 100%;
  -webkit-mask: url('../img/aia-logo.png') center / contain no-repeat;
  mask: url('../img/aia-logo.png') center / contain no-repeat;
  animation: login-sweep 6.5s ease-in-out infinite;
}

@keyframes login-sweep {
  0% {
    background-position: 130% 0;
  }
  55%,
  100% {
    background-position: -30% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-glow,
  .login-shimmer {
    animation: none;
  }
}

.login-wordmark {
  margin: 0 0 max(0px, calc(var(--wm-h) * 0.26 - var(--stage-gap)));
  line-height: 0;
}

/* Sized here: Cornerstone's base styles set images to height: auto. */
.login-wordmark img {
  height: var(--logo-h);
  width: auto;
}

.login-actions {
  display: flex;
}

.login-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 620;
  font-size: 1rem;
  color: var(--l-btn-ink);
  background: var(--l-btn-bg);
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  /* Behind IAP it's a link to IAP's sign-in, not a form's button. Without
   * Okta (a local run) it's a switched-off button, which Cornerstone gives
   * a fixed height that pushed the words down: it fits its words too. */
  display: inline-block;
  height: auto;
  text-decoration: none;
  box-shadow:
    0 10px 22px -12px rgba(0, 51, 102, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition:
    background 0.18s,
    transform 0.18s;
}

.login-btn:hover:not(:disabled) {
  background: var(--l-btn-hi);
  transform: translateY(-1px);
}

.login-btn:focus-visible {
  outline: 3px solid #6aa6ff;
  outline-offset: 3px;
}

.login-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.login-note,
.login-message {
  margin: -0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--l-ink-soft);
}

.login-message {
  color: var(--l-alert);
  font-weight: 600;
}

/* Request access (David, Nov 6, 2026): for someone signed in whom
 * HomeField doesn't know yet, in place of Sign in with Okta. */
.login-ask {
  width: min(420px, 100%);
  display: grid;
  gap: 0.9rem;
  text-align: center;
}

.login-ask p {
  margin: 0;
}

.login-ask-who {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.login-ask-lead {
  color: var(--l-ink-soft);
}

.login-ask-done {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--l-ink) 8%, transparent);
  overflow-wrap: anywhere;
}

.login-ask-done cs-icon {
  flex: none;
  color: var(--l-good);
}

.login-ask-form {
  display: grid;
  gap: 0.8rem;
  text-align: left;
}

.login-ask-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  /* Cornerstone colors labels for a white page; this one is the stage's. */
  color: var(--l-ink);
}

.login-ask-field em {
  font-style: normal;
  font-weight: 400;
  color: var(--l-ink-soft);
}

.login-ask-field .signin-input {
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  resize: vertical;
}

.login-ask-form .login-message {
  margin: 0;
}

.login-problem {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.login-problem cs-icon {
  flex: none;
}

.login-ask-form .login-btn {
  justify-self: center;
  margin-top: 0.3rem;
}

/* What they sent, folded: a quiet link, not Cornerstone's card. */
.login-ask-change,
.login-ask-change[open] {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 0.9rem;
}

.login-ask-change summary,
.login-ask-change[open] summary {
  display: inline-flex;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--l-ink-soft);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.login-ask-change summary::after {
  display: none;
}

.login-ask-out {
  font-size: 0.85rem;
}

.login-ask-out a {
  color: var(--l-ink-soft);
}

.login-dev {
  margin-top: 0.5rem;
  text-align: center;
  opacity: 0.85;
  width: min(460px, 100%);
}

.login-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-ink-soft);
}

.signin-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.signin-input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid #e2e2e3;
  border-radius: 6px;
  font-family: var(--cs-font-family-body);
  font-size: 0.85rem;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
}

.signin-input:focus {
  outline: none;
  border-color: var(--aia-navy);
}

.signin-btn {
  white-space: nowrap;
  font-family: var(--cs-font-family-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e2e2e3;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.signin-btn:hover {
  border-color: var(--aia-navy);
}

/* A quiet text link, not the card Cornerstone makes of every <details>. */
.signin-add,
.signin-add[open] {
  margin-top: 1rem;
  padding: 0;
  font-size: 0.8rem;
  color: var(--l-ink-soft);
  background: none;
  border: 0;
  border-radius: 0;
}

.signin-add summary,
.signin-add[open] summary {
  display: inline-flex;
  margin: 0;
  padding: 0;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.signin-add summary::after {
  display: none;
}

.signin-add .signin-form {
  margin-top: 0.75rem;
}

/* The parts page's logo sizes, side by side. */
.parts-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
}

.parts-logos figure {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  margin: 0;
}

.parts-logos img {
  width: auto;
}

.parts-logos figcaption {
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

/* The sign-in page's night logo, on navy as the night stage is blue. */
.parts-logo-night img {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--aia-navy);
}

/* --- Top bar menu --- */

/* The menu starts under the search box, its icons in line with the
 * search box's. */
.topbar-nav {
  display: flex;
  grid-area: nav;
  gap: 0.25rem;
  min-width: 0;
  margin-left: 0.2rem;
  /* A window too narrow for every link scrolls the menu, never the page. */
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-nav a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  color: var(--cs-color-text-normal);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-sm, 4px) var(--radius-sm, 4px) 0 0;
}

.topbar-nav a cs-icon {
  font-size: 1.25rem;
  color: var(--cs-color-text-quiet);
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.topbar-nav a[aria-current],
.topbar-nav a[aria-current] cs-icon {
  color: var(--cs-color-brand-40);
}

.topbar-nav a[aria-current] {
  border-bottom-color: var(--cs-color-brand-40);
}

/* The phone menu, along the bottom of the screen. */
.bottom-nav {
  display: none;
}

/* Narrower: each menu word sits under its icon, then the logo is just its
 * icon. A Super Admin's menu has eight sections (with Shifts, Oct 29,
 * 2026), which run out of room under 1280px. */
@media (max-width: 1280px) {
  .topbar-nav a {
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }

  .topbar-nav a cs-icon {
    font-size: 1.4rem;
  }
}

@media (max-width: 820px) {
  .topbar-logo {
    display: none;
  }

  .topbar-icon {
    display: block;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 640px) {
  :root {
    --bottom-nav-height: 3.6rem;
  }

  .topbar-nav {
    display: none;
  }

  /* One row: the logo's icon, the search box, the gear, and the person. */
  .topbar {
    position: relative;
    grid-template-areas: "brand search tools";
    column-gap: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .topbar-brand {
    padding-bottom: 0;
  }

  .topbar-logo {
    display: none;
  }

  .topbar-icon {
    display: block;
    width: 40px;
    height: 40px;
  }

  /* The tools by the gear (Messages, Monica moved up, the gear, the
   * person) take as little of the row as they can, so the search box
   * keeps room to type in. */
  .topbar {
    column-gap: 0.5rem;
    padding-inline: 0.6rem;
  }

  .topbar-tool {
    min-width: 2.25rem;
    padding-inline: 0.3rem;
  }

  body:has(.bottom-nav) {
    padding-bottom: var(--bottom-nav-height);
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: flex;
    height: var(--bottom-nav-height);
    background: var(--cs-color-surface-default);
    border-top: 1px solid var(--cs-color-surface-border);
    box-shadow: 0 -2px 8px rgb(0 0 0 / 6%);
  }

  .bottom-nav a {
    display: grid;
    flex: 1 1 0;
    place-content: center;
    justify-items: center;
    gap: 0.1rem;
    min-width: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cs-color-text-quiet);
    text-decoration: none;
    border-top: 3px solid transparent;
  }

  .bottom-nav a cs-icon {
    font-size: 1.5rem;
  }

  /* A word too long for its share of the bar is cut short, never run
   * into the next; six or more share smaller type. */
  .bottom-nav a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav:has(a:nth-child(6)) a {
    font-size: 0.62rem;
  }

  .bottom-nav a[aria-current] {
    color: var(--cs-color-brand-40);
    border-top-color: var(--cs-color-brand-40);
  }

  /* Bars that stick to the bottom of a page sit on top of the menu. The
   * body raises it over the bars' own bottom: 0, set later in the file
   * (on a phone they sat behind the menu, their buttons out of reach). */
  body .lines-actions,
  body .bulk-summary {
    bottom: var(--bottom-nav-height);
  }
}

/* --- Viewing as banner ---
 * Bright on purpose: while a Super Admin views the app as someone else, it
 * must be impossible to miss. */

.viewing-as {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1rem;
  background: var(--cs-color-warning-fill-loud);
  color: var(--cs-color-warning-on-loud);
  font-weight: 600;
}

/* Google's sign-in ran out with something typed on the page (AIASCRC-64):
 * a bar across the top until they sign in again. */
.signin-ran-out {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-warning-fill-loud);
  color: var(--cs-color-warning-on-loud);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.signin-ran-out button {
  margin-left: auto;
  padding: 0.4rem 1.2rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--cs-color-neutral-10);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.signin-ran-out button:hover {
  background: var(--cs-color-neutral-30);
}

/* A copy that redirects its email (stage) says so on every page. */
.mail-redirect {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--cs-color-information-fill-quiet, var(--cs-color-neutral-95));
  color: var(--cs-color-text-default);
  font-size: 0.85rem;
}

.viewing-as-real {
  font-weight: 400;
}

.viewing-as form {
  margin-left: auto;
}

.viewing-as-stop {
  padding: 0.35rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--cs-color-neutral-10);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.viewing-as-stop:hover {
  background: var(--cs-color-neutral-30);
}

/* --- Data tables ---
 * Lists of records. Plain HTML tables, since Cornerstone has none. */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.data-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
}

.data-table tbody tr:hover {
  background: var(--cs-color-brand-95);
}

.nowrap {
  white-space: nowrap;
}

/* --- Permission set checklist --- */

.set-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Okta sign-ins waiting for an Admin to say who they are, above the People
 * list: a card each, who and when, then who they are here (or someone
 * new, or turned away). */
.okta-requests {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.okta-requests > * {
  margin: 0;
}

.okta-request {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.okta-request > p {
  margin: 0;
}

.okta-request-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

/* What they need it for, from Request access. */
.okta-request-note {
  margin: 0.25rem 0 0.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--cs-color-neutral-80);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.okta-request-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.okta-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .okta-request-link {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Split view ---------------------------------------------------------
 * A list beside the record it opens, like Salesforce's split view (Lisa's
 * favorite). With nothing open, the list is the whole page (browse, below).
 * With a record open, on a desktop the list is a drawer on the window's
 * left edge, with a bar down its right side that slides it off to the left
 * and back; slid off, the bar stays as a rail with the list's name down it.
 * On a phone it's the list, then the record. */

:root {
  --header-height: 4rem; /* set to the real height by app.js */
  --handle-width: 1rem;
  --rail-width: 1.5rem;
  --tab-width: 3.25rem;
  --drawer-width: min(24rem, 80vw);
  /* The record's move when the drawer pushes it: a slight overshoot that
   * settles (David, Oct 23). The AIA design system says no bounce; for none,
   * set this to var(--ease-out). */
  --push-ease: cubic-bezier(0.3, 1.15, 0.6, 1);
}

/* The banner and top bar stay put while the page scrolls. */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.split-list-title {
  margin: 0;
  font-size: 1.5rem;
}

.split-detail {
  min-width: 0;
}

.split-empty {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 4rem 1rem;
  color: var(--cs-color-text-quiet);
  font-size: 1.1rem;
}

.split-empty cs-icon {
  font-size: 2.5rem;
}

.list-filters {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

/* The drawer's views: the list's own dropdown and pin, across it. */
.list-filters .list-view-group {
  display: flex;
}

.list-filters .list-view-pick {
  flex: 1;
  min-width: 0;
}

.list-count,
.list-empty {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.split-handle,
.split-handle-tab {
  display: none;
}

@media (min-width: 901px) {
  /* A split page uses the whole window; the record centers in what's left. */
  .page:has(> .split) {
    max-width: none;
  }

  /* Room for the bar, so it never covers the record. */
  .split {
    padding-left: var(--handle-width);
  }

  .split-detail {
    max-width: 72rem;
    margin: 0 auto;
  }

  .split-list {
    position: fixed;
    z-index: 15;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: var(--drawer-width);
    background: var(--cs-color-surface-default);
    border-right: 1px solid var(--cs-color-surface-border);
    box-shadow: var(--shadow-lg);
  }

  .split--collapsed .split-list {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .split-list-body {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
  }

  /* The bar rides on the drawer's right edge, so when the drawer slides off
   * it stays at the window's left edge. */
  .split-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    display: grid;
    place-items: center;
    width: var(--handle-width);
    height: 100%; /* a button doesn't stretch between top and bottom on its own */
    padding: 0;
    color: var(--cs-color-brand-40);
    background: var(--cs-color-brand-90);
    border: 1px solid var(--cs-color-brand-80);
    border-left: 0;
    cursor: pointer;
  }

  .split-handle:hover,
  .split-handle:focus-visible {
    color: var(--cs-color-brand-on-loud);
    background: var(--cs-color-brand-40);
  }

  .split-handle cs-icon {
    font-size: 1rem;
  }

  /* Closed, the bar is a navy rail (the open bar's hover color, swapped)
   * with a tab sticking out at the top: the list's icon and an arrow
   * (David, Oct 25: a thin light bar was too easy to miss). Hovering swaps
   * back to light. The record moves over to clear the tab. */
  .split.split--collapsed {
    padding-left: calc(var(--rail-width) + var(--tab-width) + 0.5rem);
  }

  .split--collapsed .split-handle {
    width: var(--rail-width);
    color: var(--cs-color-brand-on-loud);
    background: var(--cs-color-brand-40);
    border-color: var(--cs-color-brand-40);
  }

  .split--collapsed .split-handle-arrow {
    display: none;
  }

  .split--collapsed .split-handle-tab {
    position: absolute;
    top: 1rem;
    left: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    width: var(--tab-width);
    height: 2.5rem;
    padding-right: 0.15rem;
    color: inherit;
    background: inherit;
    border-radius: 0 999px 999px 0;
    box-shadow: 2px 2px 6px rgb(0 0 0 / 18%);
  }

  .split--collapsed .split-handle-tab cs-icon {
    font-size: 1.3rem;
  }

  .split--collapsed .split-handle-tab cs-icon + cs-icon {
    font-size: 1.1rem;
  }

  .split--collapsed .split-handle:hover,
  .split--collapsed .split-handle:focus-visible {
    color: var(--cs-color-brand-40);
    background: var(--cs-color-brand-90);
    border-color: var(--cs-color-brand-80);
  }

  /* The slide only happens when someone clicks: app.js adds split--ready
   * once the page has loaded, so nothing slides into place on load. */
  .split--ready {
    transition: padding-left var(--duration-base, 250ms) var(--push-ease);
  }

  .split--ready .split-list {
    transition:
      transform var(--duration-base, 250ms) var(--ease-out, ease-out),
      box-shadow var(--duration-base, 250ms) var(--ease-out, ease-out);
  }

  .split--ready .split-handle cs-icon {
    transition: rotate var(--duration-base, 250ms) var(--ease-out, ease-out);
  }
}

/* With room for both, the open drawer pushes the record over instead of
 * covering it. Below this width it covers. */
@media (min-width: 1280px) {
  .split:not(.split--collapsed) {
    padding-left: calc(var(--drawer-width) + var(--handle-width) + 0.5rem);
  }

  .split:not(.split--collapsed) .split-list {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .split,
  .split-list,
  .split-handle cs-icon {
    transition: none !important;
  }
}

/* On a phone, the list until a record is open, then the record, with a way
 * back. */
.record-back {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .split-list {
    padding: 1rem;
    background: var(--cs-color-surface-default);
    border: 1px solid var(--cs-color-surface-border);
  }

  .split[data-selected] .split-list,
  .split:not([data-selected]) .split-detail {
    display: none;
  }

  .record-back {
    display: inline-flex;
  }
}

/* --- Record list: two lines per row ------------------------------------- */

.record-list {
  margin: 0 -1rem;
  padding: 0;
  list-style: none;
}

.record-list > li {
  margin: 0; /* Cornerstone indents list items */
}

/* Every other row faintly shaded, as a list's table is (David, Oct 29,
   2026), on the item so a row under the pointer or open still shows. */
.record-list > li:nth-child(even) {
  background: color-mix(in srgb, var(--cs-color-neutral-95) 55%, transparent);
}

.record-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 1rem;
  color: var(--cs-color-text-normal);
  text-decoration: none;
  border-top: 1px solid var(--cs-color-surface-border);
  border-left: 3px solid transparent;
}

.record-row:hover {
  background: var(--cs-color-brand-95);
  text-decoration: none;
}

.record-row[aria-current] {
  background: var(--cs-color-brand-95);
  border-left-color: var(--cs-color-brand-40);
}

.record-name {
  font-weight: 600;
  color: var(--cs-color-brand-40);
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

.record-sub {
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

.record-balance {
  font-weight: 600;
  color: var(--cs-color-text-normal);
}

/* --- A record: header, money, details, tabs ------------------------------ */

.record {
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
}

.record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.record-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.record-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  color: var(--cs-color-text-quiet);
}

/* The status and the header's buttons wrap on a phone. */
.record-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1.25rem 0 1rem;
  background: var(--cs-color-surface-border);
  border: 1px solid var(--cs-color-surface-border);
}

.money div {
  padding: 0.75rem 1rem;
  background: var(--cs-color-surface-default);
}

.money dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.money dd {
  margin: 0.2rem 0 0;
  font-family: var(--cs-font-family-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.money-balance {
  border-top: 3px solid var(--aia-red);
}

.money-note {
  display: block;
  font-family: var(--cs-font-family-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--cs-color-text-quiet);
}

.record-details,
.due-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0 0 1rem;
}

.record-details dt,
.due-dates dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.record-details dd,
.due-dates dd {
  margin: 0.1rem 0 0;
}

.record-notes {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-neutral-95);
}

.record-notes p {
  margin: 0;
}

.record-notes p + p {
  margin-top: 0.35rem;
}

/* Tabs: links, so each tab has its own address; htmx swaps the record. */
/* Tabs wrap rather than scroll, so none is ever out of sight. They're
 * folder tabs (David, Oct 30, 2026: tabs have to look like tabs before the
 * pointer finds them): each a box with rounded top corners on a line, the
 * others light gray, the open one the color of what's under it with a
 * navy edge on top, joined to it. --tab-open is that color: white on a
 * record, the page's own on a section's page. */
.tabs {
  --tab-open: var(--cs-color-surface-default);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--cs-color-neutral-80);
}

.tabs a {
  padding: 0.55rem 0.9rem;
  margin-bottom: -1px;
  font-weight: 600;
  color: var(--cs-color-text-normal);
  text-decoration: none;
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 0.5rem 0.5rem 0 0;
  white-space: nowrap;
  transition: background-color var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

/* A brand tint on hover (or keyboard focus). */
.tabs a:hover,
.tabs a:focus-visible {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

/* A section's tabs (Sales, Settings, the Dashboard, Shifts) sit on the
 * page itself. */
.sales-tabs,
.accounts-tabs,
.settings-tabs,
.dashboard-tabs,
.shift-tabs {
  --tab-open: var(--cs-color-surface-lowered);
}

.tabs a cs-icon {
  margin-right: 0.2rem;
  font-size: 1.15em;
  vertical-align: -0.2em;
}

/* On a phone every tab shows: the icon over the word, sharing the width,
 * four to a row so a reservation's seven tabs never squeeze their words. */
.tabs a[aria-current] {
  color: var(--cs-color-brand-40);
  background: var(--tab-open);
  border-bottom-color: var(--tab-open);
  box-shadow: inset 0 3px 0 var(--cs-color-brand-40);
}

/* Shifts' Settings has its own tabs (David, Nov 30, 2026), a row under the
 * top tabs: the same folders, a size smaller, on the page as the top tabs
 * are. */
.shift-subtabs {
  --tab-open: var(--cs-color-surface-lowered);
  margin-top: -0.25rem;
}

.shift-subtabs a {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

/* On a phone the tabs wrap into rows, so folders can't join the page:
 * each is a box of its own, the open one tinted with a navy bar under it. */
@media (max-width: 600px) {
  .tabs {
    flex-wrap: wrap;
    gap: 0.25rem;
    overflow: visible;
    padding-bottom: 0.5rem;
  }

  .tabs a {
    display: flex;
    flex: 1 0 calc(25% - 0.25rem);
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
    margin: 0;
    padding: 0.5rem 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    border-radius: 0.5rem;
  }

  .tabs a cs-icon {
    margin: 0;
    font-size: 1.35rem;
  }

  .tabs a[aria-current] {
    background: var(--cs-color-brand-95);
    border-color: var(--cs-color-brand-40);
    box-shadow: inset 0 -3px 0 var(--cs-color-brand-40);
  }

  /* Settings' five share one row. */
  .shift-subtabs a {
    flex-basis: calc(20% - 0.25rem);
    font-size: 0.75rem;
  }

  .shift-subtabs a cs-icon {
    font-size: 1.15rem;
  }
}

.tab-panel h3 {
  margin: 1.5rem 0 0.75rem;
}

.tab-panel > h3:first-child {
  margin-top: 0;
}

/* --- Lines and money tables ---------------------------------------------- */

.data-table .num {
  text-align: right;
  white-space: nowrap;
}

.data-table tfoot th {
  text-align: right;
  font-weight: 500;
  color: var(--cs-color-text-quiet);
}

.data-table tfoot td,
.data-table tfoot th {
  border-bottom: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.data-table tfoot tr:first-child th,
.data-table tfoot tr:first-child td {
  padding-top: 0.75rem;
}

.data-table .total-row th,
.data-table .total-row td {
  font-weight: 700;
  color: var(--cs-color-text-normal);
  border-top: 2px solid var(--cs-color-text-normal);
}

.small {
  font-size: 0.8rem;
}

/* A line that doesn't count toward the total reads quieter. */
.line-waitlist td,
.line-cancelled td {
  color: var(--cs-color-text-quiet);
}

/* --- History timeline --- */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline > li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.timeline > li > cs-icon {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  color: var(--cs-color-brand-40);
}

.timeline p {
  margin: 0;
}

.timeline-subject {
  font-weight: 600;
}

.timeline-body {
  margin-top: 0.35rem !important;
  white-space: pre-line;
}

/* A table wider than its box scrolls inside it, never past the card. */
/* A wide table scrolls inside its box. The box also keeps the table's
 * drawing to itself: without that, Chrome on a phone saw a wide Schedule
 * grid while the page loaded and zoomed the whole page out, and the
 * bottom menu, stretched to the zoomed-out width, kept it there. Popups
 * (hover cards, menus) open in the top layer, so nothing they show is cut. */
.table-wrap {
  overflow-x: auto;
  contain: paint;
}

/* Check availability (AIASCRC-123): who's asking and the dates on top of
 * Bulk Book's side, the answer leading the grid, a taken slot that's only
 * on hold marked so, and on New reservation what it will book. */
.bulk-ask {
  display: grid;
  gap: 0.75rem;
}

.bulk-ask h2 {
  margin: 0;
}

.avail-ranges {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.avail-ranges legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.avail-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.5rem;
}

/* On a phone a range's two days stack, so each shows its whole date. */
@media (max-width: 480px) {
  .avail-range {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .avail-range > :nth-child(2) {
    grid-column: 1;
  }
}

.avail-answer {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-brand-95);
  border-radius: 0.5rem;
}

.avail-answer p {
  margin: 0;
}

.avail-answer p + p {
  margin-top: 0.3rem;
}

.bulk-on-hold {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  opacity: 0.85;
}

.to-book {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

/* The Lines tab's sort buttons look like the lists' sort links. */
.lines-sort {
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.lines-sort:focus-visible {
  outline: 2px solid var(--cs-color-brand-40);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The Lines tab's filter, above the table. */
.lines-filter {
  max-width: 26rem;
  margin: 0.25rem 0 0.75rem;
}

.lines-table {
  font-size: 0.9rem;
}

.lines-table th,
.lines-table td {
  padding: 0.5rem 0.6rem;
}

.line-badge {
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* What carries each line's chartfield and GL (David, Dec 1, 2026): room
   for a chartfield's path on one line, and for a room's name in Where. */
@media (min-width: 900px) {
  .lines-table .line-what {
    min-width: 25rem;
  }

  .lines-table .line-where {
    min-width: 9rem;
  }
}

/* Lines tab edits: a box on each line, and a bar of things to do that
 * shows once a line is ticked. It stays at the bottom of the screen while a
 * long list scrolls. */
.lines-table .line-pick {
  width: 2rem;
  padding-right: 0;
}

.line-pick input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--cs-color-brand-40);
}

.lines-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  /* Light blue, so the bar stands out from the white list. */
  background: var(--cs-color-information-fill-normal);
  border: 1px solid var(--cs-color-information-border-normal);
  border-radius: var(--cs-border-radius-m, 0.5rem);
  box-shadow: 0 -2px 10px rgb(0 0 0 / 12%);
}

.lines-form:has(input[name='line']:checked) .lines-actions {
  display: flex;
}

.lines-picked {
  margin-right: 0.25rem;
  font-weight: 600;
}

/* A button no ticked line can take is hidden (app.js). Cornerstone's
   button sets its own display, which would beat the hidden attribute. */
.lines-actions [data-line-act][hidden],
.lines-none[hidden] {
  display: none;
}

/* Where a line posts, under what it is (David, Dec 1, 2026): its
   chartfield and GL, quiet, and a warning when the journal would hold it
   back. */
.line-post {
  overflow-wrap: anywhere; /* a path written without spaces */
}

.line-post cs-icon,
.line-held cs-icon {
  font-size: 1em;
  vertical-align: -0.125em;
}

.line-held {
  color: var(--cs-color-warning-on-quiet);
  font-weight: 600;
}

.line-held cs-icon {
  color: var(--cs-color-warning-fill-loud);
}

.posts-table {
  max-width: 48rem;
}

.posts-table tr.posts-held td {
  background: var(--cs-color-warning-fill-quiet);
}

.lines-actions .label-short {
  display: none;
}

/* On a phone the bar takes less of the screen: short labels, tighter. */
@media (max-width: 600px) {
  .lines-actions {
    gap: 0.35rem;
    padding: 0.5rem;
  }

  .lines-picked {
    flex-basis: 100%;
    font-size: 0.875rem;
  }

  .lines-actions .label-long {
    display: none;
  }

  .lines-actions .label-short {
    display: inline;
  }
}

/* The dialog: each start and end is kept, moved by minutes, or set to a
 * time, and only the field it needs shows. */
.lines-price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.manage-form:not([data-mode='set']) .lines-price-set,
.manage-form:not([data-mode='percent']) .lines-price-percent {
  display: none;
}

.lines-move {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.lines-shift {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0.6rem 0.75rem 0.75rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.lines-shift legend {
  padding: 0 0.25rem;
  font-weight: 600;
}

.lines-shift .lines-shift-minutes,
.lines-shift .lines-shift-at {
  display: none;
}

.lines-shift:is([data-mode='later'], [data-mode='earlier']) .lines-shift-minutes,
.lines-shift[data-mode='at'] .lines-shift-at {
  display: block;
}

@media (max-width: 600px) {
  .lines-move,
  .lines-price {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The parts page shows list rows in a box of their own. */
.record-list-box {
  max-width: 24rem;
  padding: 0 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
}

/* A reservation's money under its lines. */
.line-totals {
  display: grid;
  justify-content: end;
  margin: 0.5rem 0 0;
}

.line-totals div {
  display: grid;
  grid-template-columns: minmax(10rem, auto) 7rem;
  gap: 1rem;
  padding: 0.3rem 0.6rem;
  text-align: right;
}

.line-totals dt {
  color: var(--cs-color-text-quiet);
}

.line-totals dd {
  margin: 0;
}

.line-totals .line-totals-total {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  font-weight: 700;
  border-top: 2px solid var(--cs-color-text-normal);
}

.line-totals .line-totals-total dt {
  color: var(--cs-color-text-normal);
}

.line-inline {
  display: none;
}

/* --- Phones ------------------------------------------------------------- */

@media (max-width: 640px) {
  .page {
    padding: 1rem 0.75rem 2rem;
  }

  .record {
    padding: 1rem;
  }

  .record-head h2 {
    font-size: 1.35rem;
  }

  .money {
    grid-template-columns: minmax(0, 1fr);
  }

  .money div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 1rem;
  }

  .money dd {
    font-size: 1.2rem;
  }

  .money-balance {
    border-top: 0;
    border-left: 3px solid var(--aia-red);
  }

  /* Lines: when, what (with where and how many folded in), and total. */
  .lines-table .line-where,
  .lines-table .line-qty,
  .lines-table .line-price {
    display: none;
  }

  /* With the boxes to tick, every bit of width counts. */
  .lines-table th,
  .lines-table td {
    padding: 0.5rem 0.35rem;
  }

  .lines-table .line-when {
    white-space: normal;
  }

  .lines-table .line-pick {
    width: 1.5rem;
  }

  .line-inline {
    display: block;
    margin-top: 0.15rem;
  }

  .line-totals {
    justify-content: stretch;
  }

  .line-totals div {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* --- Schedule grid --------------------------------------------------------
 * A reservation's bookings by week: spaces down, days across, a chip per
 * booking. Chip colors come from each booking's own status, the same here
 * as on the booking calendar: confirmed is solid navy, hold is navy outline
 * on a light fill (not firm yet), waitlist is orange, released is faded. */

.sched-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.sched-head h3 {
  margin: 0 !important;
  font-size: 1.15rem;
}

.sched-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.sched-legend .chip {
  display: inline-block;
  margin: 0;
}

.sched-week {
  margin-bottom: 1rem;
}

.sched-week-title {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.sched-grid {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.85rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
}

.sched-grid th,
.sched-grid td {
  padding: 0.3rem 0.35rem;
  vertical-align: top;
  border: 1px solid var(--cs-color-surface-border);
}

.sched-grid thead th {
  font-weight: 600;
  text-align: center;
  background: var(--cs-color-neutral-95);
}

.sched-grid thead th span {
  display: block;
  line-height: 1.2;
}

.sched-grid thead th span.quiet {
  font-size: 0.75rem;
  font-weight: 400;
}

/* The space names stay put while the days scroll on a phone. */
.sched-grid .sched-space {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 13rem;
  text-align: left;
  font-weight: 600;
  background: var(--cs-color-surface-default);
}

.sched-grid thead .sched-space {
  background: var(--cs-color-neutral-95);
}

.sched-occupants {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: 0.35rem;
  font-weight: 400;
  color: var(--cs-color-text-quiet);
}

.chip {
  display: block;
  margin: 0.15rem 0;
  padding: 0.15rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 2px);
}

.chip:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.chip-booked {
  color: #fff;
  background: var(--aia-navy);
  border-color: var(--aia-navy);
}

.chip-hold {
  color: var(--aia-navy);
  background: var(--cs-color-brand-90);
  border-color: var(--aia-navy);
}

.chip-waitlist {
  color: var(--cs-color-warning-on-loud);
  background: var(--cs-color-warning-fill-loud);
  border-color: var(--cs-color-warning-border-loud);
}

.chip-released {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
  border: 1px dashed var(--cs-color-neutral-70);
}

.chip-cancelled {
  color: var(--cs-color-danger-on-quiet);
  background: var(--cs-color-danger-fill-quiet);
  border-color: var(--cs-color-danger-border-normal, var(--cs-color-danger-40));
}

.chip-quote {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-surface-default);
  border-color: var(--cs-color-neutral-70);
}

/* A status (a reservation's or a line's): Cornerstone's badge, at its own
 * size, in the schedule chip's colors (the chip-* class; page styles win
 * over the badge's own). */
.status-tag.chip-released {
  border-style: dashed;
}

/* A waitlisted booking whose slot has freed up: ready to promote. */
.chip-open {
  box-shadow: 0 0 0 2px var(--cs-color-success-40);
}

.chip cs-icon {
  margin-left: 0.15rem;
  font-size: 0.8rem;
  vertical-align: -0.1rem;
}

/* The Overnight Rooms bar, collapsible, as in Salesforce. */
.sched-rooms,
.sched-rooms[open] {
  margin: 1.25rem 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.sched-rooms summary,
.sched-rooms[open] summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
  border-left: 4px solid var(--cs-color-brand-40);
  cursor: pointer;
}

.sched-rooms summary::after {
  display: none;
}

.sched-rooms summary cs-icon {
  font-size: 1.25rem;
  transition: rotate var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.sched-rooms:not([open]) summary cs-icon {
  rotate: -90deg;
}

/* A booking someone can change is a button that opens Manage booking. */
button.chip {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  transition: filter var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

button.chip:hover {
  filter: brightness(0.92);
}

/* Inline chips: a status next to words, not in a grid cell. */
p .chip,
td .chip {
  display: inline-block;
}

.sched-grid td .chip {
  display: block;
}

/* --- Manage booking (the dialog from a Schedule chip) ---------------- */

.manage-dialog {
  --width: min(44rem, calc(100vw - 2rem));
}

.manage-booking p {
  margin: 0 0 0.2rem;
}

.manage-booking .chip {
  margin: 0 0 0 0.35rem;
  vertical-align: 0.1rem;
}

.manage-booking cs-icon {
  vertical-align: -0.15rem;
  color: var(--cs-color-success-40);
}

/* Only what the picked action needs shows. app.js keeps data-action and
 * data-scope in step with the radio buttons. */
.manage-move,
.manage-remove {
  display: none;
}

.manage-form[data-action='move'] .manage-move {
  display: grid;
  gap: 0.75rem;
}

.manage-form[data-action='remove'] .manage-remove {
  display: block;
}

.manage-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Bookings at the same times can be in different spaces: they keep their
 * own, so there's no space to pick. */
.manage-form[data-scope='time'] .manage-space {
  display: none;
}

/* A new day is for one booking at a time. */
.manage-form[data-scope]:not([data-scope='one']) .manage-day {
  display: none;
}

.manage-form[data-scope]:not([data-scope='one']) .manage-times {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#manage-preview {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-color-neutral-90);
}

#manage-preview cs-callout ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

#manage-preview cs-callout p {
  margin: 0;
}

.manage-changes td {
  vertical-align: top;
}

.manage-total {
  margin: 0;
}

.manage-notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.manage-notes li {
  display: flex;
  gap: 0.4rem;
  margin: 0.2rem 0;
  font-size: 0.875rem;
  color: var(--cs-color-text-quiet);
}

.manage-notes cs-icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--cs-color-brand-40);
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.saved,
.next-step {
  margin-bottom: 1rem;
}

/* Toasts (views.Saved, app.js): the stack sits under the top bar, so a
   toast never covers the search or the menus. A page with the stack hides
   its saved notes, which app.js moves into it. */
#toasts {
  padding-block-start: calc(var(--header-height, 4.5rem) + 0.5rem);
}

body:has(#toasts) .saved[data-toast] {
  display: none;
}

@media (max-width: 600px) {
  .manage-times,
  .manage-form[data-scope]:not([data-scope='one']) .manage-times {
    grid-template-columns: minmax(0, 1fr);
  }

  /* On a phone each change stacks: the booking, what it becomes, the charge. */
  .manage-changes thead {
    display: none;
  }

  .manage-changes tr {
    display: block;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--cs-color-neutral-90);
  }

  .manage-changes td {
    display: block;
    padding: 0.15rem 0;
    border: 0;
  }

  .manage-changes td:nth-child(2)::before {
    content: 'Becomes ';
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cs-color-text-quiet);
  }

  .manage-changes td.num {
    text-align: left;
  }

  .manage-changes td.num br {
    display: none;
  }

  .manage-changes td.num .quiet {
    margin: 0 0.25rem;
  }
}

/* While a new preview loads, the old one can't be saved. */
.manage-form.htmx-request #manage-preview {
  opacity: 0.55;
}

.manage-form.htmx-request .manage-actions cs-button:not([data-dialog]) {
  pointer-events: none;
}

/* A boxed example on the parts page, like the dialog it comes from. */
.parts-card {
  max-width: 44rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cs-color-surface-raised, #fff);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-md, 6px);
}

/* --- The booking calendar --------------------------------------------- *
 * Spaces down the side, time across. The server places each bar (left and
 * width as a share of the row, and a lane when bars overlap); calendar.js
 * only handles dragging and the hover card.
 */

/* It uses the whole width of the window, as the kitchen board does. */
.page:has(> .cal-page),
.page:has(> .kitchen-page) {
  max-width: none;
}

.cal {
  --space-w: 15rem;
  --lane-h: 1.6rem;
  --row-pad: 0.25rem;
  --grid-line: var(--cs-color-neutral-90);
  --track-min: 56rem;
}

.cal-day {
  --track-min: calc(var(--cols) * 3.5rem);
}

.cal-month {
  --track-min: calc(var(--cols) * 2.75rem);
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cal-nav,
.cal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cal-title {
  margin: 0;
  font-size: 1.35rem;
}

.cal-goto input[type='date'] {
  padding: 0.3rem 0.5rem;
  font: inherit;
  color: var(--cs-color-text-normal, inherit);
  background: var(--cs-color-surface-default, #fff);
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: var(--radius-sm, 4px);
}

.cal-today,
.cal-arrow,
.cal-views a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  text-decoration: none;
  border: 1px solid var(--cs-color-brand-40);
  border-radius: var(--radius-sm, 4px);
}

.cal-arrow {
  padding-inline: 0.35rem;
}

.cal-arrow cs-icon {
  font-size: 1.15rem;
}

.cal-views {
  display: inline-flex;
}

.cal-views a {
  border-radius: 0;
}

.cal-views a + a {
  border-left: 0;
}

.cal-views a:first-child {
  border-radius: var(--radius-sm, 4px) 0 0 var(--radius-sm, 4px);
}

.cal-views a:last-child {
  border-radius: 0 var(--radius-sm, 4px) var(--radius-sm, 4px) 0;
}

.cal-views a[aria-current] {
  color: #fff;
  background: var(--cs-color-brand-40);
}

/* The grid scrolls inside its own box, both ways, so the space names and
 * the days stay in sight. */
.cal-scroll {
  max-height: calc(100dvh - var(--header-height, 4rem) - var(--bottom-nav-height, 0px) - 11rem);
  min-height: 18rem;
  overflow: auto;
  background: var(--cs-color-surface-default, #fff);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-md, 6px);
}

.cal-grid {
  position: relative;
  min-width: calc(var(--space-w) + var(--track-min));
}

.cal-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  background: var(--cs-color-surface-default, #fff);
  border-bottom: 1px solid var(--cs-color-neutral-80);
}

.cal-corner {
  position: sticky;
  left: 0;
  z-index: 5;
  flex: 0 0 var(--space-w);
  padding: 0.5rem 0.75rem;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  background: var(--cs-color-surface-default, #fff);
  border-right: 1px solid var(--cs-color-neutral-80);
}

.cal-ticks {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}

.cal-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  border-left: 1px solid var(--grid-line);
}

.cal-day .cal-tick {
  align-items: flex-start;
  padding-left: 0.3rem;
}

.cal-tick-today {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.cal-body {
  position: relative;
}

/* Weekends, today, and now, behind the rows. */
.cal-shade {
  position: absolute;
  inset: 0 0 0 var(--space-w);
  z-index: 0;
  pointer-events: none;
}

.cal-shade span {
  position: absolute;
  top: 0;
  bottom: 0;
}

.cal-shade-weekend {
  background: var(--cs-color-neutral-95);
}

.cal-shade-today {
  background: var(--cs-color-brand-95);
}

.cal-shade .cal-now {
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: var(--aia-red);
}

/* A building or area: open when something is booked in view. */
.cal-group,
.cal-group[open] {
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.cal-group summary,
.cal-group[open] summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  background: var(--cs-color-neutral-95);
  border-bottom: 1px solid var(--cs-color-neutral-80);
  border-radius: 0;
}

.cal-group summary::after {
  display: none;
}

.cal-group-name {
  position: sticky;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--cs-font-family-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-neutral-95);
}

.cal-group-name .cal-chevron {
  transition: rotate var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.cal-group[open] .cal-group-name .cal-chevron {
  rotate: 90deg;
}

/* A building's icon beside its name, wherever buildings are listed. */
.building-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.building-name cs-icon,
.cal-group-name .building-icon {
  flex: none;
  font-size: 1.2em;
  color: var(--cs-color-brand-40);
}

.cal-group-count {
  font-size: 0.75rem;
  color: var(--cs-color-text-quiet);
}

.cal-row {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid var(--grid-line);
}

.cal-space {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: 0 0 var(--space-w);
  padding: 0.35rem 0.75rem 0.35rem 1.75rem;
  overflow: hidden;
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--cs-color-surface-default, #fff);
  border-right: 1px solid var(--cs-color-neutral-80);
}

.cal-track {
  position: relative;
  flex: 1;
  min-height: calc(var(--lanes) * var(--lane-h) + 2 * var(--row-pad));
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%;
}

/* The day view: a solid line for every hour, and a light dashed one at the
 * half hour, with a short mark for it under the hours across the top. */
.cal-day .cal-track {
  background-image: linear-gradient(to right, var(--cs-color-neutral-80) 1px, transparent 1px);
}

.cal-day .cal-track::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: '';
  background-image: linear-gradient(
    to right,
    transparent calc(50% - 0.5px),
    var(--grid-line) calc(50% - 0.5px) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  background-size: calc(100% / var(--cols)) 100%;
  /* 3px on, 3px off, down the row */
  mask-image: linear-gradient(to bottom, #000 3px, transparent 3px);
  mask-size: 100% 6px;
}

.cal-day .cal-tick {
  position: relative;
}

.cal-day .cal-tick::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 0.3rem;
  content: '';
  border-left: 1px solid var(--cs-color-neutral-80);
}

.cal[data-editable] .cal-track[data-bookable] {
  cursor: crosshair;
}

/* A booking. Colors are the chips' (Schedule tab): the same everywhere. */
.cal-bar {
  position: absolute;
  top: calc(var(--row-pad) + var(--lane) * var(--lane-h));
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: calc(var(--lane-h) - 3px);
  min-width: 6px;
  padding: 0 0.35rem;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 3px);
}

.cal-bar:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.cal-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-bar-booked {
  color: #fff;
  background: var(--aia-navy);
  border-color: var(--aia-navy);
}

.cal-bar-hold {
  color: var(--aia-navy);
  background: var(--cs-color-brand-90);
  border-color: var(--aia-navy);
}

.cal-bar-waitlist {
  color: var(--cs-color-warning-on-loud);
  background: var(--cs-color-warning-fill-loud);
  border-color: var(--cs-color-warning-border-loud);
}

/* Upkeep holds the space but isn't a customer: gray stripes. */
.cal-bar-upkeep {
  color: var(--cs-color-neutral-20);
  background: repeating-linear-gradient(
    135deg,
    var(--cs-color-neutral-90) 0 6px,
    var(--cs-color-neutral-95) 6px 12px
  );
  border-color: var(--cs-color-neutral-60);
}

/* Not free because a space sharing its floor is booked (Court 3 on 3A's
 * row): pale and hatched, so it reads as "blocked," not as a booking. */
.cal-bar-blocked {
  color: var(--cs-color-neutral-30);
  background: repeating-linear-gradient(
    45deg,
    var(--cs-color-neutral-95) 0 5px,
    #fff 5px 10px
  );
  border: 1px dashed var(--cs-color-neutral-60);
  font-weight: 500;
}

/* It carries on past what's shown. */
.cal-bar-clip-start {
  border-left-style: dashed;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cal-bar-clip-end {
  border-right-style: dashed;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cal-bar[data-movable] {
  cursor: grab;
}

.cal-bar[data-movable].cal-bar-edge {
  cursor: ew-resize;
}

.cal-bar.cal-dragging {
  z-index: 6;
  cursor: grabbing;
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

/* The payment mark: half full for deposit paid, green for paid. */
.cal-pay {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.cal-pay-deposit_paid {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.cal-pay-paid {
  background: var(--cs-color-success-40);
  border-color: #fff;
  box-shadow: 0 0 0 1px var(--cs-color-success-40);
}

/* Dragging across empty time to book it. */
.cal-select {
  position: absolute;
  top: 2px;
  bottom: 2px;
  z-index: 2;
  pointer-events: none;
  background: var(--cs-color-brand-90);
  border: 1px dashed var(--cs-color-brand-40);
  border-radius: var(--radius-sm, 3px);
}

/* The drag tip: while dragging, the new times by the pointer. */
.cal-drag-tip {
  position: fixed;
  z-index: 60;
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  color: #fff;
  background: var(--aia-navy);
  border-radius: var(--radius-sm, 4px);
  box-shadow: var(--shadow-md);
}

.cal-drag-tip[hidden] {
  display: none;
}

.cal-drag-tip span {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* On the parts page it sits still. */
.cal-drag-tip.cal-drag-tip-sample {
  position: static;
  display: inline-grid;
}

/* The hover card: one for the page, filled from the bar's hidden content. */
.cal-card {
  position: fixed;
  z-index: 50;
  display: grid;
  gap: 0.2rem;
  max-width: 21rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  pointer-events: none;
  background: var(--cs-color-surface-default, #fff);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-md, 6px);
  box-shadow: var(--shadow-md);
}

.cal-card[hidden],
.cal-card-content[hidden] {
  display: none;
}

.cal-card .cal-card-line {
  display: block;
}

.cal-card .chip {
  display: inline-block;
  margin: 0 0.35rem 0 0;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

.cal-bar-sample {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-style: solid;
  border-width: 1px;
  border-radius: var(--radius-sm, 3px);
}

.cal-legend-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cal-legend .cal-pay {
  margin: 0;
  color: var(--aia-navy);
}

.cal-help,
.cal-empty {
  margin-top: 0.5rem;
}

.cal-new-times {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.free-list {
  display: grid;
  gap: 0.35rem;
  max-height: 20rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.free-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cal-space-short {
  display: none;
}

/* Dragging needs a mouse; on a touch screen bars are links. */
@media (pointer: coarse) {
  .cal-help {
    display: none;
  }
}

@media (max-width: 600px) {
  .cal {
    --space-w: 8.5rem;
    --track-min: calc(var(--cols) * 4.5rem);
  }

  .cal-day {
    --track-min: calc(var(--cols) * 2.75rem);
  }

  .cal-month {
    --track-min: calc(var(--cols) * 2.25rem);
  }

  .cal-space {
    padding-left: 0.75rem;
    font-size: 0.75rem;
  }

  .cal-space-full {
    display: none;
  }

  .cal-space-short {
    display: inline;
  }

  .cal-title {
    order: -1;
    width: 100%;
    font-size: 1.15rem;
  }
}

/* --- Bulk Book --------------------------------------------------------- *
 * When and where on top, the grid of slots below, and a bar along the
 * bottom with the total and the button. A slot is a checkbox: checked
 * books it (or waitlists a taken one), and its color follows right away.
 */

.page:has(> .bulk-page) {
  max-width: 90rem;
}

.bulk-head h1 {
  margin: 0.25rem 0 0.25rem;
}

.bulk-head p {
  margin: 0;
}

.bulk-head a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bulk-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

/* A wide grid scrolls in its box; it never widens the page. */
.bulk-form > *,
.bulk-setup > * {
  min-width: 0;
}

.bulk-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  align-items: start;
}

.bulk-ask,
.bulk-when,
.bulk-where,
.bulk-review {
  padding: 1rem 1.25rem;
  background: var(--cs-color-surface-default, #fff);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-md, 6px);
}

.bulk-form h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.bulk-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.5rem;
}

.bulk-window-problem {
  grid-column: 1 / -1;
  margin: 0;
}

.bulk-days {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.bulk-days legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.bulk-day-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* A day: a toggle, navy when picked. */
.bulk-day {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.25rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: var(--radius-sm, 4px);
}

.bulk-day input,
.bulk-cell input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bulk-day:has(input:checked) {
  color: #fff;
  background: var(--aia-navy);
  border-color: var(--aia-navy);
}

.bulk-day:has(input:focus-visible),
.bulk-cell label:has(input:focus-visible) {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.bulk-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0.5rem 0 0;
}

.bulk-groups {
  max-height: 26rem;
  overflow: auto;
  border-top: 1px solid var(--cs-color-neutral-90);
}

.bulk-group,
.bulk-group[open] {
  margin: 0;
  padding: 0 0 0.25rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--cs-color-neutral-90);
  border-radius: 0;
}

.bulk-group summary,
.bulk-group[open] summary {
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 0;
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.bulk-group summary::after {
  margin-left: auto;
}

.bulk-spaces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.15rem 1rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.bulk-spaces label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0;
  font-size: 0.875rem;
  cursor: pointer;
}

.bulk-spaces li,
.bulk-spaces label {
  min-width: 0;
}

/* A building with floors: a column each, lowest on the left. */
.bulk-floors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.25rem 1.5rem;
}

.bulk-floor h3 {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bulk-floor .bulk-spaces {
  grid-template-columns: minmax(0, 1fr);
}

.bulk-space-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-badge {
  flex: none;
  margin-left: auto;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-sm, 3px);
}

.bulk-badge-open {
  color: var(--cs-color-success-30);
  background: var(--cs-color-success-90);
}

.bulk-badge-some {
  color: var(--cs-color-warning-on-normal, #6b4500);
  background: var(--cs-color-warning-fill-quiet, #fff4dc);
}

.bulk-badge-taken {
  color: var(--cs-color-danger-on-normal, #8a1c1c);
  background: var(--cs-color-danger-fill-quiet, #fdecec);
}

.bulk-badge-none {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
}

/* The left column on the Overnight rooms tab: When, then How many need
   rooms? under it. */
.bulk-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

/* How many need rooms? (AIASCRC-111): a card with a header band, the
   people and how many to a room lined up by their boxes, the rooms it
   comes to as a big number, then the dorms where they fit, each with
   its Pick button. */
.bulk-need {
  overflow: hidden;
  background: var(--cs-color-surface-default, #fff);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-md, 6px);
}

.bulk-form .bulk-need-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.6rem 1.25rem;
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.bulk-need-head cs-icon {
  color: var(--cs-color-brand-40);
}

.bulk-need-body {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem 1rem;
}

.bulk-need-body p {
  margin: 0;
}

/* Two by two: who's staying and how many to a room, then men and women. */
.bulk-need-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.6rem;
}

.bulk-need-field {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.bulk-need-field input {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: var(--radius-sm, 4px);
}

.bulk-need-field input:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.bulk-need-answer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bulk-need-big {
  font-family: var(--cs-font-family-heading);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--cs-color-brand-40);
  font-variant-numeric: tabular-nums;
}

.bulk-need-said {
  display: grid;
  gap: 0.1rem;
}

.bulk-need-fits {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bulk-need-body > cs-button,
.bulk-need-fits cs-button {
  justify-self: start;
}

.bulk-need-fits li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin: 0;
  padding: 0.4rem 0.6rem;
  background: var(--cs-color-neutral-95);
  border-radius: var(--radius-sm, 4px);
}

.bulk-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.bulk-count label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  margin: 0;
}

/* What Pick open rooms just did, or why it couldn't (Nov 13, 2026: with
   nothing to pick it said nothing, and seemed broken). */
.bulk-pick-note {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.bulk-pick-note cs-icon {
  flex: none;
  color: var(--cs-color-brand-40);
}

.bulk-count input {
  width: 4rem;
  padding: 0.25rem 0.4rem;
  font: inherit;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: var(--radius-sm, 4px);
}

.bulk-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bulk-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
}

.bulk-grid th {
  padding: 0.25rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.bulk-grid thead th span {
  display: block;
}

.bulk-grid .bulk-grid-space {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 12rem;
  font-size: 0.875rem;
  text-align: left;
  background: var(--cs-color-surface-default, #fff);
}

.bulk-grid-space span {
  display: block;
  font-weight: 400;
}

.bulk-warn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--cs-color-danger-on-normal, #8a1c1c);
}

/* The slots. */
.bulk-cell {
  min-width: 4.5rem;
  max-width: 9rem;
  height: 2.4rem;
  padding: 0;
  vertical-align: middle;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm, 3px);
}

.bulk-cell label {
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 0.3rem;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 3px);
}

.bulk-cell .bulk-on {
  display: none;
}

.bulk-cell label:has(input:checked) .bulk-on {
  display: inline;
}

.bulk-cell label:has(input:checked) .bulk-off {
  display: none;
}

.bulk-cell-open label {
  color: var(--cs-color-success-30);
  background: #fff;
  border-color: var(--cs-color-success-60);
}

.bulk-cell-open label:has(input:checked) {
  color: #fff;
  background: var(--cs-color-success-40);
  border-color: var(--cs-color-success-40);
}

.bulk-cell-taken label {
  color: var(--cs-color-danger-on-normal, #8a1c1c);
  background: var(--cs-color-danger-fill-quiet, #fdecec);
  border-color: var(--cs-color-danger-border-quiet, #f3c4c4);
}

.bulk-cell-taken label span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-cell-taken label:has(input:checked) {
  color: var(--cs-color-warning-on-loud);
  background: var(--cs-color-warning-fill-loud);
  border-color: var(--cs-color-warning-border-loud);
}

.bulk-cell-ours {
  color: var(--aia-navy);
  background: var(--cs-color-brand-90);
  border: 1px solid var(--aia-navy);
}

.bulk-cell-none {
  color: var(--cs-color-text-quiet);
  background: repeating-linear-gradient(
    135deg,
    var(--cs-color-neutral-90) 0 6px,
    var(--cs-color-neutral-95) 6px 12px
  );
}

/* The total and the button, always in sight. */
.bulk-summary {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--cs-color-surface-default, #fff);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-md, 6px);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.bulk-summary-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.bulk-total {
  flex-basis: 100%;
}

.bulk-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

/* Check availability's bar: short labels on a phone, so its three buttons
 * share a line rather than cover the page. */
.avail-bar .label-short {
  display: none;
}

@media (max-width: 640px) {
  .avail-bar {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .avail-bar cs-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .avail-bar .label-long {
    display: none;
  }

  .avail-bar .label-short {
    display: inline;
  }
}

.bulk-badges-sample .bulk-badge {
  margin-left: 0;
}

/* On the parts page the bar sits still. */
.bulk-summary.bulk-summary-sample {
  position: static;
}

.sched-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

@media (max-width: 900px) {
  .bulk-setup {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .bulk-grid .bulk-grid-space {
    min-width: 8rem;
  }

  .bulk-when,
  .bulk-where,
  .bulk-review,
  .bulk-summary,
  .bulk-need-body,
  .bulk-form .bulk-need-head {
    padding-inline: 0.75rem;
  }
}

/* --- Settings > Spaces -------------------------------------------------- */

.space-buildings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
}

.space-building,
.space-card {
  padding: 1rem 1.25rem;
  background: var(--cs-color-surface-default, #fff);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-md, 6px);
}

.space-card {
  max-width: 44rem;
  margin-top: 1rem;
}

/* A space's own details: folded on its page, a form of rows. Rows line
   up at the top, so a hint hangs under its own box. */
.space-details > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  cursor: pointer;
}

.space-details > summary h2 {
  margin: 0;
}

.space-details[open] > summary {
  margin-bottom: 0.75rem;
}

.space-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  align-items: start;
  gap: 0.75rem 1rem;
}

.space-form .field-note {
  margin: -0.5rem 0 0;
}

/* Making a space from others, folded until asked for. */
.space-make {
  margin-top: 0.75rem;
}

.space-make > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cs-color-brand-40);
  font-weight: 600;
  cursor: pointer;
}

.space-make[open] > summary {
  margin-bottom: 0.5rem;
}

.space-building header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.spaces-page h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

/* The tree: a whole's parts nested under it, with a line down the side. */
.space-tree,
.space-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.space-tree ul {
  margin-left: 0.6rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--cs-color-brand-80);
}

.space-tree li {
  padding: 0.15rem 0;
}

.space-node {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.space-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
  border-radius: var(--radius-sm, 3px);
}

.space-tag-off {
  color: var(--cs-color-warning-on-normal, #6b4500);
  background: var(--cs-color-warning-fill-quiet, #fff4dc);
}

.space-tag-whole {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.space-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.space-choices label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.space-pick {
  margin: 0;
  padding: 0;
  border: 0;
}

.space-pick legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

/* Search picks: a text box that filters a long list under it. The list
 * sits in the page's flow, so a dialog never cuts it off. */
.search-pick {
  display: grid;
  /* In a row taller than it (a hint under the field beside it), its label
   * and box stay at the top, in line with the other fields'. */
  align-content: start;
  gap: 0.5em;
  min-width: 0;
}

.search-pick-box {
  position: relative;
}

.search-pick-box input {
  width: 100%;
  padding-inline: 2.25rem 2.25rem;
  text-overflow: ellipsis;
}

.search-pick-icon,
.search-pick-toggle {
  position: absolute;
  top: 50%;
  display: flex;
  color: var(--cs-color-text-quiet);
  transform: translateY(-50%);
}

.search-pick-icon {
  left: 0.75rem;
  pointer-events: none;
}

.search-pick-toggle {
  right: 0.5rem;
  cursor: pointer;
}

.search-pick-list {
  max-height: 16rem;
  margin: 0;
  padding: 0.25rem 0;
  overflow-y: auto;
  list-style: none;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
}

/* Floating over the page (app.js places it): the browser's own popover
 * styles centered it in the window. */
.search-pick-list[popover] {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  height: auto;
  margin: 0;
  color: inherit;
}

.search-pick-list [role='option'] {
  display: grid;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

/* After the rule above, so a filtered-out option really hides. */
.search-pick-list[hidden],
.search-pick-list [role='option'][hidden],
.search-pick-none[hidden] {
  display: none;
}

.search-pick-list [role='option']:hover,
.search-pick-list .is-active {
  background: var(--cs-color-brand-fill-quiet);
}

.search-pick-list .is-active {
  box-shadow: inset 3px 0 0 var(--cs-color-brand-40);
}

.search-pick-list [aria-selected='true'] .search-pick-label {
  font-weight: 600;
}

.search-pick-hint,
.search-pick-none {
  color: var(--cs-color-text-quiet);
  font-size: 0.8125rem;
}

.search-pick-none {
  padding: 0.4rem 0.75rem;
}

/* Settings: "Settings › Booking", then the group's tabs, a head with its
   main button, a search. */
.settings-tabs {
  margin-bottom: 1.25rem;
}

.settings-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--cs-color-text-quiet);
}

.settings-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--cs-color-brand-40);
  font-weight: 600;
  text-decoration: none;
}

.settings-crumbs a:hover {
  text-decoration: underline;
}

.settings-crumbs cs-icon {
  font-size: 1.1rem;
}

.settings-crumbs + .tabs {
  margin-top: 0;
}

/* The Settings page: each group, then a card for each of its sections. */
.settings-home-title {
  margin-top: 0;
}

.settings-groups {
  display: grid;
  gap: 2rem;
}

.settings-group h2 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.settings-group > p {
  margin: 0 0 0.75rem;
}

.settings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.75rem;
}

.settings-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--cs-color-text-normal);
  text-decoration: none;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.settings-card:hover,
.settings-card:focus-visible {
  border-color: var(--cs-color-brand-70);
  box-shadow: var(--cs-shadow-m);
}

.settings-card > cs-icon {
  flex: none;
  margin-top: 0.1rem;
  font-size: 1.5rem;
  color: var(--cs-color-brand-40);
}

.settings-card strong {
  display: block;
  color: var(--cs-color-brand-40);
}

.settings-card .small {
  display: block;
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .settings-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.settings-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.settings-head h1 {
  margin-top: 0;
}

.settings-head p {
  max-width: 44rem;
}

.settings-search {
  max-width: 32rem;
  margin: 1rem 0 0.5rem;
}

.settings-search .search-pick-box {
  display: block;
}

/* Chartfields: turned-off ones fade; on a phone, what uses them folds away. */
.cf-table .cf-off td {
  color: var(--cs-color-text-quiet);
}

.cf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cf-products {
  columns: 2 14rem;
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.cf-history {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Add a chartfield, folded under the picker in the Lines tab's dialog. */
.cf-add {
  border-style: dashed;
}

/* Cornerstone spreads a summary's parts apart; keep the words by the icon
 * and the arrow at the end. */
.cf-add summary {
  gap: 0.35rem;
  justify-content: flex-start;
  padding-block: 0.6rem;
  color: var(--cs-color-brand-40);
  font-weight: 600;
}

.cf-add summary::after {
  margin-left: auto;
}

.cf-add[open] summary {
  margin-bottom: 0.75rem;
}

/* Long paths break anywhere rather than push the type off the screen. */
.cf-table td:first-child {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .cf-table .cf-used {
    display: none;
  }
}

/* The list's title with its New button. */
.split-list-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

/* New reservation: two columns of fields, the wide ones across both. */
.new-res-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 1rem;
}

.new-res-wide {
  grid-column: 1 / -1;
}

.new-res-dates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.new-res-dates legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 600;
}

#new-checks cs-icon {
  vertical-align: -0.15rem;
}

@media (max-width: 700px) {
  .new-res-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .new-res-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.record-status-button {
  margin-left: 0.25rem;
}

/* Details tab: the reservation's facts in groups, two across on a desktop. */
.details-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.details-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.details-groups h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

/* Each group on the Details tab is a card, labeled as a lead's boxes
   are. */
.details-card {
  --spacing: var(--cs-space-m);
}

.details-card .details-list {
  margin: 0;
}

.details-wide {
  grid-column: 1 / -1;
}

/* Ask an Admin on the home page, for someone with no access yet
   (AIASCRC-161): a card with a tinted header band, what's happened in its
   body, and what they need it for in a gray foot. */
.home-ask {
  max-width: 36rem;
  margin: var(--cs-space-l) 0;
  overflow: hidden;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-sm, 4px);
}

.home-ask-head {
  padding: 0.5rem 0.8rem;
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.home-ask-head h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1rem;
  color: var(--cs-color-brand-20);
}

.home-ask-body {
  padding: 0.75rem 0.8rem;
}

.home-ask-body p {
  margin: 0;
}

.home-ask-done {
  display: flex;
  gap: var(--cs-space-xs);
  align-items: flex-start;
}

.home-ask-done cs-icon {
  flex: none;
  color: var(--cs-color-success-30);
}

.home-ask-form {
  display: grid;
  gap: var(--cs-space-m);
  justify-items: start;
  padding: 0.75rem 0.8rem;
  background: var(--cs-color-neutral-95);
  border-top: 1px solid var(--cs-color-neutral-90);
}

.home-ask-form cs-textarea {
  justify-self: stretch;
}

/* A person's page in Settings > People, while they've asked for access and
   hold no set. */
.person-asked {
  margin: var(--cs-space-m) 0;
}

/* Start over, folded at the bottom of a reservation's Details tab: Clear
   lines and Delete, each with why. */
.start-over {
  grid-column: 1 / -1;
  max-width: 36rem;
  margin-top: 1rem;
}

.start-over summary {
  color: var(--cs-color-text-quiet);
  cursor: pointer;
}

.start-over form {
  margin-top: 1rem;
}

.start-over form + form {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.start-over h3,
.start-over p {
  margin: 0;
}

.lines-cleared p {
  margin: 0 0 0.5rem;
}

.details-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}

.details-list div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 0.75rem;
}

.details-list dt {
  color: var(--cs-color-text-quiet);
}

.details-list dd {
  margin: 0;
}

.details-note {
  white-space: pre-line;
}

@media (max-width: 700px) {
  .details-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .details-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* The facts that decide prices and taxes, boxed under the money in a light
 * brand tint; the price book and account type are the loudest. */
.record-facts-box {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.4fr 0.7fr;
  gap: 1px;
  margin: -0.25rem 0 1rem;
  background: var(--cs-color-brand-border-quiet);
  border: 1px solid var(--cs-color-brand-border-quiet);
}

.record-facts-box > div {
  min-width: 0;
  padding: 0.6rem 1rem;
  background: var(--cs-color-brand-fill-quiet);
}

.record-facts-box dt {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.record-facts-box dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.record-facts-box .fact-key dd {
  font-family: var(--cs-font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.record-facts-box .fact-note {
  display: block;
  font-family: var(--cs-font-family-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--cs-color-text-quiet);
}

.record-facts-box .fact-missing,
.record-facts-box .fact-key .fact-missing {
  color: var(--cs-color-danger-40);
}

@media (max-width: 700px) {
  .record-facts-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Change status: each choice wears its header badge. */
.status-now {
  margin: 0;
}

.status-now cs-badge {
  vertical-align: 0.1rem;
}

.status-choices cs-radio {
  margin-block: 0.15rem;
}

.status-meaning {
  display: block;
  margin-top: 0.15rem;
}

/* Previews: money wraps under itself instead of widening the table. */
.manage-charge .manage-uncharged {
  display: block;
}

/* New account and New contact: fields in pairs and threes, and what may
 * already be here, each with a way to use it. */
.pick-form-two,
.pick-form-three {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pick-form-three {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.match-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-list li {
  display: flex;
  margin: 0; /* Cornerstone indents list items */
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.match-why {
  display: inline-block;
  margin: 0.25rem 0.35rem 0 0;
  padding: 0.05rem 0.4rem;
  font-size: 0.75rem;
  background: var(--cs-color-warning-fill-quiet);
  border-radius: 999px;
}

.search-pick-add {
  margin-top: 0.1rem;
}

@media (max-width: 600px) {
  .pick-form-two,
  .pick-form-three {
    grid-template-columns: minmax(0, 1fr);
  }

  .match-list li {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Payments: Finance's button by the heading; refunds under their payment;
 * the dialog shows the amount box only for "Another amount" and the
 * chartfield only for a chartfield transfer. */
.pay-head {
  display: flex;
  flex-wrap: wrap; /* a long button goes under its heading on a phone */
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.pay-table .refund-row td {
  font-size: 0.875rem;
  background: var(--cs-color-neutral-95);
}

.pay-table .refund-row cs-icon {
  vertical-align: -0.15rem;
  color: var(--cs-color-text-quiet);
}

.manage-form:not([data-pick='other']) .pay-amount,
.manage-form:not([data-method='chartfield']) .pay-chartfield {
  display: none;
}

/* The warning for one of SCRC's own chartfields (AIASCRC-97) keeps the
   form's own gaps, not a callout's margin on top of them. */
#pay-own > cs-callout {
  margin-bottom: 0;
}

.pay-table .pay-inline,
.pay-table .label-short {
  display: none;
}

/* A card dispute on a payment (AIASCRC-80): open, in a problem's color
   with its icon; decided, quiet. */
.pay-dispute {
  margin: 0.3rem 0 0;
  max-width: 22rem;
  white-space: normal;
  color: var(--cs-color-danger-40);
}

.pay-dispute cs-icon {
  vertical-align: -0.15em;
}

@media (max-width: 600px) {
  .pay-table .pay-date,
  .pay-table .pay-fee,
  .pay-table .pay-status,
  .pay-table .pay-ref,
  .pay-table .label-long {
    display: none;
  }

  .pay-table .pay-inline {
    display: block;
    margin-top: 0.25rem;
  }

  .pay-table .label-short {
    display: inline;
  }

  .pay-table th,
  .pay-table td {
    padding-inline: 0.4rem;
  }
}

/* A required search pick: an asterisk like Cornerstone's fields, and a
 * note under it while nothing is picked. */
.required-mark {
  margin-left: 0.1em;
  color: var(--cs-form-control-required-content-color, inherit);
}

.search-pick-needed {
  display: none;
  gap: 0.3rem;
  align-items: center;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
}

.search-pick:has(> input[type='hidden'][value='']) .search-pick-needed {
  display: flex;
}

/* A search pick marks the words typed, so it's plain why each one shows. */
.search-pick-list mark {
  padding: 0 0.05em;
  color: inherit;
  background: var(--cs-color-warning-fill-normal, #fde7a8);
  border-radius: 2px;
}

/* Each way of paying has its icon, in the dialog and the Payments table. */
.method-icon {
  margin-right: 0.3rem;
  font-size: 1.15em;
  vertical-align: -0.2em;
  color: var(--cs-color-brand-40);
}

/* A cancelled, billable reservation's bill, and Finance's buttons beside a
 * payment (Give back, Move). */
.settle-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-neutral-95);
  border: 1px dashed var(--cs-color-neutral-70);
}

.settle-box p {
  margin: 0;
}

.pay-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* The search box in the top bar, and its results under it. */
.topbar-search {
  position: relative;
  grid-area: search;
  width: 100%;
  max-width: 40rem;
  min-width: 0;
}

.topbar-search .search-pick-box {
  display: block;
}

/* Quietly filled until it's clicked into, then white, like a field. */
.topbar-search input {
  width: 100%;
  padding-block: 0.45rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  background: var(--cs-color-neutral-95);
  border-color: transparent;
  border-radius: 999px;
}

.topbar-search input:hover {
  border-color: var(--cs-color-neutral-80);
}

.topbar-search input:focus {
  background: var(--cs-color-surface-default);
  border-color: var(--cs-color-brand-40);
}

.topbar-search .search-pick-icon {
  left: 0.9rem;
}

.topbar-search-key {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  font: 600 0.8rem var(--cs-font-family-body, inherit);
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
  transform: translateY(-50%);
  pointer-events: none;
}

.topbar-search input:focus ~ .topbar-search-key,
.topbar-search input:not(:placeholder-shown) ~ .topbar-search-key {
  display: none;
}

@media (hover: none), (max-width: 640px) {
  .topbar-search-key {
    display: none;
  }
}

.search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  z-index: 30;
  min-width: 20rem;
  max-height: 70vh;
  padding: 0;
  overflow-y: auto;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
  box-shadow: 0 6px 18px rgb(0 0 0 / 14%);
}

/* On a phone the search box is narrow, so its results take the screen's
 * width, just under the top bar. */
@media (max-width: 640px) {
  .topbar-search {
    position: static;
  }

  .topbar-search .search-results {
    right: 0.5rem;
    left: 0.5rem;
    min-width: 0;
  }
}

.search-page .search-results {
  position: static;
  max-height: none;
  box-shadow: none;
}

/* Each kind of result is its own band: a tinted heading with its icon and
 * how many, and a line above every band after the first. The heading stays
 * in sight while its rows scroll. */
.search-kind + .search-kind {
  border-top: 1px solid var(--cs-color-surface-border);
}

.search-kind-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.search-kind-head cs-icon {
  font-size: 1.1rem;
}

.search-count {
  min-width: 1.25rem;
  padding: 0 0.4rem;
  font-size: 0.7rem;
  line-height: 1.25rem;
  text-align: center;
  letter-spacing: 0;
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  border-radius: 999px;
}

.search-results ul {
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}

.search-results li {
  margin: 0;
}

.search-results a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  color: inherit;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--cs-color-brand-fill-quiet);
}

.search-row-icon {
  margin-top: 0.1rem;
  font-size: 1.15rem;
  color: var(--cs-color-text-quiet);
}

.search-text {
  display: grid;
  gap: 0.1rem;
}

.search-name {
  font-weight: 600;
}

.search-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--cs-color-text-quiet);
}

.search-results > p {
  margin: 0;
  padding: 0.6rem 0.75rem;
}

/* An account's contacts and reservations, under its facts. */
.account-people .record-name cs-badge {
  margin-left: 0.35rem;
  vertical-align: 0.1rem;
}

.account-edit {
  max-width: 44rem;
  margin-bottom: 1rem;
}

.account-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.75rem;
}

/* An account's tabs (David, Oct 31, 2026): Reservations, Contacts, and
   Pays with or Insurance, under its facts, each tab's buttons on top. */
.account-tabs {
  margin-top: 1.5rem;
}

.account-tab-actions {
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

/* Its rows' lines end where the tabs' line does. */
.account-tab-panel .record-list {
  margin: 0;
}

/* Each group's total, in a pill by its name; Past folds away with a click
   on its name, the chevron turning; a group of more than ten pages with
   Cornerstone's pager under it. */
.booked-count {
  margin-left: 0.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--cs-color-brand-95);
  border: 1px solid var(--cs-color-brand-80);
  font-family: var(--cs-font-family-body);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Cornerstone draws a details as a panel, its summary spread across with
   an arrow at the end; Past reads as the other groups' labels instead. */
.booked-fold,
.booked-fold[open] {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

/* A kind of group that doesn't fit the first answer (AccountKindFields):
   Cornerstone's radio draws itself, so hidden needs saying. */
cs-radio[hidden] {
  display: none;
}

/* Choice cards (AccountKindFields; David, Oct 30, 2026): a choice of a
   few, each a card with an icon, its name, and what it means, three to a
   row so the two questions' cards line up, one to a row on a phone.
   They're Cornerstone's button radios, so clicks, keys, and the form's
   value are its own; here they're set apart instead of joined, and the
   picked one gets a heavier edge on Cornerstone's own tint. */
.choice-cards::part(form-control-input) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.choice-cards cs-radio {
  margin: 0;
  padding: 0.75rem 0.9rem;
  align-items: flex-start;
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.choice-cards cs-radio::part(label) {
  display: block;
  width: 100%;
}

.choice-cards cs-radio:state(checked) {
  box-shadow: inset 0 0 0 1px var(--cs-form-control-activated-color);
}

.choice-card {
  display: grid;
  gap: 0.15rem;
}

.choice-card cs-icon {
  font-size: 1.6rem;
  color: var(--cs-color-brand-40);
}

.choice-card strong {
  font-weight: 600;
}

.choice-card-note {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--cs-color-text-quiet);
}

@media (max-width: 640px) {
  .choice-cards::part(form-control-input) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .choice-cards cs-radio {
    padding: 0.6rem 0.8rem;
  }

  .choice-card {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
  }

  .choice-card cs-icon {
    grid-row: span 2;
    align-self: center;
  }
}

/* A record's System information, folded at the bottom of its page (David,
   Oct 30, 2026): Cornerstone's details panel, quieter than the page's
   sections, opening to who made it and who last changed it. */
.system-info {
  margin-top: 2.5rem;
}

.system-info > summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.system-info > summary cs-icon {
  margin-right: 0.35rem;
  vertical-align: -0.15em;
}

.system-info .details-list {
  margin-top: 0.25rem;
}

/* One of an account's people: the row opens them, and at its end a menu
   (more_horiz) makes them its primary contact or marks them no longer
   with it; someone no longer with it has Back with them there instead
   (David, Oct 30, 2026). */
.contact-row {
  position: relative;
}

.contact-row > .record-row {
  padding-right: 3.5rem;
}

.contacts-former .contact-row > .record-row {
  padding-right: 10rem;
}

.contact-menu,
.contact-back {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  translate: 0 -50%;
}

.contact-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--cs-border-radius-m, 0.5rem);
  cursor: pointer;
}

.contact-menu-button:hover,
.contact-menu-button:focus-visible {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-40);
}

.contact-menu-button cs-icon {
  font-size: 1.3rem;
}

/* The chartfields one of ours pays with, a list like its people's (David,
   Oct 30, 2026). A row opens the chartfield's page for those who can see
   chartfields; for anyone else its name is plain text, not a link's navy. */
.pays-with div.record-row .record-name {
  color: var(--cs-color-text-normal);
}

.pays-add {
  margin-top: 1rem;
  max-width: 32rem;
}

/* A contact's staff badge, by their email's domain (David, Oct 30, 2026):
   filled with their ministry's color, which the theme sets as
   --staff-fill and --staff-on (aia.css), with room after the name (David,
   Oct 30, 2026: it sat cramped against it in the Contacts list). Beside
   a name on their page, it keeps the body's size. */
.staff-badge {
  --cs-color-fill-loud: var(--staff-fill, var(--cs-color-neutral-40));
  --cs-color-border-loud: var(--staff-fill, var(--cs-color-neutral-40));
  --cs-color-on-loud: var(--staff-on, white);
  margin-left: 0.6rem;
  vertical-align: 0.1rem;
}

.record-head h2 .staff-badge {
  margin-left: 0.5rem;
  vertical-align: 0.3em;
  font-family: var(--cs-font-family-body);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Insurance and waivers (David, Oct 30, 2026): Add a certificate and Record
   a waiver signed on paper fold under their lists, opening to their
   forms; a reservation's waivers list with Take it off at the end. */
.cert-add {
  margin-top: 1rem;
}

.cert-add summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  cursor: pointer;
  list-style: none;
}

.cert-add summary::-webkit-details-marker {
  display: none;
}

.cert-add > form {
  max-width: 40rem;
  margin-top: 0.75rem;
}

.waiver-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.waiver-list:empty {
  display: none;
}

.waiver-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.cover-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--cs-color-success-40);
}

.cover-warning a {
  margin-left: 0.5rem;
}

.contact-left-head {
  margin: 1.25rem 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

@media (max-width: 640px) {
  .contacts-former .contact-row > .record-row {
    padding-right: 1rem;
    padding-bottom: 3.25rem;
  }

  .contact-back {
    top: auto;
    bottom: 0.6rem;
    left: 1rem;
    right: auto;
    translate: none;
  }
}

/* A group's bar (Quotes, Coming up, Past, and the people no longer with
   an account): navy across the page with white words (David, Nov 3, 2026:
   the bars looked like they floated above their tables), its name and
   count on the left and on the right what a click does (Show them, Hide
   them) with an arrow that turns. Open, it joins straight onto its table,
   whose header row turns light so the two read as one block. */
.booked-fold > summary,
.booked-fold[open] > summary {
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border: 1px solid var(--cs-color-brand-40);
  border-radius: var(--cs-border-radius-m, 0.5rem);
  transition: background-color var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.booked-fold[open] > summary {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.booked-fold > summary:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.booked-fold .booked-bar-title,
.booked-fold .booked-bar-hint {
  color: var(--cs-color-brand-on);
}

.booked-fold .booked-count {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border-color: var(--cs-color-surface-default);
}

/* What it opens hangs from the bar: no gap, no rounded top, its sides
   lined up with the bar's. */
.booked-fold[open] > .booked-page .table-wrap,
.booked-fold[open] > .record-list {
  margin-top: 0;
}

.booked-fold[open] > .booked-page .data-table {
  border-top: 0;
}

.booked-fold[open] > .record-list {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--cs-color-surface-border);
  border-top: 0;
  border-radius: 0 0 var(--cs-border-radius-m, 0.5rem) var(--cs-border-radius-m, 0.5rem);
}

.booked-group:first-child > summary {
  margin-top: 0.5rem;
}

.booked-fold > summary:hover {
  background: var(--cs-color-brand-30);
}

.booked-fold > summary::after {
  display: none;
}

.booked-bar-title {
  display: flex;
  align-items: center;
  font-family: var(--cs-font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.booked-bar-hint {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cs-color-brand-40);
}

@media (max-width: 640px) {
  .booked-bar-title {
    font-size: 1rem;
  }
}

.booked-fold:not([open]) .booked-bar-hide,
.booked-fold[open] .booked-bar-show {
  display: none;
}

.booked-fold-icon {
  font-size: 1.5rem;
  transition: rotate var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.booked-fold[open] .booked-fold-icon {
  rotate: 180deg;
}

.booked-pager,
.list-pager {
  display: block;
  margin-top: 0.75rem;
}

/* A drawer's pager sits under its rows, inside the drawer's gutter. */
.split-list .list-pager {
  margin: 0.75rem 0 1rem;
}

/* A group's reservations as a table (bookedTable), hung from the group's
   navy bar: a light header row in navy words (it was navy itself until
   the bar turned navy, Nov 3, 2026), month headings, and rows tinted by
   how close they are, with a word to say why, never the color alone. */
.booked-table thead th {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-90);
}

.booked-table .booked-month th {
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
}

.booked-table .booked-now {
  background: color-mix(in srgb, var(--cs-color-success-90) 55%, transparent);
}

.booked-table .booked-now > td:first-child {
  box-shadow: inset 4px 0 0 var(--cs-color-success-40);
}

.booked-table .booked-soon {
  background: var(--cs-color-brand-95);
}

.booked-table .booked-soon > td:first-child {
  box-shadow: inset 4px 0 0 var(--cs-color-brand-40);
}

.booked-tag {
  margin-right: 0.35rem;
  vertical-align: 0.1em;
}

/* The whole row opens the reservation (the name's link stretched over
   it, as a list's are). */
.booked-table tbody tr {
  position: relative;
}

.booked-table tbody tr:has(.browse-link:focus-visible) {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: -2px;
}

.booked-number {
  display: block;
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

@media (max-width: 640px) {
  .booked-table .browse-fold {
    display: none;
  }

  .booked-table .browse-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
  }
}

.search-name cs-badge {
  margin-left: 0.3rem;
  vertical-align: 0.05rem;
}

@media (max-width: 1000px) {
  .account-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .account-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The Journal: what the next download sends, grouped by reservation. */
.journal-through {
  max-width: 16rem;
  margin: 1rem 0;
}

.journal-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1rem;
}

.journal-held {
  margin-bottom: 1rem;
}

.journal-held p {
  margin: 0 0 0.5rem;
}

.journal-held ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.1rem;
}

.journal-held .jrv-fix {
  padding-left: 0;
}

/* A chartfield path has no spaces; on a phone it breaks rather than
   pushing the box wider than the screen. */
.jrv-fix .small,
.jrv-move-facts dd,
.jr-fix-what .small {
  overflow-wrap: anywhere;
}

.journal-head {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 2rem;
}

.jr-table .jr-res th {
  padding-top: 0.9rem;
  font-weight: 600;
  text-align: left;
  background: var(--cs-color-brand-fill-quiet);
}

.jr-table .jr-res .quiet {
  margin-left: 0.4rem;
  font-weight: 400;
}

.jr-table .jr-credit {
  color: var(--cs-color-text-quiet);
}

.jr-table .jr-inline {
  display: none;
}

/* The download area, first on the page: the day, the totals, what's held
 * back, then the two downloads side by side. */
.journal-download {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.journal-download .journal-through,
.journal-download .journal-facts {
  margin: 0;
}

.journal-download p {
  margin: 0;
}

.journal-issues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--cs-color-warning-95, var(--cs-color-yellow-95));
  border: 1px solid var(--cs-color-warning-80, var(--cs-color-yellow-80));
  border-radius: var(--radius-sm, 4px);
}

.journal-issues > cs-icon {
  font-size: 1.3rem;
  color: var(--cs-color-warning-40, var(--cs-color-yellow-40));
}

.journal-issues span {
  flex: 1 1 18rem;
}

.journal-send {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
}

.journal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Fix issues: each held reservation, why, and a picker for each line. */
.jr-fix-item {
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.jr-fix-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.jr-fix-item p {
  margin: 0.25rem 0 0.5rem;
}

.jr-fix-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: end;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--cs-color-neutral-95);
  border-radius: var(--radius-sm, 4px);
}

.jr-fix-what {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .jr-fix-line {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The other way to fix a line on a department with no revenue GL, joined
   under its chartfield picker. */
.jr-fix-line:has(+ .jr-fix-gl) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.jr-fix-gl {
  display: block;
  margin-top: 2px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.jr-fix-gl p {
  margin: 0 0 0.4rem;
}

.jr-fix-gl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
}

.jr-fix-gl-row cs-input {
  width: 8rem;
}

.journal-who {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.journal-downloads {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

@media (max-width: 700px) {
  .journal-facts,
  .journal-who {
    grid-template-columns: minmax(0, 1fr);
  }

  .jr-table .jr-fold,
  .jr-batches .jr-fold {
    display: none;
  }

  .jr-table .jr-inline {
    display: block;
    margin-top: 0.15rem;
  }

  .jr-table .jr-type {
    white-space: normal;
  }

  .jr-table th,
  .jr-table td {
    padding-inline: 0.4rem;
  }
}

/* --- The Dashboard and the journal review ---
 * Salesforce's review screen: what to look at, then each reservation as a
 * block that opens to its journal lines, and each line to what it came
 * from. Line types keep Salesforce's colors, from Cornerstone's palette. */

.dashboard-title {
  margin-bottom: 0;
}

.dashboard-tabs {
  margin-top: 0.75rem;
}

.jrv-modes {
  display: inline-flex;
  flex-wrap: wrap;
  margin: 0.25rem 0 1rem;
}

.jrv-modes a {
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  text-decoration: none;
  border: 1px solid var(--cs-color-brand-40);
}

.jrv-modes a + a {
  border-left: 0;
}

.jrv-modes a:first-child {
  border-radius: var(--radius-sm, 4px) 0 0 var(--radius-sm, 4px);
}

.jrv-modes a:last-child {
  border-radius: 0 var(--radius-sm, 4px) var(--radius-sm, 4px) 0;
}

.jrv-modes a[aria-current] {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
}

.jrv-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.jrv-filter cs-checkbox {
  padding-bottom: 0.5rem;
}

.jrv-fy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.jrv-picked {
  display: grid;
  gap: 0.1rem;
}

.jrv-find,
.jrv-narrow {
  display: block;
  flex: 1 1 18rem;
  max-width: 32rem;
}

.jrv-find input,
.jrv-narrow input {
  width: 100%;
  padding-left: 2.25rem;
}

.jrv-matches {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.jrv-matches a {
  font-weight: 600;
}

.jrv-matches .small {
  display: block;
}

.jrv-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0.5rem;
}

.jrv-count {
  font-weight: 600;
}

.jrv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jrv-balance {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

/* Balanced is a band, as Salesforce's upload page had it. */
.jrv-balance-ok {
  padding: 0.55rem 0.9rem;
  color: var(--cs-color-success-40);
  background: var(--cs-color-green-95);
  border-left: 4px solid var(--cs-color-success-40);
  border-radius: 0.3rem;
}

.jrv-held,
.jrv-fix {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0.5rem 0 0;
  list-style: none;
}

.jrv-fix li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--cs-color-surface-default);
  border-radius: var(--radius-sm, 4px);
}

.jrv-fix .small {
  display: block;
}

.jrv-fix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* The GL codes the departments post to, as suggestions that fill the box. */
.jrv-gl-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jrv-gl-picks .small {
  margin-left: 0.4rem;
}

/* The dialog's stack spaces its parts apart; the label sits with its picks. */
.manage-form .jrv-gl-picks-label {
  margin-bottom: -0.5rem;
}

.jr-fix-gl .jrv-gl-picks {
  margin-bottom: 0.6rem;
}

.jrv-group {
  margin-bottom: 0.75rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.jrv-group > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.jrv-group[open] > summary {
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.jrv-group-name {
  display: grid;
  flex: 1 1 14rem;
  min-width: 0;
}

.jrv-group-name strong {
  color: var(--cs-color-brand-40);
}

.jrv-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.85rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.jrv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

.jrv-chip-paid {
  color: var(--cs-color-green-30);
  background: var(--cs-color-green-95);
}

.jrv-chip-sent {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
}

.jrv-chip-off {
  color: var(--cs-color-danger-40);
  background: var(--cs-color-danger-95, var(--cs-color-pink-95));
}

.jrv-open {
  display: inline-flex;
  color: var(--cs-color-brand-40);
}

.jrv-group .table-wrap {
  margin: 0;
}

.jrv-table {
  margin: 0;
}

.jrv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.jrv-toggle cs-icon {
  color: var(--cs-color-brand-40);
  transition: transform var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.jrv-toggle[aria-expanded='true'] cs-icon {
  transform: rotate(90deg);
}

.jrv-type {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
}

/* Each line's row tinted by its type (David, Nov 3, 2026, from
 * Salesforce's upload page), a lighter shade of its pill, so a discount
 * reads pink from across the room; the receivable is gray and bold. */
.jr-table tbody tr[class*='jrv-row-'] > td {
  background: var(--jrv-row, transparent);
}

.jrv-row-revenue {
  --jrv-row: var(--cs-color-brand-95);
}

.jrv-row-discount {
  --jrv-row: color-mix(in srgb, var(--cs-color-pink-95) 60%, var(--cs-color-surface-default));
}

.jrv-row-tax {
  --jrv-row: color-mix(in srgb, var(--cs-color-cyan-95) 60%, var(--cs-color-surface-default));
}

.jrv-row-ccfee {
  --jrv-row: color-mix(in srgb, var(--cs-color-purple-95) 60%, var(--cs-color-surface-default));
}

.jrv-row-liability {
  --jrv-row: color-mix(in srgb, var(--cs-color-yellow-95) 60%, var(--cs-color-surface-default));
}

.jrv-row-payment {
  --jrv-row: color-mix(in srgb, var(--cs-color-green-95) 60%, var(--cs-color-surface-default));
}

.jrv-row-ar {
  --jrv-row: var(--cs-color-neutral-95);
}

.jr-table tbody tr.jrv-row-ar > td {
  font-weight: 700;
}

/* A block's header: small labels, the money bold; a discount is the
 * discount rows' pink, a balance due orange. */
.jrv-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.jrv-disc {
  color: var(--cs-color-pink-30);
}

.jrv-due {
  color: var(--cs-color-orange-30);
}

.jrv-type-revenue {
  color: var(--cs-color-brand-40);
  background: color-mix(in srgb, var(--cs-color-brand-40) 13%, var(--cs-color-surface-default));
}

.jrv-type-discount {
  color: var(--cs-color-pink-30);
  background: var(--cs-color-pink-95);
}

.jrv-type-tax {
  color: var(--cs-color-cyan-30);
  background: var(--cs-color-cyan-95);
}

.jrv-type-ccfee {
  color: var(--cs-color-purple-30);
  background: var(--cs-color-purple-95);
}

.jrv-type-liability {
  color: var(--cs-color-yellow-30);
  background: var(--cs-color-yellow-95);
}

.jrv-type-payment {
  color: var(--cs-color-green-30);
  background: var(--cs-color-green-95);
}

.jrv-type-transfer {
  color: var(--cs-color-text-normal);
  background: var(--cs-color-neutral-90);
}

.jrv-type-ar {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
}

.jrv-sent td {
  color: var(--cs-color-text-quiet);
}

.jrv-sent-mark {
  color: var(--cs-color-success-40);
  vertical-align: -0.15em;
}

.jrv-detail > td {
  padding: 0.5rem 0.75rem 0.85rem 2rem;
  background: var(--cs-color-neutral-95);
}

.jrv-sources {
  margin: 0;
  font-size: 0.85rem;
  background: var(--cs-color-surface-default);
}

.jrv-path {
  display: block;
}

.jrv-notes {
  display: grid;
  gap: 0.35rem;
  max-width: 36rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  list-style: none;
}

.jrv-notes li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.jrv-move-facts {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.jrv-move-facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
}

.jrv-move-facts dt {
  color: var(--cs-color-text-quiet);
}

.jrv-move-facts dd {
  margin: 0;
}

@media (max-width: 640px) {
  .jrv-detail > td {
    padding: 0.35rem 0.25rem 0.6rem;
  }

  /* Just the icon: the word doesn't fit beside the money. */
  .jrv-move-word {
    display: none;
  }

  .jrv-toggle {
    flex-wrap: wrap;
  }

  .jrv-type {
    white-space: normal;
  }

  /* What a line came from stacks: each one a row of its name (with its
   * price and chartfield under it), how many, the money, and Move. */
  .jrv-sources thead {
    display: none;
  }

  .jrv-sources,
  .jrv-sources tbody {
    display: block;
  }

  .jrv-sources tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: start;
    gap: 0 0.5rem;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--cs-color-surface-border);
  }

  .jrv-sources td {
    display: block;
    padding: 0;
    border: 0;
  }

  .jrv-sources td.jr-fold {
    display: none;
  }

  /* Chartfield paths are long words; they break anywhere rather than
   * push the money off the screen. */
  .jrv-table td.jrv-cf,
  .jrv-sources td:first-child {
    overflow-wrap: anywhere;
  }

  .jrv-sources .jrv-qty::before {
    content: '× ';
    color: var(--cs-color-text-quiet);
  }
}

/* --- Browse: a list with nothing open ------------------------------------
 * The whole page, like Salesforce's list view: a search, the views as
 * buttons, and a table whose every row opens its record. On a phone the
 * less-needed columns fold under the name. */

.browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.browse-head h1 {
  margin: 0;
}

/* The views on the left, the filter on the right: both narrow the table
 * under them, so they share a row, apart from the top bar's search. */
.browse-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin: 1.25rem 0 0.75rem;
}

.browse-filter {
  display: block;
  flex: 0 1 18rem;
  min-width: 12rem;
  margin-left: auto;
}

.browse-filter input {
  margin: 0; /* a label's input sits 8px down; here it lines up with the views */
  width: 100%;
  padding-left: 2.25rem;
}

/* A list's Download (AIASCRC-125): small, an icon and the word, with the
 * list's other controls; after the filter on a list's bar. */
.list-download {
  flex: none;
}

.browse-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.browse-view {
  position: relative;
}

.browse-view input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.browse-view span {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 999px;
  cursor: pointer;
}

.browse-view span:hover {
  background: var(--cs-color-brand-95);
}

.browse-view input:checked + span {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.browse-view input:focus-visible + span {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.browse-empty {
  padding: 2rem 0;
}

.browse-table tbody tr {
  position: relative;
}

.browse-table tbody tr:hover {
  background: var(--cs-color-brand-95);
}

.browse-link {
  font-weight: 600;
  text-decoration: none;
}

/* The whole row opens the record. */
.browse-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.browse-link:focus-visible {
  outline: none;
}

.browse-table tbody tr:has(.browse-link:focus-visible) {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: -2px;
}

.browse-inline {
  display: none;
}

.browse-due {
  font-weight: 600;
}

@media (max-width: 640px) {
  .browse-table .browse-fold {
    display: none;
  }

  .browse-inline {
    display: block;
    margin-top: 0.15rem;
  }

  .browse-views {
    flex-wrap: nowrap;
    margin-inline: -0.75rem;
    padding: 0 0.75rem 0.25rem;
    overflow-x: auto;
  }

  .browse-filter {
    flex: 1 1 100%;
    margin-left: 0;
  }

  /* The Download shares the filter's line. */
  .browse-bar:has(.list-download) .browse-filter {
    flex-basis: 12rem;
  }
}

/* --- The Money dashboard ---
 * David's Balance dashboard: a navy band with the year, four numbers, a
 * month chart drawn from server-worked heights, then the lists in cards,
 * two side by side when there's room. Each list's groups are tinted from
 * Cornerstone's palette, soonest or latest the strongest; late ones carry
 * an icon, never color alone. */

.money-dash {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.money-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  color: var(--cs-color-brand-on-loud);
  background: var(--cs-color-brand-40);
  border-radius: var(--radius-sm, 4px);
}

.money-head h2 {
  margin: 0;
  color: inherit;
  font-size: 1.25rem;
}

.money-head p {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  opacity: 0.85;
}

.money-years {
  display: flex;
  gap: 0.4rem;
}

.money-year {
  padding: 0.3rem 0.85rem;
  font-weight: 700;
  color: var(--cs-color-brand-on-loud);
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.money-year:hover {
  background: var(--cs-color-brand-30);
}

.money-year[aria-current] {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border-color: var(--cs-color-surface-default);
}

/* A link that looks like a list's view button: the Money tab's who, the
 * History tab's what to show. */
.chip-link {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cs-color-brand-40);
  text-decoration: none;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 999px;
}

.chip-link:hover {
  background: var(--cs-color-brand-95);
}

.chip-link[aria-current] {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.money-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.money-kpi {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-top: 4px solid var(--kpi-color);
  border-radius: var(--radius-sm, 4px);
}

.money-kpi strong {
  font-family: var(--cs-font-family-heading);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--cs-color-brand-30);
}

.money-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-color-neutral-40);
}

.money-kpi-billed {
  --kpi-color: var(--cs-color-purple-50);
}

.money-kpi-collected {
  --kpi-color: var(--cs-color-brand-40);
}

.money-kpi-owed {
  --kpi-color: var(--cs-color-orange-60);
}

.money-kpi-rate {
  --kpi-color: var(--cs-color-green-50);
}

.money-rate {
  display: block;
  height: 0.5rem;
  margin: 0.25rem 0 0.15rem;
  overflow: hidden;
  background: var(--cs-color-neutral-90);
  border-radius: 999px;
}

.money-rate span {
  display: block;
  height: 100%;
  background: var(--cs-color-green-50);
}

.money-card {
  min-width: 0;
  padding: 1rem 1.1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.money-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

/* The count and the list's Download, at the head's right. */
.money-card-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
}

.money-card-head:has(.money-card-tools) {
  align-items: center;
}

.money-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.money-card-note {
  margin: 0.25rem 0 0.75rem;
}

.money-empty {
  margin: 1rem 0 0.25rem;
}

.money-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: 1rem;
  align-items: start;
}

.money-leftovers {
  margin: -0.25rem 0 0;
}

/* The chart: each month a column, its bar as tall as its share of the
 * biggest month, collected at the bottom. */
.money-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

.money-key {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.2rem;
  vertical-align: -0.05rem;
  border-radius: 2px;
}

.money-key-collected,
.money-bar-collected {
  background: var(--cs-color-brand-40);
}

.money-key-owed,
.money-bar-owed {
  background: var(--cs-color-orange-80);
}

.money-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.5rem;
  height: 15rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.money-chart li {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}

.money-bar-wrap {
  display: flex;
  align-items: flex-end;
  padding-top: 1.3rem; /* room for the top month's label */
}

.money-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.money-bar > span:not(.money-bar-total) {
  flex-basis: 0;
}

.money-bar-owed {
  border-radius: 3px 3px 0 0;
}

/* Reporting areas: each area's own color (Settings > Areas; the theme's
 * --area-*), or, for one with none, the chart color its place among every
 * area stands in for; no area is gray. --area-c carries the color for the
 * striped "still owed" end of an area's bar. Stacked pieces are kept apart
 * by a sliver of white. */
.money-area-c-slate { --area-c: var(--area-slate); }
.money-area-c-aia-red { --area-c: var(--area-aia-red); }
.money-area-c-pine { --area-c: var(--area-pine); }
.money-area-c-maple { --area-c: var(--area-maple); }
.money-area-c-periwinkle { --area-c: var(--area-periwinkle); }
.money-area-c-rose { --area-c: var(--area-rose); }
.money-area-c-sky { --area-c: var(--area-sky); }
.money-area-c-apricot { --area-c: var(--area-apricot); }
.money-area-c-brown { --area-c: var(--area-brown); }
.money-area-c-plum { --area-c: var(--area-plum); }
.money-area-0 { --area-c: var(--chart-1); }
.money-area-1 { --area-c: var(--chart-2); }
.money-area-2 { --area-c: var(--chart-3); }
.money-area-3 { --area-c: var(--chart-4); }
.money-area-4 { --area-c: var(--chart-5); }
.money-area-5 { --area-c: var(--chart-6); }
.money-area-6 { --area-c: var(--chart-7); }
.money-area-7 { --area-c: var(--chart-8); }
.money-area-none { --area-c: var(--chart-none); }
[class*='money-area-c-'],
.money-area-0, .money-area-1, .money-area-2, .money-area-3,
.money-area-4, .money-area-5, .money-area-6, .money-area-7,
.money-area-none { background: var(--area-c); }

/* What an area billed that's still owed: the end of its bar, striped in
 * its color (David, Nov 19, 2026), the solid part what's been collected. */
.money-area-owed {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--area-c) 0 2.5px,
    color-mix(in srgb, var(--area-c) 26%, #fff) 2.5px 6px);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.money-area-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.4rem 0 0;
  --area-c: var(--cs-color-neutral-40);
}

.money-area-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.money-area-key b {
  display: inline-flex;
  width: 1.4rem;
  height: 0.6rem;
  border-radius: 0 3px 3px 0;
  overflow: hidden;
}

.money-area-key-in {
  background: var(--area-c);
}

.money-area-key-owed .money-area-owed {
  width: 100%;
}

.money-area-owes,
.money-area-paid {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.money-area-owes {
  color: var(--cs-color-warning-30);
  background: var(--cs-color-warning-95);
}

.money-area-paid {
  color: var(--cs-color-neutral-40);
  background: var(--cs-color-neutral-95);
}

@media (max-width: 640px) {
  .money-area-table .money-area-sharecol {
    display: none;
  }
}

/* Settings > Areas: each area's color, a swatch to pick; one another area
 * has is faded and can't be picked. */
.area-colors fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
}

.area-colors legend {
  float: left;
  margin-right: 0.4rem;
}

.area-color {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.area-color input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.area-color i {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.35rem;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}

.area-color input:checked + i {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cs-color-brand-40);
}

.area-color input:focus-visible + i {
  outline: 2px solid var(--cs-color-brand-40);
  outline-offset: 3px;
}

.area-color-taken {
  cursor: not-allowed;
  opacity: 0.25;
}

.area-color-taken input {
  cursor: not-allowed;
}

.money-bar {
  gap: 2px;
}

/* By area, each month is a link that opens it under the chart (David,
 * Nov 2, 2026): the whole column is the target, not just the bar. The
 * month picked stays; the rest fade back. Their ids carry the old look
 * into the new chart, so the fade, and the panel's bars, move rather
 * than jump. */
.money-pickable li {
  grid-template-rows: 1fr;
}

.money-month-pick {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}

.money-month-pick:hover .money-bar,
.money-month-pick:focus-visible .money-bar {
  filter: brightness(0.92);
}

.money-month-pick:focus-visible {
  outline: 2px solid var(--cs-color-brand-40);
  outline-offset: 2px;
}

.money-pickable .money-bar {
  transition: opacity 0.3s ease, filter 0.15s ease;
}

.money-picking li:not(.money-picked) .money-bar {
  opacity: 0.3;
}

.money-picked .money-month {
  font-weight: 700;
  color: var(--cs-color-text-normal);
  border-top: 3px solid var(--cs-color-brand-40);
  padding-top: calc(0.3rem - 2px);
}

/* The panel under the chart: the year's areas, or the month's. */
.money-area-panel {
  max-width: 64rem;
  margin-top: 1.25rem;
}

.money-area-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.money-area-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  animation: money-title-in 0.3s ease;
}

.money-area-title h4 {
  margin: 0;
  font-size: 1.05rem;
}

.money-area-back cs-icon {
  font-size: 1rem;
  vertical-align: -0.2rem;
}

@keyframes money-title-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
}

.money-area-panel .money-area-table {
  max-width: none;
  margin-top: 0.5rem;
}

.money-area-table .money-area-barcol {
  width: 45%;
}

.money-area-hbar {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  height: 0.7rem;
  min-width: 0;
  border-radius: 0 4px 4px 0;
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.money-area-zero th,
.money-area-zero td {
  color: var(--cs-color-neutral-40);
}

@media (prefers-reduced-motion: reduce) {
  .money-pickable .money-bar,
  .money-area-hbar {
    transition: none;
  }

  .money-area-title {
    animation: none;
  }
}

.money-area-pbar {
  display: none;
}

/* On a phone the bars' column folds away and each bar sits under its
 * area's name, so the names keep their room. */
@media (max-width: 640px) {
  .money-area-table .money-area-barcol {
    display: none;
  }

  .money-area-table .money-area-pbar {
    display: flex;
    height: 0.5rem;
    margin-top: 0.3rem;
  }
}

/* An area opened on the area chart: its row tinted and its caret turned,
 * the stays behind its amount under it (David, Nov 19, 2026: what made
 * Conference Center's December?). */
.money-area-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.money-area-name:hover {
  color: var(--cs-color-brand-40);
}

.money-area-caret {
  font-size: 1.1rem;
  color: var(--cs-color-neutral-40);
  transition: transform 0.2s ease;
}

.money-area-open .money-area-caret {
  transform: rotate(180deg);
}

.money-area-barlink {
  display: block;
  padding: 0.25rem 0;
}

.money-area-barlink:hover .money-area-hbar {
  filter: brightness(0.9);
}

.money-area-table .money-area-open th,
.money-area-table .money-area-open td {
  background: var(--cs-color-brand-95);
  border-bottom-color: transparent;
}

.money-area-table .money-area-stays-row > td {
  padding: 0.25rem 0.75rem 1rem;
  background: var(--cs-color-brand-95);
}

.money-area-stays-note {
  margin: 0 0 0.6rem;
  line-height: 1.45;
}

.money-area-stay-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.money-area-stay {
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 0.4rem;
}

.money-area-stay-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
}

.money-area-stay-when {
  margin-top: 0.1rem;
}

.money-area-began {
  display: inline-block;
  margin-left: 0.4rem;
  white-space: nowrap;
  padding: 0.05rem 0.45rem;
  color: var(--cs-color-warning-30);
  background: var(--cs-color-warning-95);
  border-radius: 999px;
  font-weight: 600;
}

.money-area-lines {
  display: grid;
  gap: 0.15rem;
  margin: 0.4rem 0 0;
  padding: 0.4rem 0 0;
  list-style: none;
  border-top: 1px dashed var(--cs-color-neutral-90);
  font-size: 0.85rem;
}

.money-area-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 6.5rem;
  gap: 0.75rem;
}

.money-area-more {
  margin-top: 0.5rem;
}

.money-area-more > summary {
  cursor: pointer;
  color: var(--cs-color-brand-40);
  font-weight: 500;
}

.money-area-more > .money-area-stay-list {
  margin-top: 0.5rem;
}

/* On a phone each product's quantity sits just under its name. */
@media (max-width: 640px) {
  .money-area-lines {
    gap: 0.4rem;
  }

  .money-area-lines li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 0.75rem;
  }

  .money-area-lines li > .quiet:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .money-area-caret {
    transition: none;
  }
}

/* AIA and outside groups: three measures, each a row of months, each
 * month a bar as tall as its whole with AIA's share at the bottom. Side
 * by side when there's room. */
.money-key.money-share-aia,
.money-share-aia { background: var(--chart-1); }
.money-key.money-share-outside,
.money-share-outside { background: var(--chart-2); }

.money-share-note {
  margin: 0.5rem 0 0;
}

.money-shares {
  display: grid;
  gap: 1.5rem 2rem;
  margin-top: 1rem;
}

@media (min-width: 1100px) {
  .money-shares {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.money-share-head {
  display: grid;
  gap: 0.1rem;
}

.money-share-head h4 {
  margin: 0;
  font-size: 0.95rem;
}

.money-share-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.money-share-months li {
  display: grid;
  grid-template-rows: auto 6rem auto;
  min-width: 0;
  text-align: center;
}

.money-share-pct {
  min-height: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.money-share-bar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.money-share-bar > span {
  flex-basis: 0;
}

.money-share-empty {
  background: var(--cs-color-neutral-95);
}

.money-bar > .money-area-seg:first-of-type {
  border-radius: 3px 3px 0 0;
}

.money-chart-views {
  margin: 0;
}

.money-area-legend {
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
}

.money-area-table {
  width: 100%;
  max-width: 32rem;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.money-area-table th,
.money-area-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.money-area-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-neutral-40);
}

.money-area-table tbody th {
  font-weight: 500;
}

.money-area-table .num {
  text-align: right;
}

.money-area-extra th {
  color: var(--cs-color-neutral-40);
}

.money-area-table tfoot th,
.money-area-table tfoot td {
  font-weight: 700;
  border-bottom: 0;
  border-top: 2px solid var(--cs-color-neutral-80);
}

.money-bar-total {
  position: absolute;
  bottom: 100%;
  left: 50%;
  padding-bottom: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.money-month {
  padding-top: 0.3rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--cs-color-neutral-40);
  border-top: 1px solid var(--cs-color-surface-border);
}

.money-now .money-month {
  font-weight: 700;
  color: var(--cs-color-brand-30);
}

/* A list's groups: each a filter, its amount and count. */
.money-buckets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.money-bucket {
  display: grid;
  gap: 0.05rem;
  padding: 0.45rem 0.5rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background: var(--tint, var(--cs-color-neutral-95));
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 4px);
}

.money-bucket:hover {
  border-color: var(--cs-color-brand-80);
}

.money-bucket[aria-current] {
  border-color: var(--cs-color-brand-40);
  box-shadow: inset 0 0 0 1px var(--cs-color-brand-40);
}

.money-bucket-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.money-bucket-label cs-icon {
  font-size: 0.95rem;
  color: var(--cs-color-danger-50);
}

.money-bucket-coming-late,
.money-row-coming-late,
.money-bucket-past-over,
.money-row-past-over {
  --tint: var(--cs-color-danger-90);
}

.money-bucket-coming-1,
.money-row-coming-1,
.money-bucket-past-90,
.money-row-past-90 {
  --tint: var(--cs-color-danger-95);
}

.money-bucket-coming-2,
.money-row-coming-2,
.money-bucket-past-60,
.money-row-past-60 {
  --tint: var(--cs-color-orange-95);
}

.money-bucket-past-30,
.money-row-past-30 {
  --tint: var(--cs-color-yellow-95);
}

/* Weeks off yet: nothing to worry about. */
.money-bucket-coming-3,
.money-row-coming-3,
.money-bucket-coming-4,
.money-row-coming-4 {
  --tint: var(--cs-color-green-95);
}

.money-table tbody tr[class*='money-row-'] {
  background: var(--tint);
}

.money-table tbody tr:hover {
  background: var(--cs-color-brand-95);
}

.money-table-wrap {
  max-height: 32rem;
  overflow-y: auto;
}

.money-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--cs-color-surface-default);
}

.money-sub,
.money-when {
  display: block;
}

.money-late {
  font-weight: 600;
  color: var(--cs-color-danger-40);
}

/* When a row's group was last reminded, and the button to remind them. */
.money-reminded {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.2rem;
  font-weight: 400;
  white-space: normal;
  color: var(--cs-color-neutral-40);
}

.money-reminded:empty {
  display: none;
}

.money-reminded cs-icon {
  font-size: 0.95rem;
}

/* Under the amount, so the narrow lists don't grow sideways. */
.money-remind {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.2rem;
  margin: 0.3rem 0 0 auto;
  padding: 0.15rem 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: none;
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.money-remind:hover {
  background: var(--cs-color-brand-95);
}

.money-remind cs-icon {
  font-size: 1rem;
}

/* Send again and Cancel on a waiting link (AIASCRC-77), side by side
   under its reservation, so the table keeps its width. */
.money-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.money-row-actions .money-remind {
  margin: 0;
}

/* Cancel on a waiting link: a problem's color, so it never reads as the
   next step. */
.money-remind.money-cancel {
  color: var(--cs-color-danger-40);
  border-color: var(--cs-color-danger-80);
}

.money-remind.money-cancel:hover {
  background: var(--cs-color-danger-95);
}

.reminder-about p {
  margin: 0;
}

.reminder-about {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 0.8rem;
  background: var(--cs-color-neutral-95);
  border-radius: var(--radius-sm, 4px);
}

/* The local mailbox (/dev/mail): what the app would have sent. */
.mailbox {
  max-width: 50rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.mailbox-message {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.mailbox-message dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  margin: 0 0 0.75rem;
}

.mailbox-message dt {
  font-weight: 600;
  color: var(--cs-color-neutral-40);
}

.mailbox-message dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.mailbox-message pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Settings > Products and Price books. */
.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.products-filter .search-pick-box {
  flex: 1 1 18rem;
  max-width: 32rem;
}

.settings-search.products-filter {
  max-width: none;
}

/* Settings > GL codes: the department map, the departments with none,
   and the journal's own accounts, each GL a small box with its Save. */
.gl-card {
  max-width: 52rem;
}

.gl-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.gl-table th[scope='row'] {
  font-weight: 600;
  text-align: left;
}

.gl-table th,
.gl-table td {
  vertical-align: middle;
}

.gl-table th .small {
  font-weight: 400;
}

.gl-codes > p:last-child {
  margin-top: 1rem;
}

.gl-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gl-input {
  width: 5.5rem;
  padding: 0.3rem 0.5rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

.gl-input:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.gl-add {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.gl-add cs-input {
  flex: 0 1 12rem;
}

.gl-unmapped {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.gl-unmapped h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.gl-unmapped ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
}

/* Settings > Taxes and fees: each tax's rate now, a change waiting for
   approval (with what approving does), and every rate kept. */
.tax-card {
  display: grid;
  gap: 0.6rem;
}

.tax-now {
  margin: 0;
  font-size: 1.1rem;
}

.tax-waiting {
  padding: 0.75rem 1rem;
  background: var(--cs-color-yellow-95);
  border-left: 4px solid var(--cs-color-warning-fill-loud);
  border-radius: var(--radius-sm, 4px);
}

.tax-waiting > p {
  margin: 0 0 0.4rem;
}

.tax-waiting > p > cs-icon {
  vertical-align: -0.2em;
}

.tax-top {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.tax-top li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.tax-decide {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 1rem;
}

.tax-decide .team-edit {
  margin-top: 0;
}

.tax-propose {
  margin-top: 0;
}

.tax-propose-form {
  display: grid;
  gap: 0.75rem;
}

/* A fold that's plainly a fold (foldBlueBar; David, Nov 3, 2026: folds
   blended in with everything else white): a navy bar, white words, and a
   big arrow that turns when it's open; what it holds sits in a white box
   joined under it. Cornerstone's own details panel and arrow are set
   aside. */
.fold-blue,
.fold-blue[open] {
  margin: 0.75rem 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.fold-blue > summary.fold-blue-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border-radius: var(--cs-border-radius-m, 0.5rem);
  list-style: none;
  cursor: pointer;
  transition: background-color var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.fold-blue > summary.fold-blue-bar::-webkit-details-marker,
.fold-blue > summary.fold-blue-bar::after {
  display: none;
}

.fold-blue > summary.fold-blue-bar:hover {
  background: var(--cs-color-brand-30);
}

.fold-blue > summary.fold-blue-bar:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.fold-blue[open] > summary.fold-blue-bar {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Its name, answer, note, and any tag wrap among themselves; the arrow
   stays at the right. */
.fold-blue-what {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  min-width: 0;
}

.fold-blue-title {
  font-family: var(--cs-font-family-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.fold-blue-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fold-blue-note {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Something waiting, on its bar: light on navy, with an icon. */
.fold-blue-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-text-normal);
  background: var(--cs-color-yellow-95);
  border-radius: 999px;
}

/* The sections of a page like Taxes and fees, one under another, in
   groups under a heading each. */
.tax-group {
  max-width: 56rem;
  margin-top: 1.5rem;
}

.tax-group h2 {
  margin: 0;
  font-size: 1.2rem;
}

.tax-group > p {
  margin: 0.1rem 0 0.6rem;
}

.tax-sections {
  display: grid;
  gap: 0.6rem;
  max-width: 56rem;
}

.tax-sections > .fold-blue {
  margin: 0;
}

.fold-blue-arrow {
  flex: none;
  margin-left: auto;
  font-size: 1.9rem;
  transition: rotate var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.fold-blue[open] .fold-blue-arrow {
  rotate: 180deg;
}

@media (prefers-reduced-motion: reduce) {
  .fold-blue > summary.fold-blue-bar,
  .fold-blue-arrow {
    transition: none;
  }
}

.fold-blue-body {
  padding: 0.9rem 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-top: 0;
  border-radius: 0 0 var(--cs-border-radius-m, 0.5rem) var(--cs-border-radius-m, 0.5rem);
}

.tax-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

.tax-turn-down {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.tax-turn-down cs-input {
  flex: 1 1 16rem;
}

.tax-pays {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.tax-turned {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
}

/* Suggestions and bugs' title with Send one beside it (David, Nov 5, 2026:
   one list, the form a dialog); on a phone the button goes under it. */
.feedback-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.feedback-title {
  margin: 0;
}

/* One filed in Flightdeck: its icon and key, under its status. */
.feedback-fd {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.feedback-fd cs-icon {
  font-size: 1.05rem;
}

.feedback-item-title {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.6rem;
}

/* Suggestions and bugs: the form's choices as buttons, a thread of the
   sender's words and the replies, and a Super Admin's sorting. */
.feedback-form {
  max-width: 44rem;
}

.feedback-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feedback-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.feedback-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.feedback-table .feedback-kind {
  display: flex;
}

.feedback-thread {
  display: grid;
  gap: 0.6rem;
  max-width: 44rem;
  margin: 1rem 0;
}

.feedback-post {
  padding: 0.75rem 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

/* A reply from someone other than the sender, set off on the brand tint. */
.feedback-post-theirs {
  background: var(--cs-color-brand-95);
  border-left: 4px solid var(--cs-color-brand-40);
}

.feedback-post header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.feedback-text {
  margin: 0.4rem 0;
  white-space: pre-wrap;
}

.feedback-reply,
.feedback-sort {
  max-width: 44rem;
}

.feedback-sort h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.feedback-views {
  margin: 0.5rem 0 1rem;
}

/* A product whose lines can't post: said, with an icon, never color alone. */
.product-held {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--cs-color-danger-40);
  font-size: 0.875rem;
}

/* Price books by family: this year's and later, then past years folded. */
.book-family {
  margin-top: 1.75rem;
}

.book-family h2 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.book-family > p {
  margin: 0 0 0.6rem;
}

.book-past {
  margin-top: 0.5rem;
}

.book-past > summary {
  color: var(--cs-color-brand-40);
  font-weight: 600;
  cursor: pointer;
}

.book-past[open] > summary {
  margin-bottom: 0.5rem;
}

/* The kinds of product as buttons, each with how many (a radio each, so
   it's the form's own choice and works by keyboard). */
.product-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-basis: 100%;
}

.chip-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

.chip-radio:hover {
  background: var(--cs-color-brand-95);
}

.chip-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-radio:has(input:checked) {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.chip-radio:has(input:focus-visible) {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.chip-count {
  font-weight: 400;
  opacity: 0.8;
}

/* Salesforce's products for one room each, which rooms no longer sell
   (Nov 2, 2026), folded under the rest. */
.products-one-room {
  margin-top: 1.5rem;
}

.products-one-room > summary {
  font-weight: 600;
}

.products-one-room > p {
  margin: 0.5rem 0;
}

.products-kind {
  flex: 0 0 auto;
  width: auto;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
  background: var(--cs-color-surface-default);
  font: inherit;
}

.product-prices {
  max-width: 36rem;
}

.price-input {
  width: 8rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
  font: inherit;
  text-align: right;
}

.product-taxes {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-taxes legend {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.sticky-save {
  position: sticky;
  bottom: calc(var(--bottom-nav-height, 0px) + 0.5rem);
  padding: 0.5rem 0;
  background: var(--cs-color-surface-default);
}

/* The email catalog (/dev/emails): every email the app writes. */
.email-catalog-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.email-catalog-pick cs-input {
  flex: 1 1 12rem;
}

.email-catalog-email {
  max-width: 50rem;
  scroll-margin-top: 1rem;
}

.email-catalog-email h3 {
  margin: 0 0 0.25rem;
}

.email-catalog-email > p.small {
  margin: 0 0 0.75rem;
}

.email-catalog-others {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-color-neutral-90);
}

.email-catalog-others summary {
  cursor: pointer;
  font-weight: 600;
}

.email-catalog-other {
  margin-top: 0.75rem;
}

.email-catalog-other h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.email-catalog-other pre + pre {
  margin-top: 0.5rem;
}

.mail-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
  background: var(--cs-color-surface-default);
}

.mail-frame-text {
  margin-top: 0.5rem;
}

.mail-frame-text summary {
  cursor: pointer;
  font-weight: 600;
}

.email-catalog-without {
  text-decoration: line-through;
  color: var(--cs-color-neutral-40);
}

.email-catalog-about {
  margin: 1rem 0 0;
}

.email-catalog-pdfs {
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.email-catalog-pdfs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.5rem;
  font-weight: 600;
}

.money-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.money-received-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.money-received-filter > * {
  flex: 1 1 9rem;
  min-width: 0;
}

@media (max-width: 640px) {
  .money-head {
    padding: 0.85rem 1rem;
  }

  .money-who {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .money-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .money-kpi {
    padding: 0.7rem 0.8rem;
  }

  .money-kpi strong {
    font-size: 1.3rem;
  }

  .money-chart {
    gap: 0.2rem;
    height: 11rem;
  }

  /* Too narrow for the amounts: the bars' labels say them. */
  .money-bar-total {
    display: none;
  }

  .money-share-months {
    gap: 2px;
  }

  .money-share-pct {
    font-size: 0.58rem;
    letter-spacing: -0.02em;
  }

  .money-bar-wrap {
    padding-top: 0;
  }

  .money-month {
    font-size: 0.65rem;
  }

  .money-buckets {
    grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
  }

  .money-table-wrap {
    max-height: none;
  }
}

/* --- Meals ---
 * The Meals tab's grid is one list of cells: the corner, each meal's
 * heading, then each day's heading and its meals. On a desktop they flow
 * down each column (meals down, days across, as Salesforce had it); on a
 * phone across each row (days down), so a long stay never scrolls
 * sideways off a phone. */

.meals-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* a wide table scrolls in its box, never widens the page */
  gap: 1rem;
}

.meals-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.meals-group p {
  margin: 0;
}

.meals-group p + p {
  margin-top: 0.2rem;
}

.meals-confirmed-n {
  font-weight: 700;
}

.meals-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meal-grid-wrap {
  overflow-x: auto;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.meal-grid {
  display: grid;
  grid-template-rows: auto repeat(var(--meal-periods, 3), auto);
  grid-template-columns: 7rem;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.5rem, 1fr);
  background: var(--cs-color-surface-border);
  gap: 1px;
}

.meal-grid > * {
  padding: 0.5rem 0.6rem;
  background: var(--cs-color-surface-default);
}

.meal-corner,
.meal-period-head,
.meal-day-head {
  font-weight: 700;
  background: var(--cs-color-brand-95);
}

.meal-corner,
.meal-day-head {
  text-align: center;
}

.meal-period-head {
  display: grid;
  align-content: center;
  gap: 0.1rem;
}

.meal-period-head span {
  font-weight: 400;
}

.meal-cell {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}

/* Each meal is a card (David, Nov 11, 2026): its kind, when it shows, then
   its count and time side by side. The count and time are inputs that save
   as they change, quiet like text until pointed at. Its take-off is a small
   badge on the card's corner, there when the card is pointed at or has the
   focus, and always on a touch screen, so it takes no room from the line. */
.meal-item {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 0.1rem;
  padding: 0.3rem 0.25rem 0.35rem 0.4rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-left: 3px solid var(--cs-color-brand-60);
  border-radius: var(--radius-sm, 4px);
}

.meal-item-sent {
  border-left-color: var(--cs-color-neutral-80);
}

.meal-kind {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cs-color-brand-40);
}

.meal-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.3rem;
}

.meal-qty,
.meal-time {
  height: auto;
  line-height: 1.25;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 4px);
}

.meal-qty {
  width: 2.4rem;
  padding: 0 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cs-color-brand-30);
  appearance: textfield;
}

/* No up and down arrows, which keep room for themselves and clip the count;
   typing and the arrow keys still change it. */
.meal-qty::-webkit-inner-spin-button,
.meal-qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.meal-time {
  width: 6.25rem;
  field-sizing: content;
  padding: 0.05rem 0.15rem;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--cs-color-neutral-30);
}

.meal-time::-webkit-calendar-picker-indicator {
  margin-left: 0.1rem;
  opacity: 0.45;
}

.meal-qty:hover,
.meal-time:hover {
  border-color: var(--cs-color-neutral-80);
  background: var(--cs-color-surface-default);
}

.meal-qty:focus-visible,
.meal-time:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
  background: var(--cs-color-surface-default);
}

.meal-remove {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  color: var(--cs-color-neutral-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
}

.meal-item:hover .meal-remove,
.meal-item:focus-within .meal-remove {
  opacity: 1;
}

@media (hover: none) {
  .meal-remove {
    opacity: 1;
  }
}

.meal-remove cs-icon {
  font-size: 0.85rem;
}

.meal-remove:hover {
  color: var(--cs-color-danger-40);
  border-color: var(--cs-color-danger-80);
  background: var(--cs-color-danger-95);
}

.meal-read {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.5rem;
}

.meal-count {
  font-size: 1.1rem;
}

.meal-at {
  font-size: 0.8rem;
  color: var(--cs-color-neutral-30);
}

.meal-misfit {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  font-weight: 600;
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
}

.meal-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.15rem 0.6rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: none;
  border: 1px dashed var(--cs-color-brand-80);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.meal-add:hover {
  background: var(--cs-color-brand-95);
}

.meal-add cs-icon {
  font-size: 1rem;
}

.meal-add-more {
  justify-self: start;
  padding: 0 0.15rem;
  font-weight: 500;
  border-color: transparent;
}

.meal-add-more:hover {
  text-decoration: underline;
  background: none;
}

.meals-dietary {
  padding: 0.75rem 1rem;
  background: var(--cs-color-yellow-95);
  border: 1px solid var(--cs-color-yellow-80);
  border-radius: var(--radius-sm, 4px);
}

.meals-dietary strong {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.meals-dietary p {
  margin: 0.3rem 0 0;
}

/* Its title and its own Edit on one line (David, Nov 11, 2026). */
.meals-dietary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.meals-kitchen {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

/* The Add meals dialog. */
.meal-add-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}

.meal-periods::part(form-control-input) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.meal-days {
  margin: 0;
  padding: 0;
  border: 0;
}

.meal-days legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.meal-days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meal-day {
  position: relative;
}

.meal-day input {
  position: absolute;
  opacity: 0;
}

.meal-day span {
  display: inline-grid;
  justify-items: center;
  min-width: 4.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.meal-day small {
  font-weight: 400;
  color: var(--cs-color-neutral-40);
}

.meal-day input:checked + span {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.meal-day input:checked + span small {
  color: inherit;
}

.meal-day input:focus-visible + span {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .meal-grid {
    grid-template-rows: none;
    grid-template-columns: 3.75rem repeat(var(--meal-periods, 3), minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .meal-grid > * {
    padding: 0.4rem 0.25rem;
  }

  .meal-day-head {
    display: grid;
    align-content: center;
    font-size: 0.8rem;
  }

  .meal-period-head {
    text-align: center;
    font-size: 0.85rem;
  }

  /* A narrow column: the count, then the time under it, inside the card;
   * the clock button goes, and a tap on the field still opens the picker. */
  .meal-item {
    padding: 0.25rem 0.25rem 0.3rem 0.35rem;
  }

  .meal-qty {
    width: 100%;
    field-sizing: fixed;
    font-size: 1.05rem;
  }

  .meal-time {
    width: 100%;
    field-sizing: fixed;
    min-width: 0;
    padding: 0.05rem 0.15rem;
    font-size: 0.75rem;
  }

  .meal-time::-webkit-calendar-picker-indicator {
    display: none;
  }

  .meal-edit {
    min-width: 0;
  }

  /* Under a filled box, just "add": "add another" won't fit a column. */
  .meal-add-another {
    display: none;
  }
}

/* --- The kitchen board ---
 * Made for a screen in the kitchen: big numbers, a card for each meal with
 * its own color along the top, and each group's time and count where an
 * eye lands first. Confirmed is green with a check, an estimate orange. */

.kitchen-board {
  display: grid;
  gap: 1rem;
}

.kitchen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--cs-color-brand-on-loud);
  background: var(--cs-color-brand-40);
  border-radius: var(--radius-md, 8px);
}

.kitchen-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.kitchen-head h1 {
  margin: 0;
  color: inherit;
  font-size: 1.5rem;
  white-space: nowrap;
}

/* When it was updated sits with the eyebrow, not on a line of its own. */
.kitchen-updated {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* On a desktop the date and its tools stay on one line (David, Nov 6, 2026:
 * wrapped, they cost the screen's height); narrower than 1280 the tools
 * with words show only their icons (each says what it is on hover), and
 * narrower still, they wrap. */
@media (min-width: 1024px) {
  .kitchen-head,
  .kitchen-tools {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .kitchen-tool-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.kitchen-weekday {
  font-size: 2.25rem;
}

.kitchen-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.kitchen-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cs-color-brand-40);
  text-decoration: none;
  background: var(--cs-color-surface-default);
  border-radius: var(--radius-sm, 4px);
}

.kitchen-tool:hover {
  background: var(--cs-color-brand-90);
}

/* Today's two views, Now and Whole day, as one switch on the navy head:
 * the one showing is white, the other clear. */
.kitchen-views {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: calc(var(--radius-sm, 4px) + 2px);
  background: color-mix(in srgb, var(--cs-color-surface-default) 22%, transparent);
}

.kitchen-views .kitchen-tool:not(.kitchen-tool-on) {
  color: var(--cs-color-surface-default);
  background: transparent;
}

.kitchen-views .kitchen-tool:not(.kitchen-tool-on):hover {
  background: color-mix(in srgb, var(--cs-color-surface-default) 18%, transparent);
}

.kitchen-pick input {
  height: 2.5rem;
  padding: 0 0.5rem;
  font: inherit;
  border: 0;
  border-radius: var(--radius-sm, 4px);
}

.kitchen-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  font-size: 1.25rem;
}

.kitchen-total-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
}

.kitchen-total-count strong {
  font-family: var(--cs-font-family-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--cs-color-brand-30);
}

.kitchen-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  align-items: start;
}

.kitchen-period {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-top: 6px solid var(--period-color);
  border-radius: var(--radius-md, 8px);
}

.kitchen-period-breakfast {
  --period-color: var(--cs-color-orange-60);
}

.kitchen-period-lunch {
  --period-color: var(--cs-color-green-50);
}

.kitchen-period-dinner {
  --period-color: var(--cs-color-purple-50);
}

.kitchen-period-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.kitchen-period-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.kitchen-period-head strong {
  font-family: var(--cs-font-family-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--period-color);
}

.kitchen-none {
  margin: 0;
}

/* Today, the meal now first (AIASCRC-54; David, Nov 6, 2026): the meal
 * being served across the screen; the others small boxes beside the day's
 * total, so they take no height, each opening its meal below. */
.kitchen-now-list {
  display: grid;
  gap: 0.75rem;
}

.kitchen-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kitchen-mini {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 0.6rem;
  min-width: 8.5rem;
  padding: 0.35rem 0.8rem 0.45rem;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  color: inherit;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-top: 5px solid var(--period-color);
  border-radius: var(--radius-sm, 4px);
}

/* Cornerstone gives buttons a fixed height; this one fits its lines. */
button.kitchen-mini {
  height: auto;
  cursor: pointer;
}

button.kitchen-mini:hover,
button.kitchen-mini[aria-expanded='true'] {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-70);
  border-top-color: var(--period-color);
}

.kitchen-mini-name {
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.kitchen-mini strong {
  grid-row: span 2;
  justify-self: end;
  font-family: var(--cs-font-family-heading);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--period-color);
}

.kitchen-mini-note {
  font-size: 0.8rem;
  color: var(--cs-color-neutral-40);
}

.kitchen-mini-faded {
  opacity: 0.6;
}

/* The meal being served now: its box outlined in its color. */
.kitchen-mini-now {
  border-color: var(--period-color);
  box-shadow: inset 0 0 0 1px var(--period-color);
}

.kitchen-mini-now .kitchen-mini-note {
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

/* A card's display would show it while hidden. */
.kitchen-fold-panel[hidden] {
  display: none;
}

.kitchen-fold-panel .kitchen-period-head {
  align-items: center;
  gap: 1rem;
}

.kitchen-fold-panel .kitchen-fold-hide {
  margin-left: auto;
}

.kitchen-fold-note {
  color: var(--cs-color-neutral-40);
}

.kitchen-fold-hide {
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 999px;
  cursor: pointer;
}

.kitchen-fold-hide:hover {
  background: var(--cs-color-brand-95);
}

/* A serving's groups spread across its column as cards, as many to a row
 * as fit, so one serving across the screen isn't one long list. */
.kitchen-now-list .kitchen-service {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.kitchen-now-list .kitchen-service-head {
  grid-column: 1 / -1;
}

.kitchen-now-list .kitchen-meal {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.kitchen-now-list .kitchen-meal + .kitchen-meal {
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

/* The meal being served now (AIASCRC-54): its serving times side by side,
 * up to four, so the kitchen scrolls as little as it can; what's served
 * faded under them. */
.kitchen-columns {
  display: grid;
  gap: 1rem 1.5rem;
  align-items: start;
}

.kitchen-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kitchen-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kitchen-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kitchen-column,
.kitchen-service,
.kitchen-served {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}

.kitchen-column + .kitchen-column {
  padding-left: 1.5rem;
  border-left: 1px solid var(--cs-color-surface-border);
}

.kitchen-service-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--period-color);
  font-family: var(--cs-font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

/* A serving's time is its heading, so its meals don't repeat it. */
.kitchen-service .kitchen-time {
  display: none;
}

.kitchen-served {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--cs-color-surface-border);
  opacity: 0.45;
}

.kitchen-served > h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .kitchen-cols-3,
  .kitchen-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-cols-3 .kitchen-column:nth-child(odd),
  .kitchen-cols-4 .kitchen-column:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .kitchen-columns {
    grid-template-columns: 1fr;
  }

  .kitchen-column + .kitchen-column {
    padding-left: 0;
    border-left: 0;
  }
}

.kitchen-meal {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 0.25rem 0.75rem;
}

.kitchen-meal + .kitchen-meal {
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.kitchen-meal-main {
  min-width: 0;
}

.kitchen-meal h3 {
  margin: 0;
  font-size: 1.15rem;
}

.kitchen-meal-what {
  display: grid;
  margin: 0.1rem 0 0;
  font-weight: 600;
}

.kitchen-meal-what .quiet {
  font-weight: 400;
}

.kitchen-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}

.kitchen-chip {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm, 4px);
}

.kitchen-chip cs-icon {
  font-size: 1rem;
}

.kitchen-chip-confirmed {
  color: var(--cs-color-green-30);
  background: var(--cs-color-green-95);
}

.kitchen-chip-estimate {
  color: var(--cs-color-orange-30);
  background: var(--cs-color-orange-95);
}

.kitchen-time {
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--cs-color-neutral-95);
  border-radius: var(--radius-sm, 4px);
}

.kitchen-count {
  font-family: var(--cs-font-family-heading);
  font-size: 2rem;
  line-height: 1.1;
}

.kitchen-dietary {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  padding: 0.4rem 0.6rem;
  background: var(--cs-color-danger-95);
  border-left: 3px solid var(--cs-color-danger-50);
  border-radius: 0 var(--radius-sm, 4px) var(--radius-sm, 4px) 0;
}

.kitchen-cafe {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.2rem 0 0;
  font-weight: 700;
  color: var(--cs-color-brand-30);
}

.kitchen-dietary em {
  display: block;
  font-style: normal;
  font-weight: 600;
}

.kitchen-dietary span {
  margin-right: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-color-danger-40);
}

/* Full screen: the board alone, a little bigger, for the kitchen's TV. */
.kitchen-tv {
  padding: 1.25rem;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .kitchen-head {
    padding: 0.85rem 1rem;
  }

  .kitchen-weekday {
    font-size: 1.75rem;
  }

  .kitchen-total-count strong {
    font-size: 2.25rem;
  }
}

/* The meal sheet, printed. */
.kitchen-sheet {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.kitchen-sheet-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.kitchen-sheet-head h1,
.kitchen-sheet-head p {
  margin: 0;
}

.kitchen-sheet-print {
  justify-self: start;
  margin-top: 0.5rem;
}

.kitchen-sheet h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.15rem;
}

.kitchen-sheet-table {
  width: 100%;
  border-collapse: collapse;
}

.kitchen-sheet-table th,
.kitchen-sheet-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.kitchen-sheet-table .num {
  text-align: right;
}

@media print {
  .kitchen-sheet-print {
    display: none;
  }

  .kitchen-sheet {
    padding: 0;
  }
}

.parts-kitchen {
  max-width: 28rem;
  margin-top: 1rem;
}

/* --- The Summary tab ---
 * A card for each kind of thing bought, each with its total and a count,
 * then how they add up to the total, then the detail under each. */

.summary-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* a wide table scrolls in its box, never widens the page */
  gap: 1.25rem;
}

.summary-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.summary-cat {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-top: 3px solid var(--cs-color-brand-40);
  border-radius: var(--radius-sm, 4px);
}

.summary-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cs-color-neutral-40);
}

.summary-cat-label cs-icon {
  font-size: 1.1rem;
  color: var(--cs-color-brand-40);
}

.summary-cat strong {
  font-family: var(--cs-font-family-heading);
  font-size: 1.35rem;
  color: var(--cs-color-brand-30);
}

.summary-totals {
  margin: 0;
}

.summary-section h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.summary-section h3 cs-icon {
  color: var(--cs-color-brand-40);
}

.summary-grid td:first-child {
  font-weight: 600;
}

.summary-why {
  display: block;
}

@media (max-width: 640px) {
  .summary-lines .browse-fold,
  .cl-table .browse-fold {
    display: none;
  }
}

.summary-waitlist td {
  color: var(--cs-color-neutral-40);
}

/* --- The History tab ---
 * Add a note, call, email, or to-do on top (a to-do's person and due day
 * show only for a to-do), then what to show, then the timeline: one save
 * to an entry, its parts listed, a long list folded. */

.history-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* a wide table scrolls in its box, never widens the page */
  gap: 1rem;
}

.note-form {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: var(--cs-color-brand-95);
  border-radius: var(--radius-sm, 4px);
}

.note-types {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.note-types legend {
  float: left;
  margin-right: 0.5rem;
  font-weight: 700;
}

.note-types .browse-view span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.note-types cs-icon {
  font-size: 1rem;
}

.note-todo {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.note-form:has(input[name='type'][value='todo']:checked) .note-todo {
  display: grid;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
}

/* Send an email (AIASCRC-128) shares the note form's first line, at its
 * end; on a phone it sits on a line of its own above it. */
.note-form:has(.note-send) {
  grid-template-columns: 1fr auto;
}

.note-form:has(.note-send) > * {
  grid-column: 1 / -1;
}

.note-form:has(.note-send) > .note-types {
  grid-row: 1;
  grid-column: 1;
}

.note-form > .note-send {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
}

@media (max-width: 40rem) {
  .note-form:has(.note-send) > .note-types,
  .note-form > .note-send {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

/* The dialog's people to send it to: picks as chips, each with who they
 * are here. */
.email-people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.email-people .chip-link {
  font-family: inherit;
  white-space: normal;
  text-align: left;
  cursor: pointer;
}

.email-people-note {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.email-people-note::before {
  content: ' · ';
}

/* A pick that runs to two lines is a rounded box, not a pill; on a phone
 * who they are goes under the name. */
.email-people .chip-link {
  height: auto;
  padding-block: 0.35rem;
  line-height: 1.35;
  border-radius: 1rem;
}

@media (max-width: 40rem) {
  .email-people-note {
    display: block;
    max-width: 100%;
  }

  .email-people-note::before {
    content: none;
  }
}

/* What goes with an email: the record's files to tick, and the
 * computer's file box, in a light box of their own. */
.email-attach {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.email-attach legend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.25rem;
  font-weight: 600;
}

.email-attach-from {
  font-weight: 600;
}

.email-attach p {
  margin: 0;
}

.email-attach-files {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A long name wraps beside its box; its size never splits. */
.email-attach-files label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.email-attach-files input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--cs-color-brand-40);
}

.email-attach-size {
  color: var(--cs-color-text-quiet);
  font-size: 0.85em;
  white-space: nowrap;
}

.email-attach-upload {
  display: grid;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.email-attach-upload input {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-weight: 400;
}

.email-attach-upload input {
  max-width: 100%;
  font: inherit;
}

/* The parts page's dialog, drawn in place. */
.parts-dialog-sample {
  max-width: 36rem;
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.history-show {
  margin: 0;
}

.timeline-details {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.timeline-details li {
  margin: 0.1rem 0;
}

.timeline-more {
  margin-top: 0.35rem;
}

.timeline-more summary {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  cursor: pointer;
}

.timeline-todo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.25rem !important;
}

.timeline-todo-open {
  font-weight: 700;
}

.timeline-open > cs-icon {
  color: var(--cs-color-orange-60);
}

.timeline-done {
  padding: 0.1rem 0.6rem;
  font: inherit;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 999px;
  cursor: pointer;
}

.timeline-done:hover {
  background: var(--cs-color-brand-95);
}

/* --- The Rooms tab ---
 * Counts on top, then each building's rooms as cards: who's in each, a
 * box to add the next name (it keeps the focus, so names go in one after
 * another), and a folded form to change or move someone. */

.rooms-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.rooms-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.6rem;
}

.rooms-count {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.6rem 0.8rem;
  background: var(--cs-color-brand-95);
  border-radius: var(--radius-sm, 4px);
}

.rooms-count-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-color-neutral-40);
}

.rooms-count strong {
  font-family: var(--cs-font-family-heading);
  font-size: 1.5rem;
  color: var(--cs-color-brand-30);
}

.rooms-count-warn {
  background: var(--cs-color-orange-95);
}

.rooms-overnight {
  width: 7.5rem;
  padding: 0.15rem 0.4rem;
  font: inherit;
  font-family: var(--cs-font-family-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cs-color-brand-30);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

/* Empty, it asks in ordinary text: in the count's big type, "How many?"
 * was cut to "How" and read as a label, not a box to type in. */
.rooms-overnight::placeholder {
  font-family: var(--cs-font-family-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cs-color-text-quiet);
}

.rooms-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.rooms-diets {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.rooms-building h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.rooms-building h3 cs-icon {
  color: var(--cs-color-brand-40);
}

/* A building's name with its M and F boxes beside it (AIASCRC-100), a
 * navy bar over its rooms (David, Nov 16, 2026: with every part white, the
 * list ran together). */
.rooms-building-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0.9rem;
  color: var(--cs-color-brand-on-loud, #fff);
  background: var(--cs-color-brand-40);
  border-radius: var(--radius-sm, 4px);
}

.rooms-building-head h3,
.rooms-building .rooms-building-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: inherit;
}

.rooms-building-head h3 cs-icon {
  color: inherit;
}

/* On the bar, M and F are outlined in white, and the lit one is white. */
.rooms-building-head .mf-box {
  color: var(--cs-color-brand-on-loud, #fff);
  background: transparent;
  border-color: color-mix(in oklab, var(--cs-color-brand-on-loud, #fff) 70%, transparent);
}

.rooms-building-head .mf-box:hover {
  background: color-mix(in oklab, var(--cs-color-brand-on-loud, #fff) 15%, transparent);
}

.rooms-building-head .mf-box[aria-pressed='true'] {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-on-loud, #fff);
  border-color: var(--cs-color-brand-on-loud, #fff);
}

.rooms-building-head .room-gender {
  color: inherit;
}

/* A click on the bar folds the building's rooms away, or opens them
 * (David, Nov 16, 2026), its M and F aside: its rooms and names counted,
 * then an arrow like a navy fold's, turned up while it's open. */
.rooms-building-head[data-fold-bar] {
  cursor: pointer;
  transition: background-color var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.rooms-building-head[data-fold-bar]:hover {
  background: var(--cs-color-brand-30);
}

.rooms-building-end {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.rooms-building-count {
  font-size: 0.875rem;
  opacity: 0.85;
}

.rooms-building-fold {
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.rooms-building-fold:focus-visible {
  outline: 2px solid var(--cs-color-brand-on-loud, #fff);
  outline-offset: 1px;
}

.rooms-building-fold cs-icon {
  font-size: 1.9rem;
  rotate: 180deg;
  transition: rotate var(--duration-fast, 150ms) var(--ease-out, ease-out);
}

.rooms-building[data-folded] .rooms-building-fold cs-icon {
  rotate: 0deg;
}

.rooms-building[data-folded] > .room-cards {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .rooms-building-head[data-fold-bar],
  .rooms-building-fold cs-icon {
    transition: none;
  }
}

/* M and F: boxes that light up when picked, never a dropdown (David, Nov
 * 13, 2026). A building's are buttons (aria-pressed); a new name's are
 * radio buttons inside labels, so they need no script. */
.mf-toggle,
.mf-pick {
  display: inline-flex;
  gap: 0.25rem;
}

.mf-box {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.mf-box:hover {
  background: var(--cs-color-brand-95);
}

.mf-box[aria-pressed='true'],
.mf-box:has(input:checked) {
  color: var(--cs-color-brand-on-loud);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.mf-box input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.mf-box:focus-visible,
.mf-box:has(input:focus-visible) {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.room-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
}

/* A room is a card with a header band of its own color (the room, who
 * it's for, its nights), its people, and a gray foot with the box for the
 * next name, as Salesforce's had (David, Nov 16, 2026). */
.room-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-sm, 4px);
}

.room-card-empty {
  border-style: dashed;
}

.room-card-head {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.8rem;
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.room-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.room-card h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--cs-color-brand-20);
}

.room-nights {
  margin: 0;
  color: var(--cs-color-text-quiet);
}

.room-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem;
}

.room-card-body > .room-warn:first-child {
  padding-top: 0.4rem;
}

.room-card-foot {
  margin-top: auto;
  padding: 0.6rem 0.8rem;
  background: var(--cs-color-neutral-95);
  border-top: 1px solid var(--cs-color-surface-border);
}

.room-card-foot .room-add {
  margin: 0;
}

.room-gender {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.room-warn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-weight: 600;
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
}

.room-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-people > li {
  margin: 0;
  padding-inline: 0;
}

.room-person {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--cs-color-surface-border);
}

/* A name's pencil and X sit at the row's end, the pencil just left of the
 * X, in a column down the room (David, Nov 16, 2026): both are placed at the
 * row's top right, so they line up whatever the name and tags are. */
.room-people > .room-person-editable {
  padding-right: 4rem;
}

/* The Map (AIASCRC-102): each dorm floor with the stay's rooms on it,
 * colored by who's in them (men sky, women cerise, both orange), its
 * number on top and names under it; other rooms faded. A click goes to
 * the room's card. On a phone the drawing keeps a readable size and
 * scrolls sideways in its box. */
.rooms-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

.rooms-map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rooms-map-key li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.rooms-map-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--rm-color);
  border: 1px solid var(--cs-color-neutral-50);
  border-radius: 3px;
}

.rm-male { --rm-color: var(--cs-color-sky-80); }
.rm-female { --rm-color: var(--cs-color-cerise-90); }
.rm-mixed { --rm-color: var(--cs-color-orange-80); }
.rm-open { --rm-color: var(--cs-color-brand-90); }
.rm-empty { --rm-color: var(--cs-color-surface-default); }
.rm-other { --rm-color: var(--cs-color-neutral-95); }

.rooms-map-swatch.rm-empty {
  border-style: dashed;
  border-color: var(--cs-color-brand-40);
}

.rooms-map-plan {
  min-width: 0;
  margin: 0;
}

.rooms-map-fold,
.rooms-map-fold > .fold-blue-body {
  min-width: 0;
}

.rooms-map-plan figcaption {
  margin-bottom: 0.4rem;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
}

.rooms-map-scroll {
  overflow-x: auto;
  contain: paint;
}

.rooms-map-svg {
  min-width: 40rem;
}

.rm-room .fp-box {
  fill: var(--rm-color);
  stroke: var(--cs-color-neutral-20);
  stroke-width: 1.5;
}

.rm-room.rm-empty .fp-box {
  stroke: var(--cs-color-brand-40);
  stroke-dasharray: 6 4;
}

a.rm-room {
  text-decoration: none;
  cursor: pointer;
}

a.rm-room:hover .fp-box,
a.rm-room:focus-visible .fp-box {
  stroke: var(--cs-color-focus);
  stroke-width: 4;
}

a.rm-room:focus-visible {
  outline: none;
}

.rm-other .fp-label {
  fill: var(--cs-color-neutral-50);
  font-weight: 600;
}

.rm-name {
  fill: var(--cs-color-neutral-10, var(--cs-color-neutral-20));
}

.rm-name.rm-quiet {
  fill: var(--cs-color-neutral-40);
  font-style: italic;
}

/* A room's card, reached from the Map, clears the sticky top bar. */
.room-card {
  scroll-margin-top: 7rem;
}

.room-person-editable .room-person-remove,
.room-person-editable .room-person-edit {
  position: absolute;
  top: 0.3rem;
}

.room-person-editable .room-person-remove {
  right: 0;
}

.room-person-editable .room-person-edit {
  right: 2rem;
}

/* The X at a name's end takes them off the list, once asked, as
 * Salesforce's did (David, Nov 16, 2026); the pencil opens a dialog to
 * change them. */
.room-person-remove,
.room-person-edit {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: var(--cs-color-text-quiet);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.room-person-remove:hover {
  color: var(--cs-color-danger-40);
  background: var(--cs-color-danger-95, var(--cs-color-neutral-95));
}

.room-person-edit:hover {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.room-person-remove:focus-visible,
.room-person-edit:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.room-person-remove cs-icon,
.room-person-edit cs-icon {
  font-size: 1.1rem;
}

/* A name's grip drags it to another room (AIASCRC-105), with a mouse; on
 * a touch screen the pencil moves them, so the grip isn't drawn. */
.room-person-grip {
  display: inline-flex;
  margin-left: -0.3rem;
  color: var(--cs-color-text-quiet);
  border-radius: 4px;
  cursor: grab;
  opacity: 0.45;
}

.room-person:hover .room-person-grip {
  opacity: 1;
}

.room-person-grip:hover {
  background: var(--cs-color-neutral-95);
}

.room-person-grip:active {
  cursor: grabbing;
}

.room-person-grip cs-icon {
  font-size: 1.1rem;
}

@media (pointer: coarse) {
  .room-person-grip {
    display: none;
  }
}

.room-person-dragging {
  opacity: 0.5;
}

/* The room a dragged name would go to. */
.room-card.room-drop {
  outline: 2px dashed var(--cs-color-brand-60);
  outline-offset: 2px;
  background: var(--cs-color-brand-95);
}

/* Why a name couldn't be added, under its box. */
.room-add-problem {
  margin: 0.35rem 0 0;
}

/* The tags sit at the row's end, before the pencil and X; opened, the
 * pencil's form takes a line of its own under them. */
.room-person-name {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.room-person-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.75rem;
  margin-left: auto;
}

.room-tag {
  padding: 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
  border-radius: var(--radius-sm, 4px);
}

.room-tag-minor {
  color: var(--cs-color-purple-30, var(--cs-color-brand-30));
  background: var(--cs-color-purple-95, var(--cs-color-brand-95));
}

.room-tag-diet {
  color: var(--cs-color-green-30);
  background: var(--cs-color-green-95);
}

/* The pencil's dialog: its fields one under another. */
.room-person-form {
  display: grid;
  gap: 0.75rem;
}

/* Its own labels and room list look like Cornerstone's fields beside
 * them. */
.room-person-field {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}

.room-person-label {
  font-size: 1rem;
  font-weight: 500;
}

.room-person-form .room-person-room {
  appearance: auto;
  justify-self: stretch;
  min-height: 2.7rem;
  padding: 0.4rem 0.6rem;
  border-color: var(--cs-color-neutral-50);
  border-radius: 6px;
}

.room-person-form input[type='text'],
.room-person-form select,
.room-add input,
.room-add select {
  padding: 0.3rem 0.45rem;
  font: inherit;
  font-weight: 400;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

.room-add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.8rem;
  font: inherit;
  font-weight: 600;
  color: var(--cs-color-brand-on-loud);
  background: var(--cs-color-brand-40);
  border: 0;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.room-add-button cs-icon {
  font-size: 1.1rem;
}

.room-remove {
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-weight: 600;
  color: var(--cs-color-danger-40);
  background: none;
  border: 1px solid var(--cs-color-danger-80, var(--cs-color-danger-90));
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

/* The name gets the room's width; M, F, and Add go under it. */
.room-add {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.room-add-name {
  grid-column: 1 / -1;
  min-width: 0;
}

.room-add input:focus-visible,
.room-add select:focus-visible,
.room-person-form input:focus-visible,
.room-person-form select:focus-visible,
.rooms-overnight:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

/* --- Housekeeping ---
 * Made for a tablet in the hallway: pick a building and floor, then the
 * floor as a drawing, each room filled with its status color and its
 * status in words (never color alone), tapped for a panel with big
 * buttons. The drawing's walls and rooms take the theme's colors through
 * their classes (migration 00016). */

.hk-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hk-floor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.hk-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hk-day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.hk-goto input[type='date'] {
  font-size: 1rem;
}

.hk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  list-style: none;
}

.hk-key {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  vertical-align: -0.1rem;
  background: var(--hk-color);
  border: 1px solid var(--cs-color-neutral-70, var(--cs-color-neutral-80));
  border-radius: 3px;
}

/* The status colors: Salesforce's hues, from the palette. */
.hk-available { --hk-color: var(--cs-color-neutral-95); }
.hk-reserved { --hk-color: var(--cs-color-sky-80); }
.hk-occupied { --hk-color: var(--cs-color-cerise-70); }
.hk-ready { --hk-color: var(--cs-color-orange-70); }
.hk-in_progress { --hk-color: var(--cs-color-yellow-80); }
.hk-clean { --hk-color: var(--cs-color-green-90); }
.hk-verified { --hk-color: var(--cs-color-green-70); }
.hk-blocked { --hk-color: var(--cs-color-neutral-80); }
.hk-unknown { --hk-color: var(--cs-color-surface-default); }

.hk-plan {
  margin: 0;
  padding: 0.75rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.hk-plan figcaption {
  margin-bottom: 0.4rem;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  text-align: center;
}

.fp {
  display: block;
  width: 100%;
  height: auto;
}

.fp text {
  font-family: var(--cs-font-family-body);
}

.fp-room {
  cursor: pointer;
}

.fp-room .fp-box {
  fill: var(--hk-color);
  stroke: var(--cs-color-neutral-20);
  stroke-width: 1.5;
}

.fp-room:hover .fp-box,
.fp-room:focus-visible .fp-box {
  stroke: var(--cs-color-focus);
  stroke-width: 4;
}

.fp-room:focus-visible {
  outline: none;
}

.fp-label {
  font-weight: 700;
  fill: var(--cs-color-neutral-10, var(--cs-color-neutral-20));
}

.fp-hint,
.fp-status {
  fill: var(--cs-color-neutral-20);
}

.fp-status {
  font-weight: 600;
}

.fp-outline {
  pointer-events: none;
}

.fp-outline .fp-line,
.fp-room .fp-line {
  stroke: var(--cs-color-neutral-20);
}

.fp-outline rect {
  fill: none;
}

.fp-outline rect.fp-fill {
  fill: var(--cs-color-neutral-95);
}

.fp .fp-detail {
  fill: var(--cs-color-neutral-90);
  stroke: var(--cs-color-neutral-60, var(--cs-color-neutral-70));
}

.fp .fp-text {
  fill: var(--cs-color-neutral-40);
}

.hk-counts {
  margin: 0;
}

.hk-room-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hk-room-list > li {
  margin: 0;
}

/* A room is a button, and Cornerstone gives buttons one fixed-height line:
   a room's grows to fit its status and hint (David, Oct 30, 2026: the
   hint spilled under the next row). */
.hk-room-row {
  color: var(--cs-color-text-normal);
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 0.15rem 0.5rem;
  width: 100%;
  height: 100%;
  min-height: var(--cs-form-control-height, 2.75rem);
  padding: 0.5rem 0.65rem;
  font: inherit;
  white-space: normal;
  text-align: left;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-left: 6px solid var(--hk-color);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.hk-room-row:hover {
  background: var(--cs-color-brand-95);
}

.hk-room-row:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.hk-room-row .hk-key {
  display: none;
}

.hk-row-available { --hk-color: var(--cs-color-neutral-90); }
.hk-row-reserved { --hk-color: var(--cs-color-sky-80); }
.hk-row-occupied { --hk-color: var(--cs-color-cerise-70); }
.hk-row-ready { --hk-color: var(--cs-color-orange-70); }
.hk-row-in_progress { --hk-color: var(--cs-color-yellow-80); }
.hk-row-clean { --hk-color: var(--cs-color-green-90); }
.hk-row-verified { --hk-color: var(--cs-color-green-70); }
.hk-row-blocked { --hk-color: var(--cs-color-neutral-80); }

.hk-turnover {
  font-weight: 700;
  color: var(--cs-color-orange-30);
}

.hk-repair-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--cs-color-danger-40);
}

/* The room's panel: big buttons for a thumb. */
.hk-room {
  display: grid;
  gap: 0.6rem;
}

.hk-room p {
  margin: 0;
}

.hk-room-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.hk-room-status .hk-key {
  width: 1.25rem;
  height: 1.25rem;
}

.hk-facts {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.hk-facts div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.5rem;
}

.hk-facts dt {
  font-weight: 600;
  color: var(--cs-color-neutral-40);
}

.hk-facts dd {
  display: grid;
  margin: 0;
}

.hk-mark {
  display: grid;
  gap: 0.5rem;
}

.hk-notes {
  display: grid;
  gap: 0.15rem;
  font-weight: 600;
}

.hk-notes input,
.hk-repair-form input {
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

.hk-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.5rem;
}

.hk-button {
  min-height: 3.5rem;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cs-color-neutral-10, var(--cs-color-neutral-20));
  background: var(--hk-color);
  border: 2px solid var(--cs-color-neutral-60, var(--cs-color-neutral-70));
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.hk-button:hover,
.hk-button:focus-visible {
  border-color: var(--cs-color-brand-40);
  outline: none;
}

.hk-undo {
  justify-self: start;
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--cs-color-brand-40);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.hk-repairs h3 {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.25rem 0;
  font-size: 1rem;
}

.hk-repairs ul {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.hk-repairs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.hk-repair-form {
  display: flex;
  gap: 0.4rem;
}

.hk-repair-form input {
  flex: 1 1 auto;
  min-width: 0;
}

.hk-repairs-page {
  display: grid;
  gap: 0.75rem;
}

.parts-rooms {
  margin-bottom: 1.5rem;
}

/* --- The two-week planner ---
 * A row per room; the days are a grid of morning and afternoon halves, so
 * a stay is one bar from its first afternoon to its last morning and a
 * same-day turnover meets at noon instead of piling up. */

.pl-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pl-wrap {
  overflow-x: auto;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.pl {
  min-width: 62rem;
  font-size: 0.8rem;
}

.pl-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  min-height: 1.9rem;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.pl-name {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: var(--cs-color-surface-default);
  border-right: 1px solid var(--cs-color-surface-border);
}

.pl-days {
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  grid-auto-flow: column;
}

.pl-days > * {
  grid-row: 1;
}

.pl-head .pl-day {
  display: grid;
  justify-items: center;
  padding: 0.25rem 0;
  font-weight: 600;
}

.pl-head .pl-day span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--cs-color-neutral-40);
}

.pl-today {
  background: var(--cs-color-brand-95);
  color: var(--cs-color-brand-30);
}

.pl-count .pl-day,
.pl-building summary .pl-day {
  display: grid;
  justify-items: center;
  align-content: center;
  font-weight: 700;
  color: var(--cs-color-orange-30);
}

.pl-turn-count {
  font-size: 0.65rem;
  font-weight: 600;
}

/* The buildings fold; not one of Cornerstone's panels. */
.pl-building,
.pl-building[open] {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.pl-building summary,
.pl-building[open] summary {
  display: grid;
  margin: 0;
  padding: 0;
  background: var(--cs-color-brand-95);
  border-radius: 0;
}

.pl-building summary .pl-name {
  background: var(--cs-color-brand-95);
}

.pl-building summary::after {
  display: none;
}

.pl-track {
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 14 - 1px),
      var(--cs-color-surface-border) calc(100% / 14 - 1px), var(--cs-color-surface-border) calc(100% / 14));
}

.pl-bar {
  z-index: 1;
  margin: 0.2rem 0;
  padding: 0.15rem 0.4rem;
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
  border-radius: 3px;
}

.pl-here,
.pl-key.pl-here {
  color: var(--cs-color-neutral-10, var(--cs-color-neutral-20));
  background: var(--cs-color-cerise-70);
}

.pl-coming,
.pl-key.pl-coming {
  color: var(--cs-color-neutral-10, var(--cs-color-neutral-20));
  background: var(--cs-color-sky-80);
}

.pl-past,
.pl-key.pl-past {
  color: var(--cs-color-neutral-30);
  background: var(--cs-color-neutral-90);
}

.pl-bar.pl-turn {
  border-left: 4px solid var(--cs-color-orange-60);
}

.pl-clean,
.pl-key.pl-clean {
  margin: 0.2rem 0;
  background: repeating-linear-gradient(45deg, var(--cs-color-orange-80), var(--cs-color-orange-80) 4px,
      var(--cs-color-orange-90) 4px, var(--cs-color-orange-90) 8px);
  border-radius: 3px;
}

.pl-key {
  display: inline-block;
  width: 1rem;
  height: 0.85rem;
  margin: 0;
  vertical-align: -0.1rem;
  border-radius: 3px;
}

.pl-key.pl-turn {
  background: var(--cs-color-sky-80);
  border-left: 4px solid var(--cs-color-orange-60);
}

.pl-missing {
  z-index: 1;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
  background: var(--cs-color-warning-95, var(--cs-color-yellow-95));
}

/* --- The cleaning list --- */

.cl-group {
  margin-top: 1rem;
}

.cl-group h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.cl-instructions {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.7rem;
  background: var(--cs-color-yellow-95);
  border-left: 3px solid var(--cs-color-yellow-60, var(--cs-color-yellow-80));
}

.cl-table td {
  vertical-align: top;
}

.cl-turnover td:first-child {
  box-shadow: inset 4px 0 0 var(--cs-color-orange-60);
}

.cl-warn {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
  color: var(--cs-color-danger-40);
}

.hk-status-chip {
  display: inline-block;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--hk-color);
  border-radius: var(--radius-sm, 4px);
}

.cl-box-col {
  width: 1.75rem;
}

.cl-box {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--cs-color-neutral-20);
  border-radius: 2px;
}

/* --- Changed since printed --- */

.since-printed {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.since-printed-changes ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

/* --- The dorm roster ---
 * Who sleeps where, a dorm at a time; printed, each dorm starts its own
 * page and the type is big enough to read on a board. */

.roster-dorm h2 {
  margin: 1.25rem 0 0.25rem;
}

.roster-floor {
  margin: 0.75rem 0 0.4rem;
  font-size: 1rem;
  color: var(--cs-color-brand-40);
}

.roster-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.5rem;
}

.roster-room {
  padding: 0.5rem 0.7rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
  break-inside: avoid;
}

.roster-room h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.roster-group {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--cs-color-neutral-40);
}

.roster-room ul {
  margin: 0;
  padding-left: 1.1rem;
}

.roster-room li {
  margin: 0.1rem 0;
}

.roster-tag {
  margin-left: 0.3rem;
  padding: 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 3px;
}

.roster-none {
  margin: 0;
  font-style: italic;
  color: var(--cs-color-neutral-40);
}

.roster-sheet {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.roster-screen-only {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-brand-95);
  border-radius: var(--radius-sm, 4px);
}

.roster-screen-only p {
  margin: 0;
}

.roster-head h1 {
  margin: 0;
}

.roster-head p {
  margin: 0.15rem 0 0.5rem;
}

.roster-page + .roster-page {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--cs-color-neutral-80);
}

@media print {
  @page {
    margin: 0.5in;
  }

  /* Paper is white: no page tint. */
  html,
  body {
    background: var(--cs-color-surface-default);
  }

  .roster-screen-only {
    display: none;
  }

  .roster-sheet {
    max-width: none;
    padding: 0;
  }

  /* Never two dorms on one page. */
  .roster-page + .roster-page {
    break-before: page;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .roster-head h1 {
    font-size: 26pt;
  }

  .roster-head p {
    font-size: 12pt;
  }

  .roster-sheet .roster-floor {
    font-size: 15pt;
    break-after: avoid;
  }

  .roster-sheet .roster-rooms {
    grid-template-columns: 1fr 1fr;
  }

  .roster-sheet .roster-room {
    background: none;
    border-color: var(--cs-color-neutral-60, var(--cs-color-neutral-70));
  }

  .roster-sheet .roster-room h4 {
    font-size: 14pt;
  }

  .roster-sheet .roster-room li,
  .roster-sheet .roster-none {
    font-size: 12.5pt;
  }
}

/* --- Group links and the group page ---
 * The group's page is phone-first: one column, big targets, AIA red as
 * the brand (aia-public). */

.links-copy summary {
  font-weight: 600;
  cursor: pointer;
}

.links-new input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

.links-form {
  display: grid;
  gap: 0.6rem;
}

.links-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Group links on the Rooms and Meals tabs (AIASCRC-99): a navy fold,
 * closed to start (David, Nov 16, 2026); open, what a link is for and Send
 * a group link on one line, then a row a link: who, when it was made,
 * when it was last opened, Send again, Turn off. */
.group-links-body {
  display: grid;
  gap: 0.5rem;
}

.group-links-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.group-links-head p {
  max-width: 44rem;
  margin: 0;
}

.group-links-body > p {
  margin: 0;
}

.group-links-off summary {
  cursor: pointer;
  color: var(--cs-color-text-quiet);
}

.group-links-off .links-list {
  margin-top: 0.4rem;
}

.links-list li {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) minmax(10rem, 1fr) minmax(8rem, 0.8fr) auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.links-who {
  display: grid;
  min-width: 0;
}

.links-who > * {
  overflow-wrap: anywhere;
}

/* On a phone each link stacks: who, then when, with Turn off beside who. */
@media (max-width: 640px) {
  .links-list li {
    grid-template-columns: 1fr auto;
  }

  .links-list li > .links-who {
    grid-column: 1;
    grid-row: 1;
  }

  .links-list li > :last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .links-list li > span:nth-child(2),
  .links-list li > span:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Send again and Turn off, side by side at a link's end (AIASCRC-104). */
.links-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.links-again {
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: none;
  border: 1px solid var(--cs-color-brand-80, var(--cs-color-brand-90));
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.links-again:hover {
  background: var(--cs-color-brand-95);
}

.links-off {
  opacity: 0.65;
}

.rooms-lock {
  display: grid;
  gap: 0.15rem;
}

.rooms-lock input {
  margin-left: 0.25rem;
  padding: 0.15rem 0.35rem;
  font: inherit;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

.room-added-by {
  margin: 0;
}

.rooms-tools-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rooms-none {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.rooms-none p {
  margin: 0;
}

.group-page {
  min-height: 100vh;
  background: var(--cs-color-surface-default);
}

.group-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  color: var(--cs-color-brand-40);
  border-bottom: 3px solid var(--cs-color-brand-40);
}

.group-logo {
  height: 2.25rem;
}

.group-main {
  display: grid;
  /* One column that can be narrower than what's in it: a wide grid
   * scrolls in its own box rather than widening the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.group-main h1 {
  margin: 0;
}

.group-main p {
  margin: 0;
}

.group-when {
  font-weight: 600;
}

/* The group page inside the red shell: navy (aia-quiet), one column. */
.group-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.group-hello {
  display: grid;
  gap: 0.25rem;
}

/* The status cards, which work as the page's tabs (AIASCRC-101): white,
 * a line down the left in the status's color, the open one outlined in
 * navy with a bar under it, as Salesforce's were. */
.group-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
}

.group-tab {
  --tab-line: var(--cs-color-neutral-70);
  --tab-ink: var(--cs-color-neutral-30);

  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 1rem 0.8rem;
  color: inherit;
  text-decoration: none;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-left: 5px solid var(--tab-line);
  border-radius: var(--radius-sm, 4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.group-tab[data-state='done'] {
  --tab-line: var(--cs-color-success-40);
  --tab-ink: var(--cs-color-success-40);
}

.group-tab[data-state='needs'] {
  --tab-line: var(--cs-color-warning-40, var(--cs-color-orange-60));
  --tab-ink: var(--cs-color-warning-30, var(--cs-color-orange-30));
}

.group-tab:hover {
  border-color: var(--cs-color-brand-80);
  border-left-color: var(--tab-line);
}

.group-tab[aria-current='page'] {
  border-color: var(--cs-color-brand-40);
  border-left-color: var(--tab-line);
  box-shadow: inset 0 -4px 0 var(--cs-color-brand-40);
}

.group-tab:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.group-tab-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cs-font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.group-tab-state {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--tab-ink);
}

.group-tab-when {
  color: var(--cs-color-text-quiet);
}

.group-tip {
  padding: 0.5rem 0.75rem;
  background: var(--cs-color-brand-95);
  border-left: 3px solid var(--cs-color-brand-40);
  border-radius: var(--radius-sm, 4px);
}

/* How many are staying, how many have a room, and how many still need one. */
.group-room-counts {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}

/* On a phone the question takes a row, the two counts side by side under. */
@media (max-width: 640px) {
  .group-room-counts {
    grid-template-columns: 1fr 1fr;
  }

  .group-room-counts > :first-child {
    grid-column: 1 / -1;
  }
}

.group-count {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 0.6rem 0.8rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
}

.group-count-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.group-count strong {
  font-size: 1.5rem;
}

.group-count .rooms-overnight {
  width: 100%;
  max-width: 10rem;
}

.group-count-warn {
  background: var(--cs-color-orange-90, var(--cs-color-yellow-95));
}

.group-section {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.group-section h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.group-unconfirmed {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
}

.group-meals-form,
.group-email {
  display: grid;
  gap: 0.75rem;
}

.group-fill {
  justify-self: start;
  cursor: pointer;
}

/* The group's meal counts, a card a meal with its number big, as
 * Salesforce's group page had them (David, Nov 16, 2026: "They stand out
 * more"): the meal, what the number is, the box, and what's booked. Closed,
 * the number stands in for the box. */
.meal-count-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 1rem;
}

.meal-count-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-md, 8px);
}

/* The meal's name is the card's header band, a color of its own, so the
 * cards don't run together (David, Nov 16, 2026). */
.meal-count-name {
  margin: 0;
  padding: 0.6rem 1.1rem;
  font-family: var(--cs-font-family-heading, inherit);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cs-color-brand-20);
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.meal-count-body {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem 1rem;
}

.meal-count-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.meal-count-input {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0.3rem 0.9rem;
  font: inherit;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cs-color-text-default, inherit);
  background: var(--cs-color-surface-default);
  border: 2px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-md, 8px);
}

.meal-count-input:focus-visible {
  outline: 3px solid var(--cs-color-brand-60);
  outline-offset: 1px;
  border-color: var(--cs-color-brand-40);
}

.meal-count-big {
  font-size: 2.6rem;
  line-height: 1.2;
}

.meal-count-big.meal-count-none {
  font-size: 1.4rem;
  color: var(--cs-color-text-quiet);
}

.meal-count-booked {
  font-size: 0.9rem;
  color: var(--cs-color-text-quiet);
}

.group-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

/* --- Settings > Areas ---
 * Each area a card: its name (type to rename), what's in it as a list
 * with an x each, and two pickers that add as soon as something's picked. */
.areas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin-top: 1.25rem;
}

.area-card {
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.area-card h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.area-head .money-key {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
}

.area-name-form {
  flex: 1 1 12rem;
  min-width: 0;
}

.area-name {
  width: 100%;
  padding: 0.15rem 0.35rem;
  font: inherit;
  font-family: var(--cs-font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cs-color-brand-30);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 4px);
}

.area-name:hover {
  border-color: var(--cs-color-neutral-80);
}

.area-name:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.area-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.area-tool,
.area-rule-off {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--cs-color-neutral-40);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.area-tool:hover {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.area-rule-off:hover {
  color: var(--cs-color-danger-40);
  background: var(--cs-color-danger-95);
}

.area-rules {
  display: grid;
  gap: 0.15rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}

.area-rules li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.25rem;
  border-bottom: 1px solid var(--cs-color-neutral-95);
}

.area-rules li cs-icon {
  color: var(--cs-color-neutral-50);
}

.area-add {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.area-loose-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.5rem;
  max-width: 32rem;
}

.area-new cs-callout {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .area-add {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Add-ons and activities ---
 * Two dialogs beside Bulk Book: a short list of add-ons with a count
 * each (the ones that fit what's booked first, the rest folded away), and
 * an activity with its day, times, and the places it holds. The Schedule
 * tab lists them under what's booked. */
.extras-head {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.extras-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extras-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.extras-item label {
  display: grid;
  cursor: pointer;
}

.extras-qty,
.extras-price,
.extras-for {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font: inherit;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

.extras-qty {
  font-weight: 700;
  text-align: right;
}

.extras-qty:focus-visible,
.extras-price:focus-visible,
.extras-for:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

/* A price and what it's for, for one priced when it's added. */
.extras-own {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.5rem;
}

.extras-more summary {
  font-weight: 600;
  color: var(--cs-color-brand-40);
  cursor: pointer;
}

.extras-when {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.extras-places {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.extras-places legend {
  margin-bottom: 0.35rem;
  padding: 0;
  font-weight: 600;
}

.extras-place {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sched-extras {
  margin-top: 1.5rem;
}

.sched-extras h3 {
  margin: 0 0 0.5rem;
}

.sched-extras-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.sched-extras-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.sched-extras-list li > cs-icon {
  margin-top: 0.1rem;
  color: var(--cs-color-brand-40);
}

.sched-extras-list p {
  margin: 0;
}

@media (max-width: 640px) {
  .extras-when {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extras-when > :first-child {
    grid-column: 1 / -1;
  }
}

/* The parts page shows a dialog's form in a box of a dialog's width. */
.parts-dialog-body {
  max-width: 36rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

/* --- Teams and serving ---
 * Settings > Teams lists each team and who leads it; a team's page lists
 * its people, with a role each, and adds someone already in the app or
 * someone new. Beside an activity, who was asked to serve and who said
 * yes. The invitation itself is a public page, in AIA red. */
.teams-list {
  display: grid;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.teams-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.teams-name {
  font-weight: 700;
}

.teams-what {
  display: grid;
  gap: 0.15rem;
}

/* Settings > Teams with nothing open (David, Nov 6, 2026): a box for each
 * team, in its group. */
.team-group {
  margin-top: 1.75rem;
}

.team-group h2 {
  margin: 0;
}

.team-group > p {
  margin: 0.15rem 0 0.75rem;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
}

.team-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  padding: 1rem;
  color: var(--cs-color-text-normal);
  text-decoration: none;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
  transition: border-color var(--duration-fast, 150ms), box-shadow var(--duration-fast, 150ms);
}

.team-card:hover,
.team-card:focus-visible {
  text-decoration: none;
  border-color: var(--cs-color-brand-40);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.team-card-icon {
  grid-row: 1 / span 3;
  font-size: 2rem;
  color: var(--cs-color-brand-40);
}

.team-card-name {
  font-family: var(--cs-font-family-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.team-card-count {
  grid-column: 2;
  align-self: end;
}

/* The drawer's list of teams: a heading for each group, and each team's
 * icon by its name. */
.record-group {
  padding: 0.85rem 1rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.team-row .record-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.team-row .record-name cs-icon {
  font-size: 1.15rem;
  color: var(--cs-color-brand-40);
}

/* A box that filters a list as it's typed into. */
.list-filter {
  display: block;
  margin: 0.5rem 0 0.25rem;
}

.list-filter input {
  width: 100%;
  margin: 0;
  padding-left: 2.25rem;
}

.team-people-filter {
  max-width: 24rem;
  margin: 0 0 0.75rem;
}

/* Each team's icon, on the list and its page (David, Nov 5, 2026). */
.teams-icon {
  font-size: 1.75rem;
  color: var(--cs-color-brand-40);
}

/* An icon to pick, in Add a team and a team's Edit. */
.icon-pick {
  margin: 0;
  padding: 0;
  border: 0;
}

.icon-pick legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-weight: 600;
}

.icon-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.icon-choice {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  cursor: pointer;
}

.icon-choice cs-icon {
  font-size: 1.5rem;
}

.icon-choice input {
  position: absolute;
  opacity: 0;
}

.icon-choice:has(input:checked) {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-40);
  box-shadow: inset 0 0 0 1px var(--cs-color-brand-40);
}

.icon-choice:has(input:focus-visible) {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

/* A team's page: its icon, name, and what it's for, with Edit and Add
 * someone at the top right; then its navy bars, and its people. */
.team-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.team-head-icon {
  font-size: 2.5rem;
  margin-top: 0.15rem;
  color: var(--cs-color-brand-40);
}

.team-head h1 {
  margin: 0;
}

.team-head-what p {
  margin: 0.2rem 0 0;
}

.team-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .team-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .team-head-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.team-folds {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.team-folds .fold-blue {
  margin: 0;
}

/* The team's logo, shown on its bar, on white so its navy reads. */
.fold-blue-logo {
  display: inline-flex;
  align-self: center;
  padding: 0.2rem 0.5rem;
  background: #fff;
  border-radius: 6px;
}

.fold-blue-logo img {
  display: block;
  height: 1.75rem;
  width: auto;
}

.set-group-head {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.team-set-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* What a role adds, as small chips. */
.team-role-adds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.set-chip {
  padding: 0.05rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
  border-radius: 999px;
}

/* A team's Monica: none, a shape, or Monica herself, then her shape or
 * look, the grid that goes with the kind picked. */
.monica-kinds {
  margin: 0;
  padding: 0;
  border: 0;
}

.monica-kinds legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 600;
}

.monica-kind-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.monica-kind {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  cursor: pointer;
}

.monica-kind > span {
  display: grid;
}

.monica-kind cs-icon {
  font-size: 1.6rem;
  color: var(--cs-color-brand-40);
}

.monica-kind input {
  position: absolute;
  opacity: 0;
}

.monica-kind:has(input:checked) {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-40);
  box-shadow: inset 0 0 0 1px var(--cs-color-brand-40);
}

.monica-kind:has(input:focus-visible) {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.team-monica-form:not(:has(input[name="kind"][value="shape"]:checked)) .monica-kind-shape,
.team-monica-form:not(:has(input[name="kind"][value="monica"]:checked)) .monica-kind-monica {
  display: none;
}

@media (max-width: 640px) {
  .monica-kind-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Add someone to a team: the finder, or (Add someone new) their name and
 * email, never both. */
.team-add-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  cursor: pointer;
}

.team-add-switch cs-icon {
  font-size: 1.15rem;
}

.team-add-find,
.team-add-new-fields {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.team-add-find > *,
.team-add-new-fields > cs-input {
  justify-self: stretch;
}

/* The switch between them is a checkbox nobody sees; its labels flip it.
 * The app's checkbox rule would show it despite hidden. */
.team-add-form .team-add-toggle {
  display: none;
}

.team-add-form:has(.team-add-toggle:checked) .team-add-find,
.team-add-form:not(:has(.team-add-toggle:checked)) .team-add-new-fields {
  display: none;
}

.team-add-form .team-add-switch {
  justify-self: start;
}

.integrations-empty {
  margin-top: 1.25rem;
}

/* Square's line over the integrations (AIASCRC-8): a bordered row that
   opens its page, saying whether it's connected and to which world. */
.square-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.square-line:hover {
  border-color: var(--cs-color-brand-40);
}

.square-line-name {
  font-weight: 600;
}

.square-line-go {
  margin-left: auto;
}

/* Square's page: Connect or Disconnect under the facts, a location to
   pick, and the permissions in words. */
.square-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}

.square-location {
  margin-top: 1.25rem;
  max-width: 36rem;
}

.square-scopes {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
}

.square-scopes code {
  margin-left: 0.35rem;
}

/* Send a card link / Send an ACH invoice (AIASCRC-8): the two buttons in
   the Payment links head, the amount to ask for, and what they'll pay. */
/* The price book the account picked, and why (David, Nov 9, 2026), under
   a label like a field's while there are no books to show yet. */
.book-label {
  margin: 0;
  font-weight: 600;
}

/* The price book the account picked, and why (David, Nov 9, 2026). */
.book-why {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  color: var(--cs-color-text-quiet);
}

.book-why cs-icon {
  flex: none;
  color: var(--cs-color-brand-40);
}

.square-ask-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Send it again and Cancel on an open link (AIASCRC-77). */
.paylink-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.paylink-changed p {
  margin: 0 0 0.5rem;
}

.square-amount {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.square-amount legend {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.square-amount label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.square-amount-box {
  width: 8rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.35rem;
  font: inherit;
}

.square-sum {
  padding: 0.75rem 1rem;
  background: var(--cs-color-brand-95);
  border-radius: 0.5rem;
}

/* Settings > Permission sets, by group (David, Nov 5, 2026): a heading and
 * a line for each, then its table. */
.permset-group {
  margin-top: 1.75rem;
}

.permset-group h2 {
  margin: 0;
}

.permset-group > p {
  margin: 0.15rem 0 0.6rem;
}

/* The same columns in every group, so they line up down the page. */
.permset-table {
  table-layout: fixed;
}

.permset-table th:first-child {
  width: 15rem;
}

.permset-table th:last-child {
  width: 8rem;
}

@media (max-width: 640px) {
  .permset-table th:first-child {
    width: auto;
  }
}

/* --- People (David, Nov 5, 2026) ---
 * The list: each person's teams as chips with their icons, their main
 * team marked when they're on more than one. */
.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.55rem 0.1rem 0.4rem;
  font-size: 0.85rem;
  color: var(--cs-color-text-normal);
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 999px;
  white-space: nowrap;
}

.team-chip cs-icon {
  font-size: 1rem;
  color: var(--cs-color-brand-40);
}

.team-chip-role {
  color: var(--cs-color-text-quiet);
}

.team-chip-role::before {
  content: "· ";
}

.team-chip-main {
  border-color: var(--cs-color-brand-40);
}

.people-off td {
  color: var(--cs-color-text-quiet);
}

/* A person's page: who they are and how they sign in, with Edit and
 * Impersonate beside it. */
.person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
}

.person-head h1 {
  margin: 0;
}

.person-head-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.35rem 0 0;
}

.person-head-sign-in {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.person-head-sign-in cs-icon {
  font-size: 1.15rem;
  color: var(--cs-color-brand-40);
}

.person-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.person-head-actions form {
  margin: 0;
}

/* Their teams: the icon, the team and their role, its tags, and its tools. */
.person-team-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cs-color-surface-border);
}

.person-team-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.person-team-icon {
  font-size: 1.5rem;
  color: var(--cs-color-brand-40);
}

.person-team-what {
  display: grid;
}

.person-team-tags,
.person-team-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.person-team-tools form {
  margin: 0;
}

@media (max-width: 640px) {
  .person-team-list li {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .person-team-tags {
    grid-column: 2;
    grid-row: 2;
  }
}

.person-teams.record-section {
  margin-top: 1.25rem;
}

.person-teams h2 {
  margin: 0;
}

/* Permission sets and History, navy bars folded to start. */
.person-fold {
  margin-top: 0.75rem;
}

#person-access {
  margin-top: 1.75rem;
}

/* Under the name on a phone only, where the Teams column folds away. */
.team-chips.browse-inline {
  display: none;
  margin-top: 0.3rem;
}

@media (max-width: 640px) {
  .team-chips.browse-inline {
    display: flex;
  }
}

.person-sets h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.person-sets h3 + p {
  margin-top: 0;
}

.person-sets > h3:not(:first-of-type) {
  margin-top: 1.25rem;
}

.person-set-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person-set-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
}

.set-group {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.set-group legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

/* Edit's Switch off, apart from its Save. */
.person-edit-off {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

/* How someone signs in, on their page in Settings > People. */
.person-sign-in {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 1.5rem 0;
}

.person-sign-in > * {
  margin: 0;
}

/* Settings > Email: who the scheduled emails come from and go to. */
.email-settings {
  display: grid;
  gap: 1.5rem;
  max-width: 36rem;
  margin-top: 1rem;
}

.email-settings section {
  display: grid;
  gap: 0.75rem;
}

.email-settings h2,
.email-settings p {
  margin: 0;
}

/* What being on a team gives: the sets it carries, chosen by Admins. */
.team-access {
  margin: 1rem 0 1.5rem;
}

/* A team's roles: each with what it adds, then a way to add one. */
.team-roles {
  margin: 0 0 1.5rem;
}

.team-roles h2 {
  margin-bottom: 0.25rem;
}

.team-role-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.team-role-list > li {
  display: grid;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.team-role-head {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 0.5rem 1rem;
}

/* A role's people, each with an X to take them out of it, and a pick to
   put someone on the team in it (David, Nov 30, 2026). */
.team-role-people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cs-color-neutral-95);
}

.team-role-person {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.15rem 0.3rem 0.15rem 0.6rem;
  font-size: 0.875rem;
  background: var(--cs-color-brand-95);
  border-radius: 999px;
}

.team-role-person button {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  color: var(--cs-color-text-quiet);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
}

.team-role-person button:hover {
  color: var(--cs-color-danger-40);
  background: var(--cs-color-surface-default);
}

.team-role-put {
  flex: 1 1 14rem;
  max-width: 20rem;
  margin-left: auto;
}

/* The names other teams use, under Add a role. */
.team-role-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* A person's role on a team, on their page. */
.person-team-role {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.team-role-what {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
}

.team-role-what > span.small:not(.quiet) {
  flex-basis: 100%;
}

.team-role-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}

@media (max-width: 640px) {
  .team-role-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-role-put {
    max-width: none;
    margin-left: 0;
  }

  .team-role-adds {
    grid-column: 1;
    grid-row: 2;
  }

  .team-role-tools {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.team-role-rename,
.team-role-add {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
}

.team-role-add {
  max-width: 28rem;
}

.team-role-add cs-input {
  flex: 1 1 12rem;
}

.team-add-role {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.team-add-role .team-role {
  width: 100%;
  min-height: var(--cs-form-control-height, 2.5rem);
  font-weight: 400;
}

/* A permission set's Who has it: teams, roles, and people side by side. */
.permset-who {
  max-width: none;
  margin: 0.75rem 0 1.25rem;
}

.permset-who h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.permset-who-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
}

.permset-who-groups h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.permset-who-list {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.permset-who-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.permset-who-add {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.permset-who-add .search-pick {
  width: 100%;
}

/* View as someone: pick, then go. */
.view-as-form {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  max-width: 32rem;
  margin: 1rem 0;
}

.view-as-form .search-pick {
  width: 100%;
}

.team-access h2 {
  margin-bottom: 0.25rem;
}

/* Settings > Permission sets: one set's records, powers, and apps. */
.permset-body {
  max-width: 52rem;
}

.permset-fields {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.permset-fields h2 {
  margin: 0.75rem 0 0;
}

.permset-fields > p {
  margin: 0;
}

.permset-name {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem 1rem;
}

.permset-rights th[scope='row'] {
  font-weight: 500;
  text-align: left;
}

.permset-rights thead th:not(:first-child),
.permset-rights td {
  width: 5.5rem;
  text-align: center;
}

.permset-rights input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--cs-color-brand-40);
}

/* A team uses the record's whole width beside the list (David, Nov 6,
 * 2026: it didn't fill its area). */
.team-body {
  min-width: 0;
}

.team-members {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.team-members li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.team-member-off {
  opacity: 0.6;
}

.team-member-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.team-member-who .quiet,
.team-member-who > span.small {
  flex-basis: 100%;
}

.team-member-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.team-role {
  width: 9rem;
  padding: 0.3rem 0.5rem;
  font: inherit;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
}

.team-role:focus-visible {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.team-leader {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.team-add-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.75rem;
}

.ask-team {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.ask-status {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--cs-color-neutral-95);
}

.ask-status cs-icon {
  font-size: 1rem;
  vertical-align: -0.15rem;
}

.ask-serving {
  margin: 0.15rem 0;
}

.ask-button {
  margin-left: 0;
}

.serve-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-color-brand-40);
}

.serve-for {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.serve-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
}

.serve-facts dt {
  font-weight: 600;
  color: var(--cs-color-neutral-40);
}

.serve-facts dd {
  margin: 0;
}

.serve-message {
  padding: 0.75rem 1rem;
  white-space: pre-line;
  background: var(--cs-color-neutral-95);
  border-radius: var(--radius-sm, 4px);
}

.serve-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (max-width: 640px) {
  .team-members li {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-add-new,
  .ask-team {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-role {
    flex: 1;
    width: auto;
  }
}

.serve-card cs-callout {
  display: block;
  margin-top: 1rem;
}

/* --- Leads ---
 * The Sales inbox and lists (reservations' layout), a lead's page (where it
 * stands, what they wrote), and the board. */

.leads-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lead-inbox-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border-radius: 999px;
}

/* Shown under the name in every width, not only on a phone. */
.browse-inline-always {
  display: block;
}

/* A lead's status: a small pill, quiet while new, the brand once someone
 * is working it, green when won, and dashed gray when lost. */
.lead-status {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid var(--cs-color-brand-70);
  border-radius: 999px;
  color: var(--cs-color-brand-30);
  background: var(--cs-color-brand-95);
}

.lead-status-contacted {
  color: var(--cs-color-sky-20, var(--cs-color-brand-20));
  background: var(--cs-color-sky-95, var(--cs-color-brand-90));
  border-color: var(--cs-color-sky-70, var(--cs-color-brand-70));
}

.lead-status-working {
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.lead-status-won {
  color: var(--cs-color-success-on-quiet);
  background: var(--cs-color-success-fill-quiet);
  border-color: var(--cs-color-success-40);
}

.lead-status-lost {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
  border: 1px dashed var(--cs-color-neutral-70);
}

/* An archived lead, in search: put away, so the quietest of all. */
.lead-status-archived {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-90);
  border-color: var(--cs-color-neutral-80);
}

/* How likely a lead is to book: cold, warm, hot. */
.lead-temp {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.25rem;
  padding: 0 0.4rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 0.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.lead-temp cs-icon {
  font-size: 0.85rem;
}

.lead-temp-cold {
  color: var(--cs-color-sky-20, var(--cs-color-brand-20));
  background: var(--cs-color-sky-90, var(--cs-color-brand-90));
}

.lead-temp-medium {
  color: var(--cs-color-orange-20, #7a3b00);
  background: var(--cs-color-orange-90, #ffe8d1);
}

.lead-temp-hot {
  color: var(--cs-color-cerise-20, var(--cs-color-danger-on-quiet));
  background: var(--cs-color-cerise-90, var(--cs-color-danger-fill-quiet));
}

.lead-standing {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

/* The status path, as Salesforce drew it: arrows in a row, the steps
 * passed ticked, the current one navy, the rest gray, and the next step's
 * button beside it. Each arrow's notch overlaps the one before, less a
 * sliver, so a thin gap shows between them. */
.lead-path-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.lead-path {
  --arrow: 0.75rem;
  display: flex;
  flex: 1 1 26rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border-radius: 999px;
}

.lead-step {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--cs-color-text-normal);
  background: var(--cs-color-neutral-90);
  clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, 0 100%, var(--arrow) 50%);
}

.lead-step + .lead-step {
  margin-left: calc(3px - var(--arrow));
}

.lead-step:first-child {
  clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, 0 100%);
}

.lead-step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--arrow) 50%);
}

.lead-step > button,
.lead-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  height: 2.25rem;
  padding: 0 calc(var(--arrow) + 0.25rem) 0 calc(var(--arrow) + 0.5rem);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  background: none;
  border: 0;
}

.lead-step-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-step > button {
  cursor: pointer;
}

.lead-step:has(> button:hover) {
  background: var(--cs-color-neutral-80);
}

.lead-step > button:focus-visible {
  text-decoration: underline;
  outline: 2px solid var(--cs-color-brand-40);
  outline-offset: -5px;
}

.lead-step-done {
  color: var(--cs-color-brand-30);
  background: var(--cs-color-brand-90);
}

.lead-step-done:has(> button:hover) {
  background: var(--cs-color-brand-80);
}

.lead-step-here {
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
}

.lead-step-won {
  color: var(--cs-color-success-on-loud);
  background: var(--cs-color-success-fill-loud);
}

.lead-step-lost {
  color: var(--cs-color-neutral-on-loud);
  background: var(--cs-color-neutral-fill-loud);
}

/* On a phone the steps passed are just their ticks, and each of the rest
 * takes the room its word needs, so the current one is never cut off. */
@media (max-width: 640px) {
  .lead-path {
    --arrow: 0.6rem;
  }

  .lead-step {
    flex: 1 1 auto;
  }

  .lead-step > button,
  .lead-step > span {
    padding: 0 calc(var(--arrow) + 0.15rem) 0 calc(var(--arrow) + 0.35rem);
    font-size: 0.8rem;
  }

  .lead-step-done {
    flex: 0 0 calc(var(--arrow) * 2 + 1.5rem);
  }

  /* The spots it's on keep their whole word; the rest give up the room. */
  .lead-step[aria-current] {
    flex: 1 0 auto;
  }

  .lead-step-done .lead-step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .lead-path-bar > cs-button {
    flex: 1 1 100%;
  }
}

.lead-close {
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.lead-temps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.lead-temps .lead-temp {
  margin: 0;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* A temperature that isn't the lead's: an outline to pick it by. */
.lead-temps .lead-temp-off {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-surface-default);
  border-color: var(--cs-color-neutral-80);
}

/* A lead's or rebooking's three boxes under its status path: who has it,
 * how likely it is to book, and the next follow-up (David, Oct 29, 2026:
 * they ran together as one block). Each is a Cornerstone card: a label as
 * a reservation's facts have them, what it is now, its buttons, and its
 * form opening inside it. Side by side when there's room, stacked on a
 * phone. */
.standing-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.standing-box {
  --spacing: var(--cs-space-m);
}

.standing-box .standing-label,
.lead-inquiry .standing-label,
.details-card .standing-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-family: var(--cs-font-family-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.standing-label cs-icon {
  font-size: 1rem;
}

.standing-box p {
  margin: 0;
}

.standing-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cs-color-text-normal);
}

.standing-value.standing-none {
  font-weight: 400;
  color: var(--cs-color-text-quiet);
}

.standing-what {
  margin-top: 0.15rem !important;
}

.standing-note {
  margin-top: 0.15rem !important;
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

.standing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.standing-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.standing-form .standing-actions {
  margin-top: 0;
}

/* What they wrote is the most important thing on the page, so it's first
 * and in full: a card like the boxes above it, labeled as they are, with
 * a navy line down its edge (David, Oct 29, 2026). */
.lead-inquiry {
  --spacing: var(--cs-space-m);
  margin: 0 0 1rem;
  border-inline-start: 4px solid var(--cs-color-brand-40);
}

.lead-inquiry-text {
  margin: 0;
  white-space: pre-wrap;
}

/* A section of a record's page set off like a page break: a rule across
 * the page, then a full-size heading with its button, and what's in it
 * underneath (David, Oct 29, 2026: a lead's quotes, which were easy to
 * miss as a plain heading, and too small as a card). */
.record-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--cs-color-surface-border);
}

.record-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.record-section .record-section-head h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.5rem;
}

.record-section-head h3 cs-icon {
  font-size: 1.6rem;
}

.record-section > p {
  margin: 0;
}

/* Its rows' lines end where the rule above them does. */
.record-section .record-list {
  margin: 0;
}

.record-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Each fact takes the room its words need, so an email stays on one line
 * when there's room for it, and the last row stretches to the edge. */
.lead-facts {
  display: flex;
  flex-wrap: wrap;
}

.lead-facts > div {
  flex: 1 1 auto;
  min-width: 11rem;
}

/* A fold at a record's foot that deletes it (a permission set's). */
.lead-delete {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.lead-delete summary {
  color: var(--cs-color-text-quiet);
  cursor: pointer;
}

/* Convert, in place of where a lead stands, a little below its head's
 * buttons. */
.lead-convert {
  margin-top: 1rem;
}

/* An archived lead's note under its head: when, by whom, and Bring it
 * back or Delete for good. */
.lead-archived {
  margin-block: 0.75rem;
}

.lead-archived p {
  margin: 0;
}

.lead-archived-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* New lead and Edit: fields side by side where there's room. */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-row > * {
  flex: 1 1 12rem;
}

.lead-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-interests legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.lead-dialog {
  --width: min(44rem, 94vw);
}

/* The board: a column per status, cards that drag between them on a
 * desktop, the columns one under another on a phone. */
.lead-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.lead-board > cs-callout {
  grid-column: 1 / -1;
}

.lead-col {
  display: grid;
  gap: 0.5rem;
  min-height: 8rem;
  padding: 0.75rem;
  background: var(--cs-color-neutral-95);
  border: 2px solid transparent;
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

/* A board column's name, and its count in a pill of its own (David, Oct
   29, 2026: "New 11198" read as one name). Two classes, to win over a
   page's h2 margin. */
.lead-col .lead-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.lead-col-count {
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  color: var(--cs-color-text-quiet);
  font-size: 0.8rem;
  font-weight: 600;
}

.lead-col-more {
  display: block;
  padding: 0.4rem 0.25rem 0;
  font-size: 0.85rem;
}

.lead-col.lead-drop {
  border-color: var(--cs-color-brand-60);
  border-style: dashed;
}

/* Where a dragged card will land, on a board that orders its columns. */
.lead-drop-line {
  height: 3px;
  margin: -0.15rem 0;
  border-radius: 2px;
  background: var(--cs-color-brand-40);
}

/* A card is Cornerstone's (cs-card): its header (the name, temperature,
   and the grip), what they asked, and who and when in its footer, at a
   board's tighter spacing. The whole card opens it (its name's link
   stretched over it); only the grip drags. */
.lead-card {
  --spacing: var(--cs-space-m);
  position: relative;
  transition: box-shadow 0.12s, border-color 0.12s;
}

.lead-card:hover,
.lead-card:focus-within {
  border-color: var(--cs-color-brand-70);
  box-shadow: var(--cs-shadow-m);
}

.lead-card.lead-dragging {
  opacity: 0.5;
}

.lead-card p {
  margin: 0;
}

.lead-card > p + p,
.lead-card > p + .lead-follow-line {
  margin-top: 0.3rem;
}

.lead-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.lead-card-name {
  min-width: 0;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  text-decoration: none;
}

.lead-card-name::after {
  content: '';
  position: absolute;
  inset: 0;
}

.lead-card-name:focus-visible {
  outline: none;
}

.lead-card:has(.lead-card-name:focus-visible) {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.lead-grip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 4px;
  color: var(--cs-color-text-quiet);
  cursor: grab;
  opacity: 0.5;
}

.lead-card:hover .lead-grip {
  opacity: 1;
}

.lead-grip:hover {
  background: var(--cs-color-neutral-95);
}

.lead-grip:active {
  cursor: grabbing;
}

.lead-card-org {
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

.lead-card-ask {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.85rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.lead-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--cs-color-text-quiet);
}

.lead-card-meta cs-icon {
  font-size: 0.9rem;
  vertical-align: -0.15rem;
}

@media (max-width: 760px) {
  .lead-board {
    grid-template-columns: 1fr;
  }
}

/* The Sales inbox view's count: a navy dot, not another pill. */
.browse-view .lead-inbox-count {
  display: inline-grid;
  margin: 0 0 0 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border: 0;
  border-radius: 999px;
}

.browse-view input:checked + span .lead-inbox-count {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-surface-default);
}

/* The parts page: small samples side by side. */
.parts-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* How a lead came in, under the day in the list. */
.lead-came-in {
  display: block;
  font-size: 0.75rem;
  color: var(--cs-color-text-quiet);
  white-space: normal;
}

/* The website form a lead came from (AIASCRC-132): a small tag with the
   form's name, in warning colors while nobody has named it. A long key
   wraps inside it rather than widening its column. */
.lead-form-tag {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  max-width: 100%;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cs-color-brand-30);
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
  background: var(--cs-color-brand-95);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 999px;
}

.lead-form-tag cs-icon {
  flex: none;
  font-size: 0.95rem;
}

.lead-form-tag.lead-form-unknown {
  color: var(--cs-color-warning-30);
  background: var(--cs-color-warning-95);
  border-color: var(--cs-color-warning-80);
}

.lead-came-in .lead-form-tag,
.record-sub .lead-form-tag {
  margin-top: 0.15rem;
}

.lead-head-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

/* Where a website lead came from, among its facts: the whole row, since a
   page's address runs long. */
.lead-facts > .lead-came-from {
  flex-basis: 100%;
}

.lead-came-from dd > strong {
  font-weight: 600;
}

.lead-form-unknown-words {
  font-weight: 600;
  color: var(--cs-color-warning-30);
}

.lead-form-unknown-words cs-icon {
  margin-right: 0.2rem;
  vertical-align: -0.15em;
}

.lead-link-out {
  font-size: 0.85em;
  vertical-align: -0.1em;
}

/* Settings > Lead forms. */
.lead-forms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  max-width: 64rem;
  margin-top: 1rem;
}

.lead-forms > .fold-blue {
  margin: 0;
}

.lead-forms-table td {
  vertical-align: middle;
}

.lead-form-key {
  font-size: 0.85em;
  overflow-wrap: anywhere;
  white-space: normal;
}


.lead-forms-act {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.lead-forms-none {
  margin: 0.75rem 0 0;
}

.lead-form-dialog-key {
  margin: 0;
}

/* A board card's left edge says how hot the lead is, so a column can be
 * scanned in a meeting. */
.lead-card-hot {
  border-left: 4px solid var(--cs-color-cerise-50, var(--cs-color-danger-40));
}

.lead-card-medium {
  border-left: 4px solid var(--cs-color-orange-60, #e08a2c);
}

.lead-card-cold {
  border-left: 4px solid var(--cs-color-sky-60, var(--cs-color-brand-60));
}

/* A lead's next follow-up in a list and on a card; red
 * once its day has gone by. */
.lead-follow-line {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--cs-color-text-quiet);
}

.lead-follow-line cs-icon {
  font-size: 0.9rem;
  vertical-align: -0.15rem;
}

.lead-overdue,
.lead-follow-line.lead-overdue {
  font-weight: 600;
  color: var(--cs-color-danger-on-quiet, var(--cs-color-danger-40));
}

/* --- Quotes ---
 * The quote screen: the form on the left, what it comes to beside it
 * (under it on a phone), drawn again as anything changes. */

.quote-page {
  max-width: 76rem;
}

.quote-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

.quote-main {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.quote-section {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0; /* a wide table scrolls inside, never the page */
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.quote-section h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.05rem;
}

.quote-section p {
  margin: 0;
}

.quote-fact {
  display: grid;
  align-content: end;
  gap: 0.2rem;
  padding-bottom: 0.5rem;
}

.quote-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.quote-table input,
.quote-table select {
  font: inherit;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: var(--radius-sm, 4px);
  background: var(--cs-color-surface-default);
}

/* Closer cells than a list's, so the meals fit beside the total on a
 * laptop. */
.quote-table th,
.quote-table td {
  padding-inline: 0.4rem;
}

.quote-table .quote-qty {
  width: 4.5rem;
  text-align: right;
}

.quote-table .quote-price {
  width: 5.5rem;
  text-align: right;
}

.quote-table select {
  max-width: 16rem;
}

/* Four short fields to a line, two when the form is narrower. When: the
 * first day, arriving, the last day, and leaving on one line (David, Oct
 * 26, 2026), or a day and its time on each of two; on one line a day gets
 * a little more room than a time. */
.quote-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end; /* a label run to two lines keeps the boxes in line */
}

.quote-when {
  grid-template-columns: repeat(2, minmax(0, 6fr) minmax(0, 5fr));
}

@container (max-width: 38rem) {
  .quote-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-when {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The days are picked up top; a link there from where they're needed. */
.quote-needs-days a {
  margin-left: 0.25rem;
}

#q-first {
  scroll-margin-top: 9rem;
}

/* How many: Total people, then who's staying the night out of it, with a
 * bar of the men, women, and leaders against the total (the rest are
 * here for the day). More staying than in all turns its border to danger,
 * with the problem said under it. */
.quote-breakdown {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--cs-color-surface-border);
  border-left: 3px solid var(--cs-color-brand-40);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.quote-breakdown legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.quote-breakdown-over {
  border-color: var(--cs-color-danger-border-normal);
  border-left-color: var(--cs-color-danger-fill-loud);
}

.quote-bar {
  display: flex;
  height: 0.75rem;
  overflow: hidden;
  background: var(--cs-color-neutral-90);
  border-radius: 999px;
}

.quote-bar span {
  transition: width 0.2s;
}

/* A key's square is the bar's color; the plain one is the day guests. */
.quote-key {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--cs-color-neutral-90);
  border-radius: 2px;
}

.quote-bar-men {
  background: var(--cs-color-brand-40);
}

.quote-bar-women {
  background: var(--cs-color-sky-50);
}

.quote-bar-leaders {
  background: var(--cs-color-orange-50);
}

.quote-bar-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
}

.quote-bar-words span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* A form that draws itself again (the form is the state) keeps the page
 * where it was: left to itself, the browser's scroll anchoring loses its
 * place when the form is swapped and jumps the page (a quote's room count,
 * a meal's day). */
form[hx-target="this"][hx-swap="outerHTML"] {
  overflow-anchor: none;
}

/* A meal's days: Bulk Book's day toggles, a little smaller, on a line of
 * their own under the meal, so a long stay's wrap. */
.quote-days .bulk-day {
  min-width: 2.75rem;
  padding: 0.2rem 0.3rem;
  font-size: 0.75rem;
}

.quote-meal-row td {
  border-bottom: 0;
}

.quote-meal-days td {
  padding-top: 0;
}

/* The fields, courts, activities, and add-ons on a quote: what each is in
 * words, what it comes to, and Change. */
.quote-items {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: var(--cs-color-neutral-95);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.quote-item-what {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.quote-item-total {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.quote-item-act {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.quote-item-problem {
  grid-column: 1 / -1;
}

/* The item dialog: what kind (toggles like Bulk Book's days), what, how
 * many and the price side by side, then the days. */
.quote-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.quote-kinds legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.quote-kind {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 999px;
}

.quote-kind input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quote-kind:has(input:checked) {
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.quote-kind:has(input:focus-visible) {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 1px;
}

.quote-item-how {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.quote-item-sum p {
  margin: 0;
}

/* A bundle's items to tick: each with how many and what it comes to;
 * one already in another bundle is grayed and can't be ticked. */
.quote-bundle-items {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.quote-bundle-items legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.quote-bundle-item {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.quote-bundle-item > span:nth-child(2) {
  display: grid;
}

.quote-bundle-item:has(input:checked) {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-40);
}

.quote-bundle-taken {
  color: var(--cs-color-text-quiet);
  cursor: default;
}

.quote-bundle-item-total {
  font-variant-numeric: tabular-nums;
}

/* Send quote: the PDF that goes with it, and the copy to the sender. */
.quote-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.quote-attachment + span {
  margin-left: 0.3rem;
}

.quote-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quote-line-bundle .quote-line-name cs-icon {
  vertical-align: -0.15em;
}

.quote-side {
  position: sticky;
  top: calc(var(--header-height, 4rem) + 1rem);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-top: 4px solid var(--cs-color-brand-40);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.quote-side h3 {
  margin: 0;
}

.quote-lines {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem;
}

.quote-line-name {
  font-weight: 600;
}

.quote-line-total {
  grid-column: 2;
  grid-row: 1;
  font-variant-numeric: tabular-nums;
}

.quote-totals {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.quote-totals div {
  display: flex;
  justify-content: space-between;
}

.quote-totals dt,
.quote-totals dd {
  margin: 0;
}

.quote-totals dd {
  font-variant-numeric: tabular-nums;
}

.quote-total {
  font-size: 1.1rem;
  font-weight: 700;
}

.quote-problem-note {
  color: var(--cs-color-danger-on-quiet, var(--cs-color-danger-40));
}

@media (max-width: 960px) {
  .quote-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .quote-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quote-table th.num {
    white-space: normal;
  }

  .quote-table .quote-qty {
    width: 3.75rem;
  }

  .quote-table .quote-price {
    width: 4.75rem;
  }

  /* Each room and meal stacked: its name (and what's served) across, then
   * how many, the price, and the total side by side, then a meal's days,
   * each field labeled from its column. */
  .quote-stack thead {
    display: none;
  }

  .quote-stack,
  .quote-stack tbody,
  .quote-meal-days,
  .quote-meal-days td {
    display: block;
  }

  .quote-stack tr {
    border-bottom: 1px solid var(--cs-color-surface-border);
  }

  .quote-stack tr.quote-meal-row {
    border-bottom: 0;
  }

  .quote-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
    padding: 0.6rem 0;
  }

  .quote-meal-row {
    padding-bottom: 0;
  }

  .quote-stack .quote-row td {
    padding: 0;
    border-bottom: 0;
  }

  .quote-row td:first-child,
  .quote-row td.quote-wide {
    grid-column: 1 / -1;
  }

  .quote-row td:first-child {
    font-weight: 600;
  }

  .quote-row td:first-child .quiet {
    font-weight: 400;
  }

  .quote-stack td[data-label]::before {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--cs-color-text-quiet);
    text-align: left;
    content: attr(data-label);
  }

  .quote-stack .quote-meal,
  .quote-stack .quote-qty,
  .quote-stack .quote-price {
    width: 100%;
    max-width: none;
  }

  .quote-meal-days td:first-child {
    display: none;
  }

  .quote-stack .quote-meal-days td {
    padding: 0.4rem 0 0.6rem;
    border-bottom: 0;
  }

  .quote-item-act {
    grid-column: 1 / -1;
  }
}

/* What a meal serves: room for "Breakfast · $14.00". */
.quote-table .quote-meal {
  min-width: 9rem;
}

.parts-quote-side {
  max-width: 22rem;
}

/* Sales (David, Oct 27, 2026): Leads and Quotes as tabs under the section's
 * title, as the Dashboard's are. */
.sales-tabs,
.accounts-tabs {
  margin-top: 0.25rem;
}

/* A contact's title, under their name in the Contacts list. */
.browse-table .contact-title {
  display: block;
}

/* Where a quote stands, as a pill like a lead's status: open (outlined),
 * sent (navy), declined (danger, quiet, its word saying so), and expired
 * or another chosen (gray, dashed). */
.quote-state {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--cs-color-brand-30);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-70);
  border-radius: 999px;
}

.quote-state-sent {
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.quote-state-declined {
  color: var(--cs-color-danger-on-quiet);
  background: var(--cs-color-danger-fill-quiet);
  border-color: var(--cs-color-danger-border-quiet);
}

.quote-state-expired,
.quote-state-not_chosen {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
  border: 1px dashed var(--cs-color-neutral-70);
}

/* A quote's page: what can be done with it in a row under its name, then
 * the quote in words, as its PDF has it. */
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}

.quote-doc-section {
  margin-top: 1.25rem;
}

.quote-doc-section h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.quote-package {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-neutral-95);
  border-left: 3px solid var(--cs-color-brand-40);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.quote-package p {
  margin: 0;
}

.quote-package-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.quote-doc-totals {
  max-width: 24rem;
  margin: 1.25rem 0 0 auto;
}

/* The moment before Cornerstone defines its parts (its loader fetches them
 * just after each page first draws): a menu shows only its button, and an
 * icon or avatar holds its place, so the page draws at its real size from
 * the start. Without this the top bar drew tall, with both menus open
 * inline, and the whole page jumped up 56px a moment later on every page
 * (David, Oct 27, 2026). */
cs-dropdown:not(:defined) > :not([slot='trigger']) {
  display: none;
}

/* A picker's options are its list, not text: drawn inline before it's
 * defined, a long list (the public schedule's areas) made a phone's page
 * three times as wide, and it stayed zoomed out. */
cs-select:not(:defined) {
  display: block;
  min-height: 4.25rem;
}

cs-select:not(:defined) > cs-option {
  display: none;
}

cs-icon:not(:defined) {
  display: inline-block;
  width: 1em;
  height: 1em;
}

cs-avatar:not(:defined) {
  display: inline-block;
  width: 2rem;
  height: 2rem;
}

/* A hint hangs under its own field and never lifts its box above the
 * boxes beside it (David, Oct 28, 2026: the schedule links' email
 * sat higher than the fields next to it). A row that lines its fields up
 * at the bottom, to meet a button or past a label run to two lines, does
 * just that, so once a field in it has a hint, or a search pick its
 * "needed" note, its fields fill the row and keep their labels and boxes
 * at the top. Buttons and checkboxes in it still line up as the row says. */
:has(> [hint]:not([hint='']), > .search-pick > .search-pick-needed, > .date-pick > .date-pick-hint)
  > :is(cs-input, cs-select, cs-textarea, cs-time-input, cs-date-input, .search-pick, .date-pick) {
  align-self: stretch;
}

/* Accepting a quote (David, Oct 27, 2026): the form on the quote's page,
 * with the ones already here that look like the lead offered under each
 * picker, and what accepting does before anything is saved. */
.quote-accept {
  max-width: 40rem;
  padding: 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.quote-accept h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.quote-accept h3 cs-icon {
  color: var(--cs-color-brand-40);
}

.quote-accept > p {
  margin: 0;
}

.quote-accept-who {
  display: grid;
  gap: 0.5rem;
}

.quote-accept-matches p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}

.quote-accept-picked {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--cs-color-success-30);
  white-space: nowrap;
}

.quote-accept-list {
  margin: 0;
}

.lead-converted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.lead-converted cs-icon {
  color: var(--cs-color-brand-40);
}

/* An accepted quote's rough rooms and spaces still to book, on the
 * Schedule tab, and the dialog that books each. */
.place-runs {
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--cs-color-warning-fill-quiet);
  border: 1px solid var(--cs-color-warning-border-quiet);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.place-runs h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.25rem;
}

.place-runs > p {
  margin: 0 0 0.75rem;
}

.place-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.6rem 0.75rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.place-list li > cs-icon {
  color: var(--cs-color-brand-40);
}

.place-list p,
.place-about p {
  margin: 0;
}

.place-when {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.place-rooms {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.place-rooms legend {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
  padding: 0;
  font-weight: 600;
}

.place-rooms > p {
  margin: 0;
}

.place-short {
  font-weight: 600;
  color: var(--cs-color-warning-on-quiet);
}

.place-groups {
  max-height: 20rem;
}

@media (max-width: 600px) {
  .place-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .place-list li > cs-button {
    grid-column: 1 / -1;
  }
}

/* Rebookings (Sales' third tab): Follow up?'s two buttons on each stay,
 * last time on a rebooking's page, and a tick box that saves as it's
 * ticked (a stay's Details tab, Settings > Event types). */
.follow-up-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.rebooking-last .record-row {
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.details-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.details-check + .quiet {
  display: block;
}

@media (max-width: 640px) {
  .browse-inline .follow-up-actions {
    justify-content: flex-start;
    margin-top: 0.4rem;
  }
}

/* A reservation's status path (David, Oct 27, 2026): the lead's path under
 * the header, the spot it's on in its status's schedule colors (as the
 * chips and badges are), so a status never wears two colors. */
.res-path-bar {
  margin: 0.25rem 0 1rem;
}

/* Hold is light blue with a navy outline, as its chip is. A border would
 * be cut off by the arrow's clip, so the step itself is navy and a light
 * blue layer sits inside it, 2px in all round: rounded on the left like
 * the path's end (Hold is always the first spot), and an arrow on the
 * right as steep as the step's, its tip 2.4px in (2px across the slant). */
.lead-step.res-step-hold {
  position: relative;
  color: var(--aia-navy);
  background: var(--aia-navy);
}

.res-step-hold::before {
  position: absolute;
  inset: 2px 2.4px 2px 2px;
  content: '';
  background: var(--cs-color-brand-90);
  border-radius: 999px 0 0 999px;
  clip-path: polygon(0 0, calc(100% - var(--arrow) + 1.33px) 0, 100% 50%, calc(100% - var(--arrow) + 1.33px) 100%, 0 100%);
}

.res-step-hold > button,
.res-step-hold > span {
  position: relative;
}

.lead-step.res-step-hold:has(> button:hover) {
  background: var(--aia-navy);
}

.res-step-hold:has(> button:hover)::before {
  background: var(--cs-color-brand-80);
}

/* Contract sent: still on hold, a step on from it, so a shade darker. */
.res-step-contract {
  color: var(--aia-navy);
  background: var(--cs-color-brand-80);
}

/* The money's spots: Deposit paid and Paid, green as the money comes in. */
.res-step-deposit {
  color: var(--cs-color-success-20);
  background: var(--cs-color-success-80);
}

.res-step-paid {
  color: var(--cs-color-success-on-loud);
  background: var(--cs-color-success-fill-loud);
}

.res-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.res-step-booked {
  color: var(--cs-color-brand-on);
  background: var(--aia-navy);
}

.res-step-waitlist {
  color: var(--cs-color-warning-on-loud);
  background: var(--cs-color-warning-fill-loud);
}

.res-step-cancelled {
  color: var(--cs-color-danger-on-quiet);
  background: var(--cs-color-danger-fill-quiet);
}

.res-step-released {
  color: var(--cs-color-text-quiet);
  background: repeating-linear-gradient(-45deg, var(--cs-color-neutral-95) 0 6px, var(--cs-color-neutral-90) 6px 12px);
}

@media (max-width: 640px) {
  /* Five spots don't fit a phone: the ticks, the lit spot, and the next
   * one keep their words, and the rest are short blank arrows (their
   * words still read aloud). */
  .res-path-bar .lead-step:not(.lead-step-done, [aria-current]) {
    flex: 0 0 calc(var(--arrow) * 2 + 1rem);
  }

  .res-path-bar .lead-step:not(.lead-step-done, [aria-current]) .lead-step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .res-path-bar .lead-step[aria-current] + .lead-step:not(.lead-step-done, [aria-current]) {
    flex: 1 1 auto;
  }

  .res-path-bar .lead-step[aria-current] + .lead-step:not(.lead-step-done, [aria-current]) .lead-step-label {
    position: static;
    width: auto;
    height: auto;
    overflow: hidden;
    clip-path: none;
  }

  .res-path-actions {
    flex: 1 1 100%;
  }

  .res-path-actions > cs-button {
    flex: 1 1 0;
  }
}

/* An activity's booking on the Schedule grid: an A before its times, as
 * Salesforce's Schedule marked them (David, Oct 27, 2026), outlined in the
 * chip's own ink so it reads on every status color. */
.chip-act {
  display: inline-block;
  margin-right: 0.2em;
  padding: 0 0.25em;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid currentColor;
  border-radius: 3px;
}

/* An activity with no place (David, Oct 27, 2026: almost every activity
 * needs one): its row on the Schedule tab is outlined in warning, with
 * the place picker right in it; a note at the top of the tab links there. */
.sched-extras-list li.sched-extra-needs {
  background: var(--cs-color-warning-fill-quiet);
  border-color: var(--cs-color-warning-border-normal);
}

.needs-place {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.needs-place-head {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
}

.needs-place-head cs-icon,
.sched-extra-warn cs-icon {
  flex: none;
  color: var(--cs-color-warning-on-quiet);
}

.needs-place-last {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.needs-place-ok {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--cs-color-success-on-quiet);
}

.needs-place-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.needs-place-callout a {
  font-weight: 600;
}

/* A button that reads as a link, for a quiet second choice. */
.link-button {
  padding: 0;
  font: inherit;
  color: var(--cs-color-brand-40);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
}

/* In a narrow cell an activity's chip wraps inside its own box (the A on
 * a line of its own if it must) rather than spilling past it. */
.chip:has(.chip-act) {
  height: auto;
  white-space: normal;
}

.chip:has(.chip-act) .chip-act {
  white-space: nowrap;
}

/* --- The guest survey ---------------------------------------------------
 * AIA's Guest Experience Survey (David, Oct 27, 2026): each statement rated
 * 1 (disagree) to 5 (agree) as five round picks between the two words, as
 * its Google form had them. On a phone the words sit under the picks. */
.survey-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.15;
}

.survey-for {
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.survey-form {
  display: grid;
  gap: 1rem;
}

.survey-form > cs-button {
  justify-self: start;
}

.survey-scale {
  margin: 0;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.5rem;
  background: var(--cs-color-surface-default);
}

.survey-scale legend {
  float: left; /* keeps the legend inside the box, as a heading */
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0;
  font-weight: 600;
  line-height: 1.4;
}

.survey-scale-row {
  clear: both;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.survey-scale-end {
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

.survey-scale-picks {
  display: flex;
  justify-content: space-around;
  gap: 0.25rem;
}

.survey-scale-pick {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: 2.75rem;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  cursor: pointer;
}

.survey-scale-pick input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--cs-color-brand-40);
  cursor: pointer;
}

.survey-scale-pick span:not(.visually-hidden) {
  order: -1; /* the number above its pick */
}

@media (max-width: 480px) {
  .survey-scale-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "picks picks" "low high";
    row-gap: 0.15rem;
  }

  .survey-scale-picks {
    grid-area: picks;
  }

  .survey-scale-low {
    grid-area: low;
  }

  .survey-scale-high {
    grid-area: high;
    text-align: right;
  }
}

/* A score out of 5: five dots, filled to the score, and the number. */
.survey-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.survey-dots {
  display: inline-flex;
  gap: 0.15rem;
}

.survey-dot {
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--cs-color-brand-40);
  border-radius: 50%;
}

.survey-dot.on {
  background: var(--cs-color-brand-40);
}

.survey-num {
  min-width: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.survey-answers {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.survey-answers li {
  margin: 0; /* Cornerstone indents list items */
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.35rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.survey-feedback {
  margin: 0.75rem 0 0;
  font-family: inherit; /* Cornerstone sets quotes in a serif */
  font-size: 0.95rem;
  font-style: normal;
  color: var(--cs-color-text-normal);
  padding: 0.5rem 0.85rem;
  white-space: pre-line;
  border-left: 3px solid var(--cs-color-brand-40);
  background: var(--cs-color-neutral-95);
}

/* The Details tab's Guest survey. */
.survey-sent {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.survey-sent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0;
}

.survey-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.survey-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .survey-who {
    grid-template-columns: 1fr;
  }
}

/* Sales > Surveys: the fiscal year's averages, statement by statement. */
.survey-year {
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.5rem;
  background: var(--cs-color-surface-default);
}

.survey-year h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.survey-year-scores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.survey-year-scores li {
  display: grid;
  grid-template-columns: 1fr auto 1.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.survey-year-scores li .quiet {
  text-align: right;
}

.survey-wrote {
  max-width: 22rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.follow-up-survey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

/* Settings > Event types: add one above the list; rename or turn one off
 * on its row. */
.event-type-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.event-type-add cs-input {
  flex: 1 1 16rem;
  max-width: 24rem;
}

@media (max-width: 640px) {
  .event-types-table .browse-fold {
    display: none;
  }
}

.event-type-add {
  margin-top: 0.75rem;
}

.event-type-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

/* Rename folds open under its link, in place of Cornerstone's own look
 * for a fold (a box with an arrow). */
.event-type-rename,
.event-type-rename[open] {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.event-type-rename[open] {
  flex-basis: 100%;
}

.event-type-rename summary,
.event-type-rename[open] summary {
  display: inline;
  margin: 0;
  padding: 0;
  list-style: none;
  cursor: pointer;
}

.event-type-rename summary::after {
  display: none;
}

.event-type-rename summary::-webkit-details-marker {
  display: none;
}

.event-type-rename form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
  white-space: normal;
}

/* The Payments tab's invoice buttons, above the due dates, and the box
 * that shows the discounts given on both (AIASCRC-83). */
.invoice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.invoice-discounts {
  margin-left: 0.25rem;
}

/* Send invoice names the PDF its Show the discounts given box says. */
.reminder-dialog:has(input[name="discounts"]:checked) .doc-attached-plain,
.reminder-dialog:not(:has(input[name="discounts"]:checked)) .doc-attached-discounts {
  display: none;
}

/* Recurring reservations: New series (a pattern, its dates by month,
 * each space a tick) and a series' page. */
.browse-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.series-when,
.series-spaces,
.series-skips {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.series-when legend,
.series-spaces legend,
.series-skips legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.series-range {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .series-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.series-skip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.series-skip-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
}

.series-preview {
  display: grid;
  gap: 1rem;
}

.series-month h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.series-days {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-days li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0; /* Cornerstone indents list items */
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.series-day {
  display: grid;
  min-width: 8.5rem;
  font-weight: 600;
}

.series-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* A space on a day: a tick, navy when it's booked; a taken one dashed
 * in warning, unticked until staff choose the waitlist. */
.series-slot {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: var(--radius-sm, 4px);
}

.series-slot:has(input:checked) {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-40);
}

.series-slot-taken {
  border-style: dashed;
  border-color: var(--cs-color-orange-60);
}

.series-slot-taken .small {
  color: var(--cs-color-text-quiet);
}

.series-record .pay-head {
  margin-bottom: 0.75rem;
}

/* Share the schedule (the schedule links): the form across, then the list. */
/* Space between what the page is for and the form. */
.settings-head + #schedule-links {
  margin-top: 1rem;
}

.schedule-link-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: end;
  gap: 0.75rem 1rem;
}

.schedule-link-form .manage-actions,
.schedule-link-form cs-callout {
  grid-column: 1 / -1;
}

/* The public schedule (/schedule/{token}): each area a grid of its
 * spaces across a day's hours or a week's days, bookings as bars placed by
 * the server. Wide grids scroll inside their box on a phone, the names
 * staying put. Its heading carries the schedule's logo, the calendar. */
.ps-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ps-title-mark {
  flex: 0 0 auto;
  height: 3rem;
  width: auto;
}

.ps-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.ps-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.ps-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.ps-group h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.ps-grid {
  --name-w: 9rem;
  --lane-h: 1.9rem;
  min-width: 52rem;
  border: 1px solid var(--cs-color-surface-border);
  background: var(--cs-color-surface-default);
}

.ps-grid.ps-week {
  min-width: 40rem;
}

.ps-row {
  display: flex;
  min-height: calc(var(--lanes, 1) * var(--lane-h) + 0.4rem);
  border-top: 1px solid var(--cs-color-surface-border);
}

.ps-head {
  min-height: 1.8rem;
  border-top: 0;
  background: var(--cs-color-neutral-95);
}

.ps-name {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: 0 0 var(--name-w);
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: inherit;
  background-color: var(--cs-color-surface-default);
  border-right: 1px solid var(--cs-color-surface-border);
}

.ps-head .ps-name {
  background-color: var(--cs-color-neutral-95);
}

.ps-track {
  position: relative;
  flex: 1 1 auto;
}

.ps-tick {
  position: absolute;
  top: 0;
  padding: 0.35rem 0.25rem;
  font-size: 0.75rem;
  color: var(--cs-color-text-quiet);
}

.ps-tick.ps-today {
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.ps-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--cs-color-neutral-90);
}

.ps-bar {
  position: absolute;
  top: calc(0.2rem + var(--lane, 0) * var(--lane-h));
  height: calc(var(--lane-h) - 0.25rem);
  overflow: hidden;
  padding: 0.2rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--cs-color-text-normal);
  background: var(--cs-color-neutral-90);
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: var(--radius-sm, 4px);
}

.ps-bar.ps-mine {
  font-weight: 600;
  color: #fff;
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.ps-bar.ps-waitlist {
  border-style: dashed;
}

/* The staff schedule (AIASCRC-13, views/shifts.templ): a week with a row
   for each person, each shift a chip in its position's palette color,
   dashed while it's a draft and marked when a booking it works changed
   since; Needs workers' cards, one per position and day. On a phone the
   week folds to each person's days that have shifts. */
.shift-sky { --shift-color: var(--cs-color-sky-50); --shift-tint: var(--cs-color-sky-90); }
.shift-orange { --shift-color: var(--cs-color-orange-50); --shift-tint: var(--cs-color-orange-90); }
.shift-green { --shift-color: var(--cs-color-green-50); --shift-tint: var(--cs-color-green-90); }
.shift-purple { --shift-color: var(--cs-color-purple-50); --shift-tint: var(--cs-color-purple-90); }
.shift-yellow { --shift-color: var(--cs-color-yellow-50); --shift-tint: var(--cs-color-yellow-90); }
.shift-cerise { --shift-color: var(--cs-color-cerise-50); --shift-tint: var(--cs-color-cerise-90); }
.shift-turquoise { --shift-color: var(--cs-color-turquoise-50); --shift-tint: var(--cs-color-turquoise-90); }
.shift-moss { --shift-color: var(--cs-color-moss-50); --shift-tint: var(--cs-color-moss-90); }



/* The title switches schedules (David, Nov 30, 2026), for someone who can
   use more than one: it looks like the title, with an arrow. */
.shift-switch-title {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* Cornerstone's dropdown sets its own font: the title takes the heading's,
   and the list goes back to the body's. */
.shift-switch {
  display: inline-block;
  max-width: 100%;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.shift-switch cs-dropdown-item {
  font-family: var(--cs-font-family-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cs-color-text-normal);
}

.shift-switch cs-dropdown-item[aria-current] {
  font-weight: 600;
}

.shift-switch-btn {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  max-width: 100%;
  height: auto;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  background: none;
  border: 0;
}

/* A long name wraps as a title does, the arrow after its last word. */
.shift-switch-btn > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shift-switch-btn cs-icon {
  flex: none;
  font-size: 0.75em;
  color: var(--cs-color-brand-40);
  transition: rotate 150ms;
}

.shift-switch-btn:hover span:first-child,
.shift-switch-btn:focus-visible span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.shift-switch[open] .shift-switch-btn cs-icon {
  rotate: 180deg;
}

.shift-switch-blank {
  display: inline-block;
  width: 1.25rem;
}

/* People's own heading, under who gets shifts and who builds it. */
.shift-people-title {
  margin: 1.5rem 0 0.5rem;
}

.shift-weeknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.shift-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.shift-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.shift-summary p,
.shift-summary h2 {
  margin: 0;
}

.shift-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shift-message,
.shifts-page cs-callout {
  margin-bottom: 0.75rem;
}

.shift-week {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 56rem;
}

.shift-week th,
.shift-week td {
  border: 1px solid var(--cs-color-surface-border);
  padding: 0.35rem;
  vertical-align: top;
  text-align: left;
}

.shift-week thead th {
  font-size: 0.85rem;
  background: var(--cs-color-neutral-95);
}

.shift-week thead th:first-child {
  width: 11rem;
}

.shift-week tbody th {
  font-weight: 400;
}

.shift-week .shift-today {
  background: var(--cs-color-brand-95);
}

.shift-person {
  display: block;
  font-weight: 600;
}

.shift-open-row th .shift-person {
  font-style: italic;
}

.shift-cell > * + * {
  margin-top: 0.3rem;
}

.shift-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--shift-color, var(--cs-color-neutral-70));
  border-left-width: 4px;
  border-radius: 4px;
  background: var(--shift-tint, var(--cs-color-neutral-95));
  color: var(--cs-color-text-default, inherit);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

button.shift-chip {
  /* Cornerstone gives buttons one line's height; a chip grows to fit its
     lines (an open one's offers make three). */
  height: auto;
  cursor: pointer;
}

button.shift-chip:hover,
a.shift-chip:hover {
  filter: brightness(0.96);
}

.shift-chip.shift-draft {
  border-style: dashed;
  border-left-style: solid;
  background: var(--cs-color-surface-default, #fff);
}

.shift-chip.shift-flagged {
  outline: 2px solid var(--cs-color-warning-fill-loud);
  outline-offset: 1px;
}

.shift-chip-time {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  white-space: nowrap;
}

.shift-chip-what {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.shift-chip-time cs-icon {
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
}

.shift-chip-draft {
  margin-left: 0.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cs-color-text-quiet);
}

.shift-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.1rem;
  border: 1px dashed transparent;
  border-radius: 4px;
  background: none;
  color: var(--cs-color-text-quiet);
  cursor: pointer;
  opacity: 0;
}

.shift-cell:hover .shift-add,
.shift-add:focus-visible {
  border-color: var(--cs-color-neutral-80);
  opacity: 1;
}

.shift-swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.3rem;
  border-radius: 3px;
  background: var(--shift-color);
  vertical-align: -0.05rem;
}

.shift-need {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 8px;
  background: var(--cs-color-surface-default, #fff);
}

.shift-need-open {
  border-left: 4px solid var(--cs-color-warning-fill-loud);
}

.shift-need-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.shift-need-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.shift-need p {
  margin: 0.4rem 0;
}

.shift-events {
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.shift-events li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.25rem 0;
}

.shift-events li > cs-icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--cs-color-text-quiet);
}

.shift-events li.shift-event-covered > cs-icon {
  color: var(--cs-color-success-40);
}

.shift-events li > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
}

.shift-event-note {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-basis: 100%;
}

.shift-need-made {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
}

.shift-empty {
  padding: 1.5rem 0;
  color: var(--cs-color-text-quiet);
}

.shift-dialog::part(panel) {
  width: min(36rem, 100vw);
}

.shift-times,
.shift-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.shift-picks {
  margin: 0;
  padding: 0;
  border: 0;
}

.shift-picks legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.shift-picks label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.shift-picks label > input {
  margin-top: 0.2rem;
}

.shift-picks label > span {
  display: flex;
  flex-direction: column;
}

.shift-changed {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
  font-weight: 600;
}

.shift-make-preview ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

.shift-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.shift-colors legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.shift-color {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--shift-color);
  border-left-width: 4px;
  border-radius: 4px;
  background: var(--shift-tint);
  font-size: 0.85rem;
  cursor: pointer;
}

.shift-team {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 0.75rem;
}

.shift-team cs-select {
  min-width: min(22rem, 100%);
}

.shift-team cs-button {
  margin-top: 1.6rem;
}

.shift-team-section {
  margin-bottom: 1.5rem;
}

.res-shifts {
  margin-top: 1.5rem;
}

.res-shifts h3 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.res-shift-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A phone: each person a card with only the days they work, the day
   written above each; empty days and the add buttons fold away (New
   shift adds one). */
@media (max-width: 700px) {
  .shift-week {
    min-width: 0;
    table-layout: auto;
  }

  .shift-week thead {
    display: none;
  }

  .shift-week tr,
  .shift-week th,
  .shift-week td {
    display: block;
    border: 0;
  }

  .shift-week tbody tr {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 1px solid var(--cs-color-surface-border);
    border-radius: 8px;
  }

  .shift-week td.shift-cell-empty,
  .shift-add {
    display: none;
  }

  .shift-week td::before {
    content: attr(data-day);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cs-color-text-quiet);
  }
}

/* The scheduling rules (AIASCRC-14): a shift that breaks the minor labor
   law is outlined in danger; age bands are tags by a name, the youngest
   the loudest; an average week reaching the flag is marked. */
.shift-chip.shift-broken {
  outline: 2px solid var(--cs-color-danger-40);
  outline-offset: 1px;
}

.shift-chip.shift-broken .shift-chip-time cs-icon {
  color: var(--cs-color-danger-40);
}

.shift-band {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: normal;
  vertical-align: 0.1rem;
}

.shift-band-younger {
  background: var(--cs-color-cerise-90);
  color: var(--cs-color-cerise-30, var(--cs-color-danger-40));
  border: 1px solid var(--cs-color-cerise-50);
}

.shift-band-older {
  background: var(--cs-color-yellow-90);
  color: var(--cs-color-text-default, inherit);
  border: 1px solid var(--cs-color-yellow-50);
}

.shift-over {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
  font-weight: 600;
}

.shift-person-notes {
  display: block;
}

.shift-findings {
  margin: 0;
  padding-left: 1.1rem;
}

.shift-rules {
  margin-bottom: 1.75rem;
}

.shift-rules h2 {
  font-size: 1.15rem;
}

/* A schedule's Emails tab: its notices, each opening its words. */
.shift-emails h2 {
  font-size: 1.15rem;
}

.shift-emails > p {
  max-width: 48rem;
}

.shift-law {
  padding-left: 1.2rem;
}

.shift-law li + li {
  margin-top: 0.35rem;
}

.shift-breaks {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.shift-breaks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.shift-break-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.shift-break-add cs-input {
  flex: 1 1 10rem;
}

.shift-rules cs-input[name='hours_flag'] {
  max-width: 22rem;
}

.shift-avg-detail {
  display: block;
}

/* Staff's own shifts (AIASCRC-15, My shifts), made for a phone; time off
   and the times someone can't work, gray on the week; time off waiting
   for a supervisor's answer. */
.shift-away {
  display: block;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--cs-color-neutral-90);
  color: var(--cs-color-text-quiet);
  font-size: 0.75rem;
}

.shift-away-waiting {
  background: repeating-linear-gradient(135deg, var(--cs-color-neutral-95), var(--cs-color-neutral-95) 4px, var(--cs-color-neutral-90) 4px, var(--cs-color-neutral-90) 8px);
}

.shift-waiting {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cs-color-surface-border);
  border-left: 4px solid var(--cs-color-warning-fill-loud);
  border-radius: 8px;
  background: var(--cs-color-surface-default, #fff);
}

.shift-waiting h2 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.shift-waiting ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shift-waiting li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.shift-waiting li .quiet {
  display: block;
}

.shift-waiting-actions {
  display: flex;
  gap: 0.4rem;
}

/* The rest of a long list, folded: its "Show N more" lines up with the
   names above it. */
.shift-waiting-more > summary {
  padding: 0.5rem 0 0.15rem;
}

.my-shifts {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.my-day h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
}

.my-shift {
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--shift-color, var(--cs-color-neutral-70));
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--cs-color-surface-default, #fff);
}

.my-shift p {
  margin: 0.15rem 0;
}

.my-shift-time {
  font-size: 1.1rem;
  font-weight: 700;
}

.my-shift-notes {
  white-space: pre-line;
}

.my-shift-booked {
  margin: 0.4rem 0 0;
  padding: 0.4rem 0 0;
  border-top: 1px solid var(--cs-color-surface-border);
  list-style: none;
}

.my-shift-booked li + li {
  margin-top: 0.2rem;
}

.my-off-no {
  color: var(--cs-color-danger-40);
}

/* A request's status, then why, set apart. */
.my-off-status::before,
.my-off-note::before {
  content: " · ";
}

/* A list on My shifts or the Rules tab starts at the edge. */
.shift-breaks > li {
  margin-left: 0;
}

/* The worker's side up top (David, Oct 30, 2026): what's new, the next
   shift in its position's color, and hours this week and next. */
.my-summary {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.my-next {
  padding: 0.85rem 1rem;
  background: var(--shift-tint, var(--cs-color-neutral-95));
  border-left: 6px solid var(--shift-color, var(--cs-color-neutral-70));
  border-radius: 10px;
}

.my-next p {
  margin: 0.1rem 0;
}

.my-next-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.my-next-when {
  font-family: var(--cs-font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.my-hours-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.my-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.my-shift .my-calendar {
  margin-top: 0.35rem;
}

.my-tag {
  margin-left: 0.4rem;
  vertical-align: 0.15rem;
}

.my-with {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.my-with cs-icon {
  flex: none;
  margin-top: 0.1rem;
  color: var(--cs-color-text-quiet);
}

/* Cornerstone draws a folded section as a panel; these fold lighter: a
   link-like line under a shift, and a button that opens a form. */
.my-booked,
.my-add,
.my-booked[open],
.my-add[open] {
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.my-booked > summary,
.my-booked[open] > summary {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0.2rem 0 0;
  padding: 0.2rem 0;
}

.my-add[open] > summary {
  margin-inline: 0;
}

/* Open shifts they could offer to work (David, Oct 30, 2026). */
.my-open {
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-open > li.my-open-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--shift-tint, var(--cs-color-neutral-95));
  border-left: 4px solid var(--shift-color, var(--cs-color-neutral-70));
  border-radius: 8px;
}

.my-open-what {
  display: flex;
  flex: 1 1 10rem;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.my-open-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.my-cant .my-day:first-of-type h3 {
  margin-top: 0.5rem;
}

/* Offers to work: each shift, then each person who offered, with their
   hours that week, what's worth knowing, and Give it to them. */
.shift-offer-list,
.shift-offer-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shift-waiting .shift-offer-list > li.shift-offer {
  display: block;
  padding: 0.5rem 0;
  border-top: 1px solid var(--cs-color-surface-border);
}

.shift-offer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.shift-waiting .shift-offer-people > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.4rem 0 0 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: var(--cs-color-neutral-95);
}

.shift-offer-who {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  gap: 0.15rem;
}

.shift-offer-note,
.shift-offer-cant {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.shift-offer-note cs-icon {
  color: var(--cs-color-warning-30, var(--cs-color-orange-30));
}

.shift-offer-cant {
  color: var(--cs-color-danger-30, var(--cs-color-text-default));
}

.my-missed ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.my-missed p {
  margin: 0;
}

/* The Open shifts tab's count, and My shifts' note that leads to it. */
.tab-count {
  display: inline-block;
  min-width: 1.4em;
  margin-left: 0.15rem;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--cs-color-brand-fill-loud);
  color: var(--cs-color-brand-on-loud);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.my-open-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cs-color-surface-border);
  border-left: 4px solid var(--cs-color-brand-fill-loud);
  border-radius: 8px;
  background: var(--cs-color-surface-default, #fff);
}

.my-open-note > span {
  flex: 1 1 14rem;
}

.shift-open-hint {
  display: block;
  margin-top: 0.25rem;
  color: var(--cs-color-brand-on-quiet);
  font-weight: 600;
}

.shift-dialog .my-next {
  margin-bottom: 0.75rem;
}

.shift-chip.shift-chip-cant {
  opacity: 0.7;
}

.shift-chip-offers {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.shift-chip-offers cs-icon {
  font-size: 0.85rem;
}

.shift-offered {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.5rem 0 0;
}

/* What's booked where they'll be, folded under the shift. */
.my-booked summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  cursor: pointer;
}

/* Asking for time off and adding a time they can't work fold behind a
   button each, so the page isn't two forms long on a phone. */
.my-add {
  margin-top: 0.75rem;
}

.my-add summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.85rem;
  margin: 0;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  border: 1px solid var(--cs-color-brand-40);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.my-add summary::-webkit-details-marker {
  display: none;
}

.my-add[open] summary {
  margin-bottom: 0.75rem;
}

.my-hours-now td {
  font-weight: 600;
}

/* Where timesheets would go: framed, not built, for supervisors and a
   Super Admin viewing as someone. */
.timesheet-frame {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--cs-color-neutral-95);
  border: 2px dashed var(--cs-color-neutral-70);
  border-radius: 10px;
}

.timesheet-frame p {
  margin: 0;
}

.timesheet-frame-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shift-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.shift-weekdays legend {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.shift-weekdays label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* A person's name and email (Settings > People), folded under their
   heading. */
.person-details {
  margin: 0 0 1.25rem;
}

.person-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--cs-color-brand-40);
}

.person-details form {
  margin-top: 0.75rem;
  max-width: 44rem;
}

.person-details-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  align-items: start;
}

/* Lists (David, Oct 29, 2026): every other row faintly shaded, so a line
   is easy to follow across, still apart from a row under the pointer; and
   headers that sort the list, with an arrow for the way it runs. */
.browse-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--cs-color-neutral-95) 55%, transparent);
}

/* A reservation's tables shade every other row too (David, Oct 29, 2026),
   so a long Lines tab is easy to follow across. A payment's refunds keep
   their own gray and aren't counted; the row under the pointer still
   lights up. */
.lines-table > tbody > tr:nth-child(even):not(:hover),
.summary-grid > tbody > tr:nth-child(even):not(:hover),
.summary-lines > tbody > tr:nth-child(even):not(:hover),
.pay-table > tbody > tr:nth-child(even of :not(.refund-row)):not(:hover) {
  background: color-mix(in srgb, var(--cs-color-neutral-95) 55%, transparent);
}

.browse-table tbody tr:hover {
  background: var(--cs-color-brand-95);
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.sort-link:hover,
.sort-link.sort-on {
  color: var(--cs-color-brand-40);
}

.sort-link cs-icon {
  font-size: 1rem;
}

.sort-idle {
  opacity: 0.35;
}

.sort-link:hover .sort-idle {
  opacity: 0.8;
}

/* A list's views (David, Oct 29, 2026, as Salesforce does them): a
   dropdown beside the filter, its label kept for screen readers only, and
   the pin joined to its edge as one control, filled when the view showing
   is the person's default. */
.list-view-group {
  display: inline-flex;
  align-items: flex-start;
}

.list-view-pick {
  min-width: 12rem;
}

/* The views and the Kanban (or List) button, kept together on the bar's
   left; the filter and the tab's New button on its right. */
.list-view-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
}

.list-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 640px) {
  .list-view-row {
    flex-wrap: nowrap;
  }

  .list-view-row .list-view-group,
  .list-view-row .list-view-pick {
    min-width: 0;
    flex: 1;
  }

  .list-tools {
    flex: 1 1 100%;
  }

  .list-tools .browse-filter {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Square, as the pin is, with the word kept for screen readers. */
  .show-as::part(button) {
    width: var(--cs-form-control-height);
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .show-as::part(label) {
    padding: 0;
    margin: 0;
  }

  /* Cornerstone keeps a gap after a start icon (0.75em, !important), so
     the icon moves over by half of it to sit in the middle. */
  .show-as cs-icon {
    translate: 0.375em 0;
  }

  .show-as-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.list-view-pick::part(form-control-label) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.list-view-pick::part(combobox) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.list-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--cs-form-control-height);
  height: var(--cs-form-control-height);
  padding: 0;
  border: var(--cs-form-control-border-width) solid var(--cs-form-control-border-color);
  border-inline-start: 0;
  /* Square where it meets the dropdown, so it reads as its end. */
  border-radius: 0 var(--cs-form-control-border-radius) var(--cs-form-control-border-radius) 0;
  background: var(--cs-form-control-background-color);
  color: var(--cs-color-text-quiet);
  cursor: pointer;
}

/* The icon's own size: the button's text size would grow the field height
   it borrows. */
.list-pin cs-icon {
  margin: 0;
  font-size: 1.15rem;
}

.list-pin:hover {
  background: var(--cs-color-brand-95);
  color: var(--cs-color-brand-40);
}

.list-pin-on {
  color: var(--cs-color-brand-40);
}

/* --- Monica (David, Oct 30, 2026; AIASCRC-26) ---
 * A helper who sleeps in the corner for SCRC Main Staff: 128px, 28px from
 * the right and 24px from the bottom; on a phone 88px, just above the
 * bottom menu, and her panel a sheet that slides up, with her sitting on
 * its top edge. Her mood (data-mood, set by monica.js) picks her face and
 * motion. Asleep she only breathes, a change to the whole drawing the
 * browser moves without redrawing, so the fuzzy edge isn't drawn again;
 * her gear moves only while she's awake. Her colors are aia.css's. She's
 * hidden in print and on screens with a bar along the bottom. */
.monica-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.monica {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 30;
  font-family: var(--cs-font-family-body);
}

.monica-button {
  position: relative;
  display: block;
  width: 128px;
  height: 128px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.monica-button:focus-visible {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.monica-figure {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 86%;
}

.monica .monica-figure {
  will-change: transform;
}

/* Her motion, by mood. */
.monica[data-mood="asleep"] .monica-figure {
  animation: m-breathe 3.2s ease-in-out infinite;
}

.monica[data-mood="asleep"] .monica-button:hover .monica-figure {
  animation-duration: 1.6s;
}

.monica[data-mood="awake"] .monica-figure {
  animation: m-pop 0.5s ease-out;
}

.monica[data-mood="happy"] .monica-figure {
  animation: m-hop 0.6s ease-out;
}

.monica[data-mood="drowsy"] .monica-figure {
  animation: m-sway 2.6s ease-in-out infinite;
}

.monica[data-mood="yawn"] .monica-figure {
  animation: m-yawn-body 1.4s ease-in-out;
}

@keyframes m-breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.035, 0.965); }
}

@keyframes m-pop {
  0% { transform: scale(1, 1); }
  35% { transform: translateY(-6%) scale(0.94, 1.08); }
  70% { transform: translateY(0) scale(1.04, 0.96); }
  100% { transform: scale(1, 1); }
}

@keyframes m-hop {
  0% { transform: none; }
  30% { transform: translateY(-9%) scale(0.95, 1.07); }
  60% { transform: translateY(0) scale(1.06, 0.94); }
  100% { transform: none; }
}

@keyframes m-sway {
  0%, 100% { transform: rotate(-3deg) scale(1, 0.98); }
  50% { transform: rotate(3deg) scale(1, 0.98); }
}

@keyframes m-yawn-body {
  0% { transform: scale(1, 1); }
  40% { transform: scale(0.96, 1.08); }
  70% { transform: scale(0.98, 1.05); }
  100% { transform: scale(1, 1); }
}

/* Her face: asleep (eyes closed) unless her mood says otherwise. */
.m-face > * {
  opacity: 0;
}

.m-face > .m-eyes-closed {
  opacity: 1;
}

.monica:not([data-mood="asleep"]):not([data-mood="yawn"]) .m-eyes-closed,
.monica[data-peek][data-mood="asleep"] .m-eyes-closed {
  opacity: 0;
}

.monica[data-peek][data-mood="asleep"] :is(.m-eyes-peek, .m-eye-peek),
.monica[data-mood="awake"] :is(.m-look, .m-mouth-smile),
.monica[data-mood="happy"] :is(.m-eyes-happy, .m-mouth-big),
.monica[data-mood="drowsy"] :is(.m-eyes-flat, .m-mouth-flat) {
  opacity: 1;
}

.m-look {
  transition: transform 0.12s ease-out;
}

.monica[data-mood="awake"] .m-blink {
  animation: m-blink 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.monica[data-mood="yawn"] .m-mouth-yawn {
  opacity: 1;
  animation: m-yawn-mouth 1.4s ease-in-out forwards;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes m-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes m-yawn-mouth {
  0% { transform: scale(0.2); }
  40%, 70% { transform: scale(1); }
  100% { transform: scale(0.1); }
}

/* Her gear moves while she's awake. */
.m-gear {
  transform-box: fill-box;
}

.monica:not([data-mood="asleep"]) .m-gear-band { animation: g-band 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.monica:not([data-mood="asleep"]) .m-gear-brim { animation: g-brim 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 100% 50%; }
.monica:not([data-mood="asleep"]) .m-gear-whistle { animation: g-swing 2.2s ease-in-out infinite; transform-origin: 50% 0%; }
.monica:not([data-mood="asleep"]) .m-gear-medal { animation: g-medal 2s ease-in-out infinite; transform-origin: 50% 0%; }
.monica:not([data-mood="asleep"]) .m-gear-phones { animation: g-beat 0.6s ease-in-out infinite; transform-origin: 50% 100%; }
.monica:not([data-mood="asleep"]) .m-gear-goggles { animation: g-bob 3s ease-in-out infinite; }
.monica:not([data-mood="asleep"]) .m-gear-seams { animation: g-seams 3.4s ease-in-out infinite; transform-origin: center; }
.monica:not([data-mood="asleep"]) .m-gear-visor { animation: g-visor 2.8s ease-in-out infinite; transform-origin: 50% 0%; }

@keyframes g-band { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes g-brim { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(9deg); } }
@keyframes g-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes g-medal { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes g-beat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes g-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes g-seams { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes g-visor { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* The z's float over her while she sleeps, apart from her drawing. */
.monica-zz {
  position: absolute;
  inset: 0;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  pointer-events: none;
}

.monica-zz span {
  position: absolute;
  opacity: 0.7;
  animation: m-z 2.6s ease-in-out infinite;
}

.monica-zz span:first-child {
  top: 14%;
  right: 16%;
  font-size: 1rem;
}

.monica-zz span:last-child {
  top: 4%;
  right: 6%;
  font-size: 0.75rem;
  animation-delay: -1.3s;
}

.monica:not([data-mood="asleep"]):not([data-mood="drowsy"]) .monica-zz {
  display: none;
}

.monica[data-mood="drowsy"] .monica-zz {
  opacity: 0.5;
}

@keyframes m-z {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -6px); }
}

/* Her panel, above her. */
.monica-panel {
  position: absolute;
  right: 4px;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-sizing: border-box;
  width: 360px;
  max-height: min(70vh, 560px);
  padding: 1.25rem;
  overflow: auto;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: m-panel 0.25s ease-out;
  transform-origin: 85% 100%;
}

.monica-panel[hidden],
.monica-backdrop[hidden] {
  display: none;
}

/* Her notes when new leads come into the Sales inbox (David, Nov 11, 2026)
   or messages come in (Nov 23): she wakes with them above her, stacked,
   or under her icon by the gear; her panel takes their place when it
   opens. */
.monica-notes {
  position: absolute;
  right: 4px;
  bottom: calc(100% + 12px);
  display: grid;
  gap: 0.5rem;
  width: min(300px, calc(100vw - 32px));
}

.monica-note {
  display: grid;
  gap: 0.4rem;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: m-panel 0.25s ease-out;
  transform-origin: 85% 100%;
}

.monica-open .monica-notes {
  display: none;
}

.monica-top .monica-notes {
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
}

.monica-top .monica-note {
  transform-origin: 85% 0;
}

.monica-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.monica-note-head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--cs-color-brand-40);
}

.monica-note ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.monica-note li {
  display: grid;
}

/* A message's note starts with who wrote it: their photo or initials. */
.monica-note-msg:has(.monica-note-face) {
  grid-template-columns: 2rem 1fr;
  column-gap: 0.5rem;
  align-items: start;
}

.monica-note-face {
  grid-row: span 2;
  padding-top: 0.1rem;
}

.monica-note-face cs-avatar {
  --size: 2rem;
}

.monica-note li a {
  font-weight: 600;
}

.monica-note li a .quiet {
  font-weight: 400;
}

/* A message's start, under who wrote it: two lines at most. */
.monica-note-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--cs-color-text-quiet);
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@keyframes m-panel {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.monica-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.monica-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--cs-color-brand-40);
}

.monica-x {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.monica-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.monica-options {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.monica-options > li,
.monica-list > li {
  margin: 0;
}

.monica-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  font: inherit;
  font-weight: 500;
  color: var(--cs-color-text-normal);
  text-align: left;
  text-decoration: none;
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.monica-option:hover {
  background: var(--cs-color-surface-default);
  border-color: var(--cs-color-brand-40);
}

.monica-option cs-icon {
  color: var(--cs-color-brand-40);
}

.monica-option > span:first-of-type {
  flex: 1;
}

.monica-count {
  min-width: 1.75rem;
  padding: 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--cs-color-brand-on);
  text-align: center;
  background: var(--cs-color-brand-40);
  border-radius: 999px;
}

.monica-count-none {
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-90);
}

.monica-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.monica-shortcut,
.monica-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  text-decoration: none;
  background: none;
  border: 1px solid var(--cs-color-brand-40);
  border-radius: 8px;
  cursor: pointer;
}

.monica-more {
  align-self: flex-start;
}

.monica-search label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

.monica-search-row {
  display: flex;
  gap: 0.5rem;
}

.monica-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  padding: 0 0.75rem;
  font: inherit;
  border: 1px solid var(--cs-color-neutral-60);
  border-radius: 8px;
}

.monica-send {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: var(--cs-color-brand-on);
  background: var(--cs-color-brand-40);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.monica-send:focus-visible,
.monica-x:focus-visible,
.monica-option:focus-visible,
.monica-shortcut:focus-visible,
.monica-back:focus-visible {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.monica-list-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.monica-list-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.monica-list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.monica-list a {
  display: block;
  padding: 0.5rem 0.6rem;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

.monica-list a:hover {
  background: var(--cs-color-neutral-95);
}

.monica-list strong {
  display: block;
  font-weight: 600;
  color: var(--cs-color-brand-40);
}

.monica-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

.monica-late {
  font-weight: 600;
  color: var(--cs-color-danger-40);
}

.monica-group {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.monica-building {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.monica-empty {
  margin: 0;
  color: var(--cs-color-text-quiet);
}

/* What she says about a list, above it (Price books to make). */
.monica-says {
  margin: 0;
}

.monica-backdrop {
  display: none;
}

/* Each person's Monica page: her shapes to pick from. */
.monica-shapes {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.monica-shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.monica-shapes legend {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.monica-shape {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  cursor: pointer;
}

.monica-shape input {
  position: absolute;
  opacity: 0;
}

.monica-shape:has(input:checked) {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-40);
  box-shadow: inset 0 0 0 1px var(--cs-color-brand-40);
}

.monica-shape:has(input:focus-visible) {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

/* The shape Settings > Monica gives everyone, on a person's own picker. */
.monica-shape-everyone {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  padding: 0.05rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
  border: 1px solid var(--cs-color-brand-40);
  border-radius: 999px;
}

.monica-shape .monica-figure {
  width: 96px;
  height: 96px;
}

.monica-shape-name {
  font-weight: 600;
}

/* Monica herself (David, Nov 5, 2026; views/monica_girl.templ): her face
 * moves by the same moods as her shapes; asleep she has a small smile. In a
 * picker (.monica-shape), or a team's page (.monica-still), she's awake but still: her look's things showing,
 * nothing moving. Each look has the expression from its picture while
 * she's awake, and its things move only then; asleep they're put away. */
.monica[data-mood="asleep"] .m-mouth-sleep {
  opacity: 1;
}

:is(.monica-shape, .monica-still) [data-girl] .m-eyes-closed {
  opacity: 0;
}

:is(.monica-shape, .monica-still) [data-girl] :is(.m-look, .m-mouth-smile) {
  opacity: 1;
}

:is(.monica-shape, .monica-still) [data-girl] *,
:is(.monica-shape, .monica-still) [data-girl] {
  animation-play-state: paused !important;
}

.monica-figure .g-nose,
.monica-figure .g-lashes,
.monica-figure .g-brow-sly {
  display: none;
}

:is([data-shape="monica-juggle"], [data-shape="monica-clean"], [data-shape="monica-ladybug"], [data-shape="monica-kitchen"]) .g-nose,
:is([data-shape="monica-clean"], [data-shape="monica-party"]) .g-lashes,
[data-shape="monica-cards"] .g-brow-sly {
  display: inline;
}

:is([data-shape="monica-cards"], [data-shape="monica-shades"]) .g-brow {
  display: none;
}

:is(.monica[data-mood="awake"], .monica-shape, .monica-still) :is([data-shape="monica"], [data-shape="monica-shades"]) .m-mouth-smile,
:is(.monica[data-mood="awake"], .monica-shape, .monica-still) :is([data-shape="monica-cards"], [data-shape="monica-ladybug"]) .m-mouth-smile,
:is(.monica[data-mood="awake"], .monica-shape, .monica-still) :is([data-shape="monica-money"], [data-shape="monica-party"]) :is(.m-look, .m-mouth-smile) {
  opacity: 0;
}

:is(.monica[data-mood="awake"], .monica-shape, .monica-still) :is([data-shape="monica"], [data-shape="monica-shades"]) .m-mouth-grin,
:is(.monica[data-mood="awake"], .monica-shape, .monica-still) [data-shape="monica-cards"] .m-mouth-smirk,
:is(.monica[data-mood="awake"], .monica-shape, .monica-still) [data-shape="monica-ladybug"] .m-mouth-o,
:is(.monica[data-mood="awake"], .monica-shape, .monica-still) :is([data-shape="monica-money"], [data-shape="monica-party"]) :is(.m-eyes-happy, .m-mouth-laugh) {
  opacity: 1;
}

.monica[data-mood="happy"] [data-girl] .m-mouth-big {
  opacity: 0;
}

.monica[data-mood="happy"] [data-girl] .m-mouth-laugh {
  opacity: 1;
}

/* Her arms, raised for juggling, money, and a party. */
.monica-figure .g-arm {
  transform-box: view-box;
  transition: transform 0.35s ease-out;
}

.monica-figure .g-arm-l {
  transform-origin: 42px 118px;
}

.monica-figure .g-arm-r {
  transform-origin: 158px 118px;
}

:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) :is([data-shape="monica-juggle"], [data-shape="monica-money"], [data-shape="monica-party"]) .g-arm-l {
  transform: translate(-21px, -4px) rotate(125deg);
}

:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) :is([data-shape="monica-juggle"], [data-shape="monica-money"]) .g-arm-r {
  transform: translate(21px, -4px) rotate(-125deg);
}

:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) [data-shape="monica-party"] .g-arm-r {
  transform: translate(14px, -12px) rotate(-70deg);
}

/* What flies: balls tossed hand to hand, money and confetti falling. Each
 * starts by a longhand, so its own delay (below) spreads them out. */
.monica-figure :is(.ml-ball, .ml-bill, .ml-confetti) {
  opacity: 0;
  offset-rotate: 0deg;
}

.monica-figure .ml-ball { offset-path: path("M12 86 C10 -40 190 -40 188 86"); }
.monica-figure .ml-bill-1 { offset-path: path("M30 -10 C20 40 44 90 26 170"); }
.monica-figure .ml-bill-2 { offset-path: path("M70 -16 C84 30 60 80 72 140"); }
.monica-figure .ml-bill-3 { offset-path: path("M120 -14 C108 30 134 70 118 150"); }
.monica-figure .ml-bill-4 { offset-path: path("M166 -8 C178 40 150 90 172 170"); }
.monica-figure .ml-bill-5 { offset-path: path("M96 -20 C80 10 112 40 100 80"); }
.monica-figure .ml-bill-6 { offset-path: path("M8 10 C24 60 0 110 14 176"); }
.monica-figure .ml-bill-7 { offset-path: path("M144 -20 C130 30 160 80 146 150"); }
.monica-figure .ml-bill-8 { offset-path: path("M188 20 C170 70 196 120 186 176"); }
.monica-figure .ml-confetti { offset-rotate: auto; }
.monica-figure .ml-confetti-1 { offset-path: path("M20 -10 C40 40 10 90 30 150"); }
.monica-figure .ml-confetti-2 { offset-path: path("M60 -14 C40 30 70 80 50 130"); }
.monica-figure .ml-confetti-3 { offset-path: path("M150 -10 C170 30 140 70 160 140"); }
.monica-figure .ml-confetti-4 { offset-path: path("M180 0 C160 40 190 80 176 150"); }
.monica-figure .ml-confetti-5 { offset-path: path("M110 -16 C90 10 120 30 104 60"); }
.monica-figure .ml-confetti-6 { offset-path: path("M40 -4 C60 20 30 60 14 110"); }

:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-ball { animation-name: ml-fly; animation-duration: 2.4s; animation-timing-function: linear; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-bill { animation-name: ml-fly; animation-duration: 2.8s; animation-timing-function: linear; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-confetti { animation-name: ml-fly; animation-duration: 2.4s; animation-timing-function: linear; animation-iteration-count: infinite; }
.monica-figure .ml-ball-1 { animation-delay: -0.3s; }
.monica-figure .ml-ball-2 { animation-delay: -0.9s; }
.monica-figure .ml-ball-3 { animation-delay: -1.5s; }
.monica-figure .ml-ball-4 { animation-delay: -2.1s; }
.monica-figure .ml-bill-1 { animation-delay: -0.2s; }
.monica-figure .ml-bill-2 { animation-delay: -0.7s; }
.monica-figure .ml-bill-3 { animation-delay: -1.4s; }
.monica-figure .ml-bill-4 { animation-delay: -2.1s; }
.monica-figure .ml-bill-5 { animation-delay: -1s; }
.monica-figure .ml-bill-6 { animation-delay: -0.35s; }
.monica-figure .ml-bill-7 { animation-delay: -1.75s; }
.monica-figure .ml-bill-8 { animation-delay: -2.45s; }
.monica-figure .ml-confetti-1 { animation-delay: -0.3s; }
.monica-figure .ml-confetti-2 { animation-delay: -0.7s; }
.monica-figure .ml-confetti-3 { animation-delay: -1.1s; }
.monica-figure .ml-confetti-4 { animation-delay: -1.5s; }
.monica-figure .ml-confetti-5 { animation-delay: -1.9s; }
.monica-figure .ml-confetti-6 { animation-delay: -2.2s; }

@keyframes ml-fly {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* What moves in place: the duster, the cards, the blower, the bug, the
 * spoon; and what twinkles, bobs, or rises. */
.monica-figure :is(.ml-duster, .ml-spoon, .ml-fan, .ml-bug) {
  transform-box: view-box;
}

.monica-figure .ml-duster { transform-origin: 80px 120px; }
.monica-figure .ml-spoon { transform-origin: 166px 120px; }
.monica-figure .ml-fan { transform-origin: 0 0; }
.monica-figure .ml-curl { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0.3); }
.monica-figure :is(.ml-sparkle, .ml-glimmer, .ml-steam) { opacity: 0; }
.monica-figure :is(.ml-sparkle, .ml-glimmer) path,
.monica-figure .ml-bubbles circle { transform-box: fill-box; transform-origin: center; }

:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-duster { animation-name: ml-dust; animation-duration: 0.9s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-spoon { animation-name: ml-stir; animation-duration: 1.4s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-fan { animation-name: ml-fan; animation-duration: 2.6s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-bug { animation-name: ml-crawl; animation-duration: 3.2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-curl { animation-name: ml-blow; animation-duration: 1.6s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) :is(.ml-sparkle, .ml-glimmer) { opacity: 1; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) :is(.ml-sparkle, .ml-glimmer) path { animation-name: ml-twinkle; animation-duration: 1.6s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-bubbles circle { animation-name: ml-bubble; animation-duration: 2.2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
:is(.monica:not([data-mood="asleep"]), .monica-shape, .monica-still) .ml-steam { animation-name: ml-steam; animation-duration: 2.2s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.monica-figure :is(.ml-sparkle-2, .ml-glimmer-2) path { animation-delay: -0.6s; }
.monica-figure .ml-sparkle-3 path { animation-delay: -1.1s; }
.monica-figure .ml-bubbles circle:nth-child(2n) { animation-delay: -1.1s; }
.monica-figure .ml-steam-2 { animation-delay: -1.1s; }

@keyframes ml-dust { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes ml-stir { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes ml-fan { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ml-crawl { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, 2px); } }
@keyframes ml-blow { 0%, 60%, 100% { transform: scaleX(0.3); } 75%, 90% { transform: scaleX(1); } }
@keyframes ml-twinkle { 0%, 100% { transform: scale(0.3); opacity: 0.3; } 50% { transform: scale(1); opacity: 1; } }
@keyframes ml-bubble { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15) translateY(-1px); } }
@keyframes ml-steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-8px); } }

/* For people who ask for less motion she still shows her things, still. */
@media (prefers-reduced-motion: reduce) {
  .monica-figure[data-girl] *,
  .monica-figure[data-girl] {
    animation-play-state: paused !important;
  }
}

/* A team's look on its page, and None in its picker. */
.team-monica-now {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* A team's logo (David, Nov 5, 2026), and its picker: cards as Monica's
 * looks are, each with the logo as the top bar shows it. */
.team-logo-now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.team-logo-now img {
  height: 3.5rem;
  width: auto;
}

.team-logo-now p {
  flex: 1 1 18rem;
  margin: 0;
}

.logo-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.logo-choices legend {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.logo-choice {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  cursor: pointer;
}

.logo-choice input {
  position: absolute;
  opacity: 0;
}

.logo-choice img {
  height: 2.75rem;
  width: auto;
  max-width: 100%;
}

.logo-choice-none cs-icon {
  font-size: 2rem;
  color: var(--cs-color-text-quiet);
}

.logo-choice:has(input:checked) {
  background: var(--cs-color-brand-95);
  border-color: var(--cs-color-brand-40);
  box-shadow: inset 0 0 0 1px var(--cs-color-brand-40);
}

.logo-choice:has(input:focus-visible) {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.logo-choice-name {
  font-weight: 600;
}

.team-monica-now .monica-figure {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
}

.monica-shape-none {
  align-content: center;
}

.monica-shape-none cs-icon {
  font-size: 2.5rem;
  color: var(--cs-color-text-quiet);
}

/* Her panel's foot: move her up by the gear, or back to the corner. It
 * stays at the bottom of the panel as her list scrolls, so it's never
 * hidden below what she shows (the panel's own padding is 1.25rem). */
.monica-panel-foot {
  position: sticky;
  bottom: -1.25rem;
  display: flex;
  justify-content: flex-end;
  margin: 0 -1.25rem -1.25rem;
  padding: 0.5rem 1.25rem 0.75rem;
  background: var(--cs-color-surface-default);
  border-top: 1px solid var(--cs-color-neutral-90);
}

.monica-move {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.monica-move:hover,
.monica-move:focus-visible {
  background: var(--cs-color-brand-95);
}

.monica-move cs-icon {
  font-size: 1.2rem;
}

/* Up by the gear (David, Nov 4, 2026: on some screens she was in the way):
 * a small icon of her in the top bar, her list dropping down under her
 * like the menus beside her. Something due or slipping is a dot, since
 * one eye open is hard to see so small. On a phone her list is still the
 * sheet above the bottom menu. */
.monica-top:empty {
  display: none;
}

.monica-top .monica {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 40;
}

.monica-top .monica-button,
.monica-top .monica.monica-open .monica-button {
  position: relative;
  right: auto;
  bottom: auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.2rem;
}

.monica-top .monica-button:hover,
.monica-top .monica.monica-open .monica-button {
  background: var(--cs-color-brand-95);
}

.monica-top .monica-zz {
  display: none;
}

.monica-top .monica[data-peek] .monica-button::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--cs-color-warning-fill-loud);
  border: 2px solid var(--cs-color-surface-default);
  border-radius: 50%;
}

@media (min-width: 641px) {
  .monica-top .monica-panel {
    top: calc(100% + 10px);
    right: 0;
    bottom: auto;
    transform-origin: 85% 0;
  }
}

/* Where she isn't. Up by the gear she's out of the way, so she stays. */
body:has(.lines-actions, .bulk-summary, .messages-page) #monica-home .monica {
  display: none;
}

@media print {
  .monica {
    display: none;
  }
}

@media (max-width: 640px) {
  .monica {
    right: 18px;
    bottom: calc(var(--bottom-nav-height) + 8px);
  }

  .monica-button {
    width: 88px;
    height: 88px;
  }

  /* Her panel is a sheet above the bottom menu, the rest of the page
     dimmed (a tap there closes it); she sits on its top edge. */
  .monica-panel {
    position: fixed;
    right: 0;
    bottom: var(--bottom-nav-height);
    left: 0;
    width: auto;
    height: min(470px, 72dvh);
    max-height: none;
    padding-top: 1.5rem;
    border-radius: 16px 16px 0 0;
    animation: m-sheet 0.25s ease-out;
  }

  .monica-backdrop {
    position: fixed;
    inset: 0 0 var(--bottom-nav-height);
    display: block;
    background: var(--cs-color-overlay-modal, rgb(0 0 0 / 0.4));
  }

  .monica.monica-open .monica-button {
    position: fixed;
    right: 18px;
    bottom: calc(var(--bottom-nav-height) + min(470px, 72dvh) - 10px);
  }
}

@keyframes m-sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .monica[data-mood] .monica-figure,
  .monica[data-mood] .m-gear,
  .monica[data-mood] .m-blink,
  .monica[data-mood] .m-mouth-yawn,
  .monica-zz span,
  .monica-panel {
    animation: none;
  }
}

/* How a group would like to pay (David, Nov 2, 2026): the page a link
 * opens, in the public pages' look; each way to pay is a card to pick (a
 * native radio, so it works without script), the picked one in the brand
 * color; then the Payments tab's box and the Money tab's tag. */
.pay-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.15;
}

.pay-due,
.pay-said {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.5rem;
  background: var(--cs-color-surface-default);
}

.pay-due div,
.pay-said div {
  display: grid;
  align-content: start;
  gap: 0.15rem;
}

.pay-due dt,
.pay-said dt {
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

.pay-due dd,
.pay-said dd {
  margin: 0;
}

.pay-due-now dd strong {
  font-size: 1.25rem;
}

.pay-due-now dd span {
  display: block;
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

/* The thank-you page after paying a card link (AIASCRC-115): the group
 * page's spacing inside the part that checks again, its buttons at their
 * own width, and Paid in full in the success color. */
.thanks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.thanks > cs-button {
  justify-self: start;
}

.thanks-paid-up dd strong {
  color: var(--cs-color-success-on-quiet);
}

.pay-form {
  display: grid;
  gap: 1rem;
}

.pay-form > cs-button {
  justify-self: start;
}

.pay-methods,
.pay-someone {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pay-method {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.5rem;
  background: var(--cs-color-surface-default);
  cursor: pointer;
}

.pay-method:hover {
  border-color: var(--cs-color-brand-40);
}

.pay-method:has(input:checked) {
  border-color: var(--cs-color-brand-40);
  box-shadow: inset 0 0 0 1px var(--cs-color-brand-40);
  background: color-mix(in srgb, var(--cs-color-brand-40) 5%, var(--cs-color-surface-default));
}

.pay-method:has(input:focus-visible) {
  outline: 2px solid var(--cs-color-brand-40);
  outline-offset: 2px;
}

.pay-method input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--cs-color-brand-40);
  cursor: pointer;
}

.pay-method-body {
  display: grid;
  gap: 0.25rem;
}

.pay-method-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.pay-method-head cs-icon {
  color: var(--cs-color-brand-40);
}

.pay-method-words {
  font-size: 0.92rem;
  color: var(--cs-color-text-quiet);
}

.pay-tag {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cs-color-text-normal);
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 999px;
}

.pay-tag-good {
  color: var(--aia-green);
  background: color-mix(in srgb, var(--aia-green) 10%, var(--cs-color-surface-default));
  border-color: color-mix(in srgb, var(--aia-green) 35%, var(--cs-color-surface-default));
}

.pay-someone legend {
  padding: 0;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.pay-someone-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
}

.pay-safe {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cs-color-text-quiet);
}

.pay-check-how {
  padding: 0.75rem 1rem;
  background: var(--cs-color-surface-default);
  border-left: 3px solid var(--cs-color-brand-40);
}

/* The Payments tab's box: each answer, what to do next, and Mark it sent. */
.pay-choices {
  margin: 0.75rem 0 0;
}

.pay-choices:empty {
  display: none;
}

.pay-choices h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.pay-choices-none {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pay-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-left: 3px solid var(--cs-color-brand-40);
  border-radius: 0.4rem;
}

.pay-choice + .pay-choice {
  margin-top: 0.5rem;
}

.pay-choice-done {
  border-left-color: var(--cs-color-surface-border);
}

.pay-choice-what {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

/* The parts page shows the pay page in a frame, spaced as its page is. */
.pay-parts {
  display: grid;
  gap: 1rem;
}

.pay-choice-note {
  margin: 0.25rem 0 0;
  padding-left: 0.6rem;
  color: var(--cs-color-text-quiet);
  border-left: 2px solid var(--cs-color-surface-border);
}

.pay-choice-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pay-tag-said {
  margin-left: 0.35rem;
  vertical-align: 0.05rem;
}

/* Paying on time (David, Nov 3, 2026): the four numbers, the month chart
 * (in by arrival at the bottom, after it above, the chart colors), and
 * each group a row: who, its stays as dots on a line through arrival
 * (blue in by arrival, orange after, hollow still owing, sized by the
 * bill), when it typically paid, and the money; opening to each stay. On
 * a phone the row stacks, each part with its label. */
.ontime-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1.25rem;
}

.ontime-choices .browse-views {
  margin: 0;
}

.ontime-kind {
  min-width: 13rem;
}

.ontime-choice {
  display: grid;
  gap: 0.3rem;
}

.ontime-choice-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cs-color-text-normal);
}

.ontime-download {
  margin-left: auto;
}

.ontime-kpi-in {
  --kpi-color: var(--chart-1);
}

.ontime-kpi-when {
  --kpi-color: var(--cs-color-brand-40);
}

.ontime-kpi-after {
  --kpi-color: var(--chart-2);
}

.ontime-kpi-owed {
  --kpi-color: var(--cs-color-orange-60);
}

.ontime-kpi-in .money-rate span {
  background: var(--chart-1);
}

.ontime-kpi-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.ontime-in,
.money-key.ontime-in {
  background: var(--chart-1);
}

.ontime-after,
.money-key.ontime-after {
  background: var(--chart-2);
}

.money-key.ontime-key-owes {
  background: transparent;
  border: 2px solid var(--chart-2);
  border-radius: 50%;
}

.ontime-months {
  height: 11rem;
}

.ontime-key {
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.5rem;
}

.ontime-lists {
  display: grid;
  gap: 1rem;
}

.ontime-head,
.ontime-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.ontime-head {
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-neutral-40);
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.ontime-head .num,
.ontime-money {
  text-align: right;
}

/* The strip's labels, placed where they fall on it. */
.ontime-axis {
  position: relative;
  height: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.ontime-axis span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ontime-axis span:first-child {
  transform: none;
}

.ontime-axis span:last-child {
  transform: translateX(-100%);
}

.ontime-axis-arrival {
  font-weight: 700;
  color: var(--cs-color-text-normal);
}

/* Cornerstone draws a details as a card with its own arrow; these are
 * rows, each with a down arrow by its name that turns when it's open. */
.ontime-group {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--cs-color-neutral-90);
  border-radius: 0;
}

.ontime-group > summary {
  padding: 0.65rem 0.75rem;
  list-style: none;
  cursor: pointer;
}

.ontime-group > summary::-webkit-details-marker {
  display: none;
}

.ontime-group > summary::before,
.ontime-group > summary::after {
  display: none;
  content: none;
}

.ontime-group > summary:hover,
.ontime-group[open] > summary {
  background: var(--cs-color-neutral-95);
}

.ontime-open {
  font-size: 1.1rem;
  vertical-align: -0.25rem;
  color: var(--cs-color-text-quiet);
  transition: transform 0.15s ease;
}

.ontime-group[open] .ontime-open {
  transform: rotate(180deg);
}

.ontime-name,
.ontime-when,
.ontime-money,
.ontime-stay {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.ontime-name .late-tag {
  margin-left: 0.35rem;
}

.ontime-money strong {
  font-size: 1.05rem;
}

.ontime-owed {
  font-weight: 600;
  color: var(--cs-color-orange-30);
}

/* The strip: two months either side of arrival, the time before it
 * tinted, arrival a line, each stay a dot. */
.ontime-strip {
  position: relative;
  height: 2rem;
}

.ontime-zone {
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 0;
  right: 0;
  background: linear-gradient(to right, color-mix(in srgb, var(--chart-1) 9%, transparent) 50%,
    color-mix(in srgb, var(--chart-2) 9%, transparent) 50%);
  border-radius: 999px;
}

.ontime-arrival {
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--cs-color-text-normal);
  border-radius: 1px;
}

.ontime-dot {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--cs-color-surface-default);
  transform: translate(-50%, -50%);
}

.ontime-dot-in {
  background: var(--chart-1);
}

.ontime-dot-after {
  background: var(--chart-2);
}

.ontime-dot-owes {
  background: var(--cs-color-surface-default);
  border: 2px solid var(--chart-2);
  box-sizing: border-box;
}

/* Beyond two months: at the edge, with a second ring. */
.ontime-dot-beyond {
  box-shadow: 0 0 0 2px var(--cs-color-surface-default), 0 0 0 3px currentColor;
  color: var(--cs-color-text-quiet);
}

.ontime-label {
  display: none;
  font-size: 0.72rem;
  color: var(--cs-color-text-quiet);
}

/* Past the first ten, a group's list folds under "Show 13 more". */
.ontime-more {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.ontime-more > summary {
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--cs-color-text-link);
  list-style: none;
  cursor: pointer;
}

.ontime-more > summary::-webkit-details-marker {
  display: none;
}

.ontime-more > summary::before,
.ontime-more > summary::after {
  display: none;
  content: none;
}

.ontime-more[open] > summary {
  display: none;
}

.ontime-stays {
  display: grid;
  margin: 0;
  padding: 0.15rem 0.75rem 0.4rem 1.6rem;
  list-style: none;
}

.ontime-stays li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  border-top: 1px dashed var(--cs-color-neutral-90);
}

.ontime-stays li > span {
  display: grid;
  align-content: start;
  min-width: 0;
}

.ontime-stays .ontime-label {
  display: block;
}

.ontime-remind {
  justify-self: start;
  margin-top: 0.25rem;
}

.ontime-account {
  display: inline-block;
  margin: 0 0.75rem 0.7rem 1.6rem;
}

.ontime-based {
  margin: 0;
}

.late-tag {
  color: var(--cs-color-warning-30);
  background: var(--cs-color-warning-fill-quiet);
  border-color: var(--cs-color-warning-border-loud);
}

@media (prefers-reduced-motion: reduce) {
  .ontime-open {
    transition: none;
  }
}

@media (max-width: 760px) {
  .ontime-head {
    display: none;
  }

  .ontime-group > summary {
    grid-template-columns: 1fr 1fr;
  }

  .ontime-name,
  .ontime-strip {
    grid-column: 1 / -1;
  }

  .ontime-money {
    text-align: left;
  }

  .ontime-label {
    display: block;
  }

  .ontime-stays {
    padding-left: 0.75rem;
  }

  .ontime-stays li {
    grid-template-columns: 1fr 1fr;
  }

  .ontime-stay {
    grid-column: 1 / -1;
  }
}

/* The forecast (David, Nov 3, 2026): each month two bars side by side,
 * due by the dates (gray, the reference) and expected by the groups'
 * habits (the first chart color), each its amount over it. */
.money-key.forecast-due,
.forecast-due {
  background: var(--chart-none);
}

.money-key.forecast-expected,
.forecast-expected {
  background: var(--chart-1);
}

.forecast-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: end;
}

.forecast-later {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.6rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-neutral-95);
  border-radius: 0.4rem;
}

.forecast-later dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.forecast-later dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .forecast-split {
    grid-template-columns: 1fr;
  }

  .forecast-later {
    margin: 0;
  }
}

.forecast-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  height: 12rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.forecast-months li {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}

.forecast-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding-top: 1.3rem;
}

.forecast-bar {
  position: relative;
  flex: 0 1 2.75rem;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}

.forecast-amount {
  position: absolute;
  bottom: 100%;
  left: 50%;
  padding-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .forecast-months {
    gap: 0.35rem;
    height: 10rem;
  }

  .forecast-amount {
    display: none;
  }
}

/* Ended between on the Journal tab (David, Nov 3, 2026): the two dates
 * with arrows a month either way, then the quick picks. */
.jrv-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.jrv-range .cal-arrow {
  margin-bottom: 0.35rem;
}

.jrv-quick {
  margin: 0;
  align-self: flex-end;
}

.jrv-mode-note {
  flex-basis: 100%;
  margin: 0;
}

/* Picking a date (David, Nov 3, 2026; views/datepick.templ, js/datepick.js).
 * The field is laid out as a search pick is (its label and box at the
 * top). With a mouse, the box in front shows the date in words with a
 * calendar button; a phone shows its own date input. The calendar is
 * Salesforce's shape: the month between arrows and a year to pick, the
 * days Sunday first, the picked day filled in the brand color, today
 * ringed, days that can't be picked faded, and Today at the foot. */
.date-pick {
  display: grid;
  align-content: start;
  gap: 0.5em;
  min-width: 0;
}

.date-pick-bare {
  display: inline-grid;
  vertical-align: middle;
}

.date-pick-box {
  position: relative;
}

.date-pick-box input {
  width: 100%;
}

.date-pick-on .date-pick-native {
  display: none;
}

.date-pick-text {
  padding-right: 2.4rem;
}

/* Sized by its own text (em), so "Nov 20, 2026" fits in a toolbar whose
   type is bigger (the floor view's day), not cut off at the year. */
.date-pick-bare .date-pick-text {
  width: 10.5em;
}

.date-pick-open {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  display: flex;
  padding: 0.25rem;
  color: var(--cs-color-text-quiet);
  background: none;
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.date-pick-open:hover {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-neutral-95);
}

.date-pick-wrong .date-pick-text {
  outline: 2px solid var(--cs-color-danger-40);
  outline-offset: 1px;
}

.date-pick-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cs-color-text-quiet);
}

.date-pop {
  position: fixed;
  inset: auto;
  z-index: 1000;
  width: 19.5rem;
  margin: 0;
  padding: 0.75rem 0.75rem 0.5rem;
  color: var(--cs-color-text-normal);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.6rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
}

.date-pop[hidden] {
  display: none;
}

.date-pop-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.date-pop-month {
  font-weight: 600;
  text-align: center;
}

.date-pop-step {
  display: flex;
  padding: 0.15rem;
  font-size: 1.5rem;
  color: var(--cs-color-text-quiet);
  background: none;
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
}

.date-pop-step:hover:not(:disabled) {
  color: var(--cs-color-brand-40);
  background: var(--cs-color-neutral-95);
}

.date-pop-step:disabled {
  opacity: 0.35;
  cursor: default;
}

.date-pop-year {
  padding: 0.25rem 0.4rem;
  font: inherit;
  color: inherit;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: 0.4rem;
}

.date-pop-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.date-pop-grid th {
  padding: 0.2rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cs-color-text-quiet);
}

.date-pop-grid td {
  padding: 1px 0;
  text-align: center;
}

/* The app's tables draw lines between rows; a calendar has none. */
.date-pop-grid th,
.date-pop-grid td,
.date-pop-grid tr {
  background: none;
  border: 0;
}

.date-pop-day {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.date-pop-day:hover:not(:disabled) {
  background: var(--cs-color-neutral-95);
}

.date-pop-day.is-other {
  color: var(--cs-color-text-quiet);
}

.date-pop-day.is-today {
  background: var(--cs-color-neutral-95);
  box-shadow: inset 0 0 0 1.5px var(--cs-color-neutral-60);
}

.date-pop-day.is-picked,
.date-pop-day.is-picked:hover {
  font-weight: 600;
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  box-shadow: none;
}

.date-pop-day:disabled {
  color: var(--cs-color-neutral-80);
  cursor: default;
}

.date-pop-day:focus-visible,
.date-pop-step:focus-visible,
.date-pop-today:focus-visible {
  outline: 2px solid var(--cs-color-brand-40);
  outline-offset: 1px;
}

.date-pop-foot {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}

.date-pop-today {
  padding: 0.25rem 0.6rem;
  font: inherit;
  font-weight: 500;
  color: var(--cs-color-brand-40);
  background: none;
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
}

.date-pop-today:hover:not(:disabled) {
  background: var(--cs-color-neutral-95);
}

.date-pop-today:disabled {
  color: var(--cs-color-neutral-70);
  cursor: default;
}

@media (max-width: 640px) {
  /* Ended between on a phone: the two dates side by side, and the arrows
   * under them, since a phone's date box won't shrink past its own width. */
  .jrv-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .jrv-range .date-pick {
    grid-row: 1;
  }

  .jrv-range .cal-arrow {
    grid-row: 2;
    justify-self: start;
    margin: 0;
  }

  .jrv-range .cal-arrow:last-child {
    justify-self: end;
  }
}

/* Changing a series once it's made (views/seriesedit.templ): Change a
   weekday beside Copy, the Breaks list, and the dialogs' fields three to a
   line (two on a phone). */
.series-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.series-edit-which,
.series-edit-move {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

/* "Tuesdays (12 to come)" needs the room: two to a line. */
.series-edit-which {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.series-edit-move .search-pick {
  grid-column: span 1;
}

@media (max-width: 640px) {
  .series-edit-move {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .series-edit-move .search-pick {
    grid-column: 1 / -1;
  }
}

.series-edit-now {
  margin: 0;
  padding-left: 1.1rem;
}

.series-edit-month {
  margin: 0.75rem 0 0.25rem;
  font-size: 1rem;
}

.series-break-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.series-break-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.series-break-list li cs-button {
  margin-left: auto;
}

/* Settings > Salesforce import: the upload, and a run's report as the
   command line prints it, wrapped to the page. */
.import-form {
  display: grid;
  gap: 0.5rem;
  max-width: 40rem;
  margin: 1.25rem 0 2rem;
}

.import-form label {
  font-weight: 600;
}

.import-report {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--cs-color-neutral-95);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

/* The Journal's "What Salesforce already sent" box, under Sent: done once,
   at cutover. */
.journal-salesforce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

.journal-salesforce > div {
  flex: 1 1 24rem;
}

/* Settings > Salesforce import's lock: its state, then a fold to change it. */
.import-lock {
  margin: 1rem 0;
}

.import-lock-form {
  max-width: 40rem;
  margin-top: 0.75rem;
}

.import-lock-form > summary {
  font-weight: 600;
  color: var(--cs-color-brand-40);
  cursor: pointer;
}

.import-lock-form > form {
  margin-top: 0.75rem;
}

/* A section's title with its tabs on the right of it (David, Nov 5, 2026:
 * the tabs under the title cost a line of height): one line runs under
 * both, and the tabs still join the page as folders. When the window is
 * too narrow for both, the tabs go under the title, as before. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--cs-color-neutral-80);
}

.section-head h1 {
  margin: 0 0 0.4rem;
}

.section-head .tabs {
  margin: 0;
  border-bottom: 0;
}

/* Sales' and Accounts' lists have their own bar under the head. */
.browse-head.section-head {
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .section-head {
    border-bottom: 0;
  }
}

/* --- Comfy and Compact (David, Nov 5, 2026: on a laptop that isn't tall,
 * staff saw little of a page) ---
 * Each person picks one under their initials (users.density), and the page
 * is drawn with it on <html data-density>. Comfy is how the app has always
 * looked. Compact makes the base size 14px, so everything sized in rem,
 * Cornerstone's parts included, comes down an eighth, then tightens what
 * fills a short screen: the top bar to one slim row, the sheet's margins,
 * headings, a record's header, tabs, tables, and the calendar's rows. The
 * kitchen board keeps its big type, and the public pages, which nobody
 * signs in to, keep Comfy. */
html[data-density="compact"] {
  font-size: 87.5%;
}

html[data-density="compact"]:has(.kitchen-page) {
  font-size: 100%;
}

/* The slim top bar: Compact's always, and Comfy's once the page scrolls
 * down (AIASCRC-53; app.js). One row: the logo's icon, the menu with each
 * word beside its icon, then search folded into a button, Monica, the gear,
 * and the person. The search box hangs under the bar when opened, joined
 * to it by corners that curve out. On a phone the bar is its own one row
 * already, and the menu is at the bottom, so this is for wider screens. */
.topbar-search-open {
  display: none;
}

.app-header-space {
  height: 0;
}

@media (min-width: 641px) {
  :is(html[data-density="compact"], html.topbar-condensed) .topbar {
    position: relative;
    grid-template-areas: "brand nav tools";
    column-gap: 0.75rem;
    row-gap: 0;
    padding: 0.2rem 0.75rem;
    border-bottom-width: 3px;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-brand {
    padding-bottom: 0;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-logo {
    display: none;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-icon {
    display: block;
    width: 34px;
    height: 34px;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-nav {
    margin-left: 0;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-nav a {
    flex-direction: row;
    gap: 0.3rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.8125rem;
    border-bottom-width: 2px;
    border-radius: var(--radius-sm, 4px);
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-nav a cs-icon {
    font-size: 1.1rem;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-tool {
    min-width: 2.25rem;
    padding: 0.25rem 0.4rem;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-tool cs-icon {
    font-size: 1.3rem;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-me cs-avatar {
    --size: 1.9rem;
  }

  :is(html[data-density="compact"], html.topbar-condensed) .topbar-search-open {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
  }

  .topbar-search-open-key {
    display: grid;
    place-items: center;
    min-width: 1.2rem;
    height: 1.2rem;
    font: 600 0.7rem var(--cs-font-family-body, inherit);
    color: var(--cs-color-text-quiet);
    background: var(--cs-color-surface-default);
    border: 1px solid var(--cs-color-neutral-80);
    border-radius: var(--radius-sm, 4px);
  }

  html.search-open .topbar-search-open {
    color: var(--cs-color-brand-40);
    background: var(--cs-color-brand-95);
  }

  /* Folded away until opened; then it hangs under the bar, on the right,
     under the search button, its top corners curving out into the bar. */
  :is(html[data-density="compact"], html.topbar-condensed) .topbar-search {
    display: none;
  }

  :is(html[data-density="compact"], html.topbar-condensed).search-open .topbar-search {
    --flare: 0.9rem;
    position: absolute;
    top: calc(100% + 3px);
    right: 1rem;
    z-index: 25;
    display: block;
    width: min(32rem, 70vw);
    max-width: none;
    padding: 0.55rem 0.7rem 0.7rem;
    background: var(--cs-color-surface-default);
    border-radius: 0 0 0.9rem 0.9rem;
    box-shadow: 0 10px 22px rgb(0 0 0 / 14%);
    animation: search-drop 0.16s ease-out;
  }

  :is(html[data-density="compact"], html.topbar-condensed).search-open .topbar-search::before,
  :is(html[data-density="compact"], html.topbar-condensed).search-open .topbar-search::after {
    position: absolute;
    top: 0;
    width: var(--flare);
    height: var(--flare);
    content: '';
  }

  :is(html[data-density="compact"], html.topbar-condensed).search-open .topbar-search::before {
    left: calc(-1 * var(--flare));
    background: radial-gradient(circle at 0 100%, transparent calc(var(--flare) - 0.5px), var(--cs-color-surface-default) var(--flare));
  }

  :is(html[data-density="compact"], html.topbar-condensed).search-open .topbar-search::after {
    right: calc(-1 * var(--flare));
    background: radial-gradient(circle at 100% 100%, transparent calc(var(--flare) - 0.5px), var(--cs-color-surface-default) var(--flare));
  }

  /* Comfy, scrolled down: the bar is fixed at the top, slim, and the space
     keeps its full height in the page, so nothing under it moves. */
  html.topbar-condensed .app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    animation: bar-slim 0.18s ease-out;
  }

  html.topbar-condensed .app-header-space {
    height: var(--header-space, 0px);
  }

  /* The notes across the top, one slim line too. */
  :is(html[data-density="compact"], html.topbar-condensed) :is(.viewing-as, .mail-redirect) {
    padding-block: 0.2rem;
    font-size: 0.8rem;
  }
}

@keyframes search-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes bar-slim {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.topbar-condensed .app-header,
  html.search-open .topbar-search {
    animation: none;
  }
}

/* The menu under the person: Compact view ticked by the page's own. */
.density-item .density-on,
html[data-density="compact"] .density-item .density-off {
  display: none;
}

html[data-density="compact"] .density-item .density-on {
  display: inline-block;
}

/* Compact pages: less room around the sheet and between its parts. */
html[data-density="compact"] .page {
  padding: 0.75rem 0.75rem 2rem;
}

html[data-density="compact"] .page:not(:has(> .split, > .cal-page, > .kitchen-page)) {
  margin: 0.6rem auto 1rem;
  padding: 0.9rem 1.25rem 1.5rem;
}

:where(html[data-density="compact"]) h1 {
  margin-block: 0 0.4rem;
  font-size: 1.6rem;
}

:where(html[data-density="compact"]) h2 {
  margin-block: 0.75rem 0.4rem;
}

html[data-density="compact"] .record-head h2 {
  font-size: 1.3rem;
}

html[data-density="compact"] .money {
  margin: 0.5rem 0;
}

html[data-density="compact"] .money div {
  padding: 0.35rem 0.75rem;
}

html[data-density="compact"] .money dd {
  font-size: 1.15rem;
}

html[data-density="compact"] .record-facts-box > div {
  padding: 0.35rem 0.75rem;
}

html[data-density="compact"] .tabs {
  margin: 0.75rem 0 0.6rem;
}

html[data-density="compact"] .tabs a {
  padding: 0.35rem 0.7rem;
}

html[data-density="compact"] .data-table {
  font-size: 0.9rem;
}

html[data-density="compact"] .data-table th,
html[data-density="compact"] .data-table td {
  padding: 0.35rem 0.6rem;
}

/* The calendar: shorter lanes and rows, so about twice the spaces show. */
html[data-density="compact"] .cal {
  --lane-h: 1.35rem;
  --row-pad: 0.12rem;
}

html[data-density="compact"] .cal-space {
  padding-block: 0.15rem;
}

/* Monica, a little smaller in the corner (she's sized in px). */
html[data-density="compact"] .monica:not(.monica-top .monica) .monica-button {
  width: 100px;
  height: 100px;
}

/* The inquiry form (AIASCRC-9): its trap field is for robots, off the
   page for people and out of screen readers' way (aria-hidden). */
.inquiry-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-interests {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.inquiry-interests legend {
  padding: 0;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Settings > Email wording (and a schedule's Emails tab): the list, then
   an email's words beside how it reads (the preview under them when there
   isn't room). */
.wording-intro {
  max-width: 48rem;
}

.wording-group {
  margin-top: 1.5rem;
}

.wording-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-md, 8px);
}

.wording-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 0.75rem 1rem;
}

.wording-list li + li {
  border-top: 1px solid var(--cs-color-neutral-90);
}

.wording-list li:nth-child(even) {
  background: color-mix(in srgb, var(--cs-color-neutral-95) 55%, transparent);
}

.wording-list a {
  display: grid;
  gap: 0.125rem;
  flex: 1 1 22rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.wording-list-title {
  font-weight: 600;
  color: var(--cs-color-brand-40);
}

.wording-list a:hover .wording-list-title {
  text-decoration: underline;
}

.wording-list-state {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wording-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.wording-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 1100px) {
  .wording-edit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .wording-preview {
    position: sticky;
    top: calc(var(--header-height, 4rem) + 1rem);
  }
}

.wording-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.wording-body::part(textarea) {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.wording-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.wording-fills h2,
.wording-preview h2,
.wording-history h2 {
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}

.wording-fills dl {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}

.wording-fills dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}

.wording-fills dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
}

.wording-fills dd {
  margin: 0;
}

.wording-fill {
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 999px;
  background: var(--cs-color-surface-default);
  color: var(--cs-color-brand-40);
  cursor: pointer;
  white-space: nowrap;
}

.wording-fill:hover,
.wording-fill:focus-visible {
  border-color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.wording-preview {
  min-width: 0;
}

.wording-reset {
  margin-top: 1.5rem;
}

.wording-reset summary {
  cursor: pointer;
  font-weight: 600;
}

.wording-history {
  margin-top: 1.5rem;
}

.wording-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.wording-history li {
  display: grid;
  gap: 0.125rem;
}

.wording-before {
  white-space: pre-wrap;
  font-size: 0.8125rem;
  max-height: 20rem;
  overflow: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

@media (max-width: 640px) {
  .wording-fills dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Settings > Guest survey: how it goes out, its statements in order (each
   to move, change, or turn off), and the words around them. */
.guest-survey-intro {
  max-width: 48rem;
}

.guest-survey-section {
  margin-top: 1.75rem;
}

.guest-survey-section h2 {
  font-size: 1.15rem;
}

.guest-survey-days {
  max-width: 14rem;
}

.guest-survey-rules {
  max-width: 48rem;
}

.guest-survey-rules ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.2rem;
}

.survey-statement-list {
  list-style: none;
  counter-reset: statement;
  margin: 0.75rem 0;
  padding: 0;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-md, 8px);
}

.survey-statement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
}

.survey-statement + .survey-statement {
  border-top: 1px solid var(--cs-color-neutral-90);
}

.survey-statement:not(.off)::before {
  counter-increment: statement;
  content: counter(statement);
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
}

.survey-statement.off::before {
  content: "";
  flex: none;
  width: 1.6rem;
}

.survey-statement.off .survey-statement-text {
  color: var(--cs-color-neutral-50);
  text-decoration: line-through;
}

.survey-statement-body {
  flex: 1;
  min-width: 0;
}

.survey-statement-text {
  margin: 0 0 0.15rem;
}

.survey-statement-body p.small {
  margin: 0;
}

.survey-statement-tools {
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.survey-statement-form {
  flex: 1;
}

.survey-statement-label {
  max-width: 22rem;
}

.survey-statement-buttons {
  display: flex;
  gap: 0.5rem;
}

.survey-statement-add {
  margin: 0.75rem 0;
  padding: 0.9rem;
  border: 1px dashed var(--cs-color-neutral-80);
  border-radius: var(--radius-md, 8px);
}

.survey-statement-add h3 {
  margin-top: 0;
  font-size: 1rem;
}

.survey-example {
  margin-top: 1rem;
}

.survey-example summary {
  cursor: pointer;
  font-weight: 600;
}

.survey-example ol {
  margin: 0.5rem 0;
}

@media (max-width: 600px) {
  .survey-statement {
    flex-wrap: wrap;
  }

  .survey-statement-tools {
    width: 100%;
    justify-content: flex-start;
    padding-left: 2.35rem;
  }
}

/* A stay Salesforce had marked Paid that owes here (AIASCRC-94): the
   Payments tab's note, with its two ways to put it right side by side. */
.marked-paid {
  margin-bottom: 1rem;
}

.marked-paid p {
  margin: 0 0 0.5rem;
}

.marked-paid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.marked-paid-actions .label-short {
  display: none;
}

/* On a phone the longer button's words don't fit beside the note's icon. */
@media (max-width: 600px) {
  .marked-paid-actions .label-long {
    display: none;
  }

  .marked-paid-actions .label-short {
    display: inline;
  }
}

/* A reservation's bundles on its Lines tab (AIASCRC-90): each with what it
   costs against its lines, and its Change and Take off. */
.line-bundles {
  margin-top: 1.5rem;
}

.line-bundle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--cs-color-surface-border);
}

.line-bundle p {
  margin: 0;
}

.line-bundle-head + p {
  margin-top: 0.25rem;
}

.line-bundle-price {
  margin-left: 0.5rem;
}

.line-bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .line-bundle {
    flex-direction: column;
    gap: 0.5rem;
  }

  .line-bundle-price {
    display: block;
    margin-left: 0;
  }
}

/* Loading from Sling (AIASCRC-16): the files and the day to load from,
 * then each person and position to pick, a row waiting for a pick marked
 * on its edge, then what loading does and its button. */
.sling-load {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.sling-files {
  display: grid;
  gap: 0.75rem;
}

/* The rule above the section runs the page's width; what's in it doesn't. */
.sling-files > :not(h2) {
  max-width: 36rem;
}

.sling-upload {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

/* Both tables (People, Positions) are Sling's thing on the left and our
 * pick on the right, their columns the same widths so they line up. */
.sling-map {
  table-layout: fixed;
}

.sling-map th:first-child {
  width: 40%;
}

.sling-map td > .quiet {
  display: block;
}

.sling-map tr.sling-undecided > td:first-child {
  box-shadow: inset 3px 0 0 var(--cs-color-warning-border-loud);
}

.sling-pick {
  display: grid;
  gap: 0.4rem;
  max-width: 28rem;
}

.sling-email-problem {
  color: var(--cs-color-danger-on-quiet);
}

.sling-preview > cs-button,
.sling-load > cs-button {
  justify-self: start;
}

.sling-todo {
  margin: 0;
}

.sling-preview {
  display: grid;
  gap: 0.75rem;
}


.shift-people-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.shift-people-head > p {
  flex: 1 1 20rem;
  margin: 0;
}

/* On a phone each row stacks: Sling's name, then the pick. */
@media (max-width: 640px) {
  .sling-map thead {
    display: none;
  }

  .sling-map tr,
  .sling-map td {
    display: block;
  }

  .sling-map td:first-child {
    border-bottom: 0;
  }

  .sling-map td + td {
    padding-top: 0;
  }
}

/* ======================================================================
   Camp registration, the family's side (AIASCRC-124; David, Nov 19, 2026:
   "a wow experience"). The website's programs page links here, so it takes
   that page's look: a navy hero with tall italic capitals, facts with red
   bars, cards with a date badge, a red eyebrow, and a red Sign up. The
   wrapper is aia-public aia-quiet: navy is the brand, and red is used on
   purpose, for what to tap and what to notice.
   ====================================================================== */
.camp-site {
  min-height: 100vh;
  background: var(--cs-color-surface-lowered);
  color: var(--cs-color-text-normal);
  display: flex;
  flex-direction: column;
}

:where(.camp-site a) {
  color: inherit;
}

/* The page runs the window's width, so the hero and the facts can; the
   rest sits in a column. */
.camp-main {
  flex: 1;
  width: 100%;
  padding-bottom: 4rem;
}

.camp-main > :not(.camp-hero, .camp-facts) {
  width: min(76rem, 100% - 2.5rem);
  margin-inline: auto;
}

.camp-preview-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--cs-color-neutral-20);
  color: white;
  font-size: 0.85rem;
}

.camp-preview-band a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.camp-preview-pill {
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  background: var(--cs-color-warning-40, #e8a33c);
  color: var(--cs-color-neutral-10);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.camp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--cs-color-surface-default);
  border-bottom: 1px solid var(--cs-color-neutral-90);
  position: sticky;
  top: 0;
  z-index: 20;
}

.camp-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.camp-brand img {
  height: 2.6rem;
}

.camp-brand-words {
  display: flex;
  flex-direction: column;
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--aia-navy);
  line-height: 1;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-left: 0.85rem;
  border-left: 2px solid var(--cs-color-neutral-90);
}

.camp-brand-words span {
  color: var(--aia-red);
  font-size: 1.35rem;
}

.camp-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.camp-nav a {
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--aia-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.camp-nav a:hover {
  color: var(--aia-red);
}

.camp-family-dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--aia-navy);
  color: white;
  font-family: var(--cs-font-family-heading);
  font-style: normal;
  font-size: 0.9rem;
}

.camp-foot {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--aia-navy);
  color: rgb(255 255 255 / 0.8);
  font-size: 0.9rem;
}

.camp-foot p {
  margin: 0.2rem 0;
}

.camp-foot a {
  color: white;
}

/* The hero, the website's: navy, the campus's fields drawn faintly behind,
   a letter-spaced eyebrow, and the headline in tall italic capitals. */
.camp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse at 85% 10%, color-mix(in oklab, var(--aia-red) 45%, transparent), transparent 55%),
    linear-gradient(135deg, var(--aia-navy), color-mix(in oklab, var(--aia-navy) 70%, black));
  color: white;
}

.camp-hero::before {
  content: '';
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  background: white;
  opacity: 0.09;
  -webkit-mask: url('../img/campus-lines.svg') center / cover no-repeat;
  mask: url('../img/campus-lines.svg') center / cover no-repeat;
}

.camp-hero-photo {
  background: var(--aia-navy);
}

.camp-hero-photo::before {
  display: none;
}

.camp-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camp-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in oklab, var(--aia-navy) 92%, transparent) 30%, color-mix(in oklab, var(--aia-navy) 45%, transparent));
}

.camp-hero-in {
  max-width: 73.5rem;
  margin: 0 auto;
}

.camp-eyebrow-light {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
}

.camp-display {
  margin: 0;
  color: white;
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  max-width: 18ch;
  text-wrap: balance;
}

.camp-display-dark {
  color: var(--aia-navy);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: none;
}

.camp-hero-words {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.92);
}

.camp-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.camp-hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(4px);
  font-weight: 600;
  font-size: 0.95rem;
}

.camp-hero-facts cs-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* The website's strip of facts, each with a red bar. */
.camp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.1rem max(1.25rem, (100% - 76rem) / 2 + 1.25rem);
  list-style: none;
  background: var(--cs-color-neutral-95);
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.camp-facts li {
  padding-left: 0.85rem;
  border-left: 3px solid var(--aia-red);
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cs-color-neutral-20);
}

.camp-section {
  margin-top: 2.5rem;
}

.camp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.camp-section-head h2,
.camp-about h2,
.camp-bring h2 {
  margin: 0;
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1;
  color: var(--aia-navy);
}

.camp-quiet {
  color: var(--cs-color-text-quiet);
  font-size: 0.92rem;
}

.camp-center {
  text-align: center;
}

.camp-empty {
  padding: 1.25rem;
  border: 1px dashed var(--cs-color-neutral-80);
  border-radius: 10px;
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-surface-default);
}

.camp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--aia-navy) !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.camp-link:hover {
  color: var(--aia-red) !important;
}

/* The red button, the website's REGISTER. */
.camp-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 3px;
  background: var(--aia-red);
  color: white !important;
  font-family: var(--cs-font-family-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 color-mix(in oklab, var(--aia-red) 60%, black);
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.camp-btn:hover {
  background: color-mix(in oklab, var(--aia-red) 85%, black);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--aia-red) 35%, transparent);
}

.camp-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.camp-btn-big {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.camp-btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--aia-navy);
  border-radius: 3px;
  background: var(--cs-color-surface-default);
  color: var(--aia-navy) !important;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.camp-btn-quiet:hover {
  background: var(--cs-color-brand-95);
}

.camp-icon-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 50%;
  background: var(--cs-color-surface-default);
  color: var(--aia-navy);
  cursor: pointer;
}

.camp-icon-btn:hover {
  border-color: var(--aia-navy);
}

.camp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.55rem;
  border-radius: 99px;
  background: var(--cs-color-brand-90);
  color: var(--aia-navy);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--cs-font-family-body);
  vertical-align: middle;
}

.camp-pill cs-icon {
  font-size: 0.95rem;
}

.camp-pill-go {
  background: var(--cs-color-success-90);
  color: var(--cs-color-success-20);
}

.camp-pill-sos {
  background: var(--cs-color-danger-95);
  color: var(--cs-color-danger-40);
}

.camp-pill-need {
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
}

.camp-pill-off {
  background: var(--cs-color-neutral-90);
  color: var(--cs-color-neutral-40);
}

/* Asked once, then kept on the kid or family for later camps (AIASCRC-147). */
.camp-pill-kept {
  background: var(--cs-color-success-90);
  color: var(--cs-color-success-20);
}

/* Each kid's badge, in their own color. */
.camp-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--camp-kid-0);
  color: white;
  font-family: var(--cs-font-family-heading);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 0 3px var(--cs-color-surface-default);
}

.camp-avatar[data-color='1'] { background: var(--camp-kid-1); }
.camp-avatar[data-color='2'] { background: var(--camp-kid-2); }
.camp-avatar[data-color='3'] { background: var(--camp-kid-3); }
.camp-avatar[data-color='4'] { background: var(--camp-kid-4); }
.camp-avatar[data-color='5'] { background: var(--camp-kid-5); }

.camp-avatar-big {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.45rem;
}

.camp-avatar-small {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
  box-shadow: none;
}

.camp-avatar-add {
  background: var(--cs-color-neutral-95);
  color: var(--aia-navy);
  border: 2px dashed var(--cs-color-neutral-70);
  box-shadow: none;
}

.camp-avatar-family {
  background: var(--aia-navy);
}

/* Your kids, along the top of the camps page. */
.camp-kid-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.camp-kid-chip {
  height: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 99px;
  background: var(--cs-color-surface-default);
  font: inherit;
  text-align: left;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.camp-kid-chip > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.camp-kid-add {
  cursor: pointer;
  border-style: dashed;
  color: var(--aia-navy);
}

.camp-kid-add:hover {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

/* Camp cards, the website's program cards. */
.camp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.camp-card {
  display: flex;
  flex-direction: column;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.camp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.camp-card-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 11rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 20%, color-mix(in oklab, var(--aia-red) 50%, transparent), transparent 60%),
    linear-gradient(140deg, var(--aia-navy), color-mix(in oklab, var(--aia-navy) 65%, black));
  border-bottom: 4px solid var(--aia-red);
  color: white;
}

.camp-card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: white;
  opacity: 0.1;
  -webkit-mask: url('../img/campus-lines.svg') 30% 40% / 260% no-repeat;
  mask: url('../img/campus-lines.svg') 30% 40% / 260% no-repeat;
}

.camp-card-art cs-icon {
  font-size: 5.5rem;
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.35));
  transition: transform var(--duration-base) var(--ease-out);
}

.camp-card:hover .camp-card-art cs-icon {
  transform: scale(1.08) rotate(-6deg);
}

.camp-card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.camp-date-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.1rem;
  padding: 0.35rem 0.5rem 0.25rem;
  background: white;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
  line-height: 1;
}

.camp-date-badge span {
  color: var(--aia-red);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.camp-date-badge strong {
  color: var(--aia-navy);
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  font-size: 2rem;
}

.camp-type-tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.2rem 0.45rem;
  background: rgb(255 255 255 / 0.9);
  color: var(--cs-color-neutral-30);
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.camp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.2rem;
}

.camp-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--aia-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.camp-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--cs-font-family-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--aia-navy);
}

.camp-card h3 a {
  color: var(--aia-navy);
  text-decoration: none;
}

.camp-card h3 a:hover {
  text-decoration: underline;
}

.camp-meta {
  margin: 0 0 1rem;
  color: var(--cs-color-text-quiet);
  font-size: 0.92rem;
  line-height: 1.6;
}

.camp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--cs-color-neutral-90);
}

.camp-price {
  margin: 0;
  font-family: var(--cs-font-family-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cs-color-neutral-10);
}

.camp-price s {
  color: var(--cs-color-text-quiet);
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.15rem;
}

.camp-price span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

/* A family's sign-ups, as chips of weeks. */
.camp-signed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
}

.camp-signed {
  padding: 1.1rem 1.2rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-left: 4px solid var(--cs-color-success-40);
  border-radius: 8px;
}

.camp-signed header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.camp-signed h3 {
  margin: 0;
  font-size: 1.05rem;
}

.camp-signed h3 a {
  color: var(--aia-navy);
}

.camp-signed p {
  margin: 0;
}

.camp-signed-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--cs-color-success-90);
  color: var(--cs-color-success-30);
}

.camp-signed-kid {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--cs-color-neutral-95);
}

.camp-signed-kid strong {
  min-width: 5.5rem;
}

.camp-week-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.camp-week-chip {
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  background: var(--cs-color-brand-90);
  color: var(--aia-navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.camp-week-chip em {
  font-style: normal;
  font-weight: 600;
}

.camp-week-chip-off {
  background: var(--cs-color-neutral-95);
  color: var(--cs-color-neutral-50);
  text-decoration: line-through;
}

.camp-signup-kid {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  padding: 0.15rem 0;
}

.camp-signup-kid > span:first-child {
  min-width: 9rem;
  font-weight: 600;
}

.camp-week-chip-wait {
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
}

/* A camp's page. */
.camp-note-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
  font-weight: 600;
}

.camp-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 2rem;
  align-items: start;
  margin-top: 2.25rem;
}

.camp-page-main {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.camp-about p {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 44rem;
}

.camp-about h2 {
  margin-bottom: 0.75rem;
}

.camp-weeks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.85rem;
}

.camp-week {
  position: relative;
  padding: 1rem 1rem 0.9rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
  overflow: hidden;
}

.camp-week::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--cs-color-success-40);
}

.camp-week[data-tone='low']::before {
  background: var(--cs-color-warning-40, #e8a33c);
}

.camp-week[data-tone='full']::before {
  background: var(--aia-red);
}

.camp-week-num,
.camp-grid-num {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.camp-week h3 {
  margin: 0.15rem 0 0.1rem;
  font-family: var(--cs-font-family-heading);
  font-size: 1.05rem;
  color: var(--aia-navy);
}

.camp-week-days {
  margin: 0 0 0.65rem;
  color: var(--cs-color-text-quiet);
  font-size: 0.88rem;
}

.camp-meter {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--cs-color-neutral-90);
  overflow: hidden;
}

.camp-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cs-color-success-40);
  transition: width var(--duration-base) var(--ease-out);
}

[data-tone='low'] .camp-meter > span {
  background: var(--cs-color-warning-40, #e8a33c);
}

[data-tone='full'] .camp-meter > span,
.camp-meter[data-full] > span {
  background: var(--aia-red);
}

.camp-meter-thin {
  height: 4px;
}

.camp-week-state {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cs-color-success-30);
}

[data-tone='low'] .camp-week-state,
[data-tone='low'] .camp-grid-state {
  color: var(--cs-color-warning-30);
}

[data-tone='full'] .camp-week-state,
[data-tone='full'] .camp-grid-state {
  color: var(--aia-red);
}

.camp-week-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

.camp-bring {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--cs-color-brand-95);
}

.camp-bring > cs-icon {
  font-size: 2rem;
  color: var(--aia-navy);
}

.camp-bring h2 {
  font-size: 1.5rem;
}

.camp-bring p {
  margin: 0.35rem 0 0;
  line-height: 1.6;
}

.camp-price-card {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-top: 5px solid var(--aia-red);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.camp-price-card .camp-eyebrow {
  margin: 0;
}

.camp-price-big {
  margin: 0;
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--aia-navy);
}

.camp-price-big span {
  font-family: var(--cs-font-family-body);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cs-color-text-quiet);
}

.camp-already {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--cs-color-success-95);
  color: var(--cs-color-success-20);
  font-size: 0.9rem;
}

.camp-already strong {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.camp-countdown {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: color-mix(in oklab, var(--aia-red) 8%, white);
  color: var(--aia-red);
  font-weight: 700;
  font-size: 0.88rem;
}

.camp-price-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.4;
}

.camp-price-list li {
  display: flex;
  gap: 0.5rem;
}

.camp-price-list cs-icon {
  flex: none;
  color: var(--cs-color-success-40);
  font-size: 1.2rem;
}

/* The sign-up: steps across the top, the step, and what it comes to. */
.camp-signup-head {
  padding: 2rem 0 0.5rem;
}

.camp-signup-head h1 {
  margin-top: 0.4rem;
}

.camp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.camp-steps li {
  position: relative;
}

.camp-steps li + li::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  right: calc(50% + 1.4rem);
  left: calc(-50% + 1.4rem);
  height: 3px;
  border-radius: 3px;
  background: var(--cs-color-neutral-90);
}

.camp-steps li[data-state='done'] + li::before,
.camp-steps li[data-state='now']::before {
  background: var(--cs-color-success-40);
}

.camp-steps li > span,
.camp-steps li > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cs-color-text-quiet);
  text-align: center;
}

.camp-steps li > button {
  cursor: pointer;
  height: auto;
  max-block-size: none;
}

.camp-step-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--cs-color-surface-default);
  border: 2px solid var(--cs-color-neutral-80);
  color: var(--cs-color-neutral-40);
  font-family: var(--cs-font-family-heading);
  font-weight: 800;
  transition: transform var(--duration-fast) var(--ease-out);
}

.camp-steps li[data-state='done'] .camp-step-dot {
  background: var(--cs-color-success-40);
  border-color: var(--cs-color-success-40);
  color: white;
}

.camp-steps li[data-state='done'] > button:hover .camp-step-dot {
  transform: scale(1.08);
}

.camp-steps li[data-state='now'] .camp-step-dot {
  background: var(--aia-red);
  border-color: var(--aia-red);
  color: white;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--aia-red) 18%, transparent);
}

.camp-steps li[data-state='now'] > span {
  color: var(--aia-navy);
}

.camp-signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.5rem;
  align-items: start;
}

.camp-step-card {
  padding: 1.75rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
  animation: camp-step-in 300ms var(--ease-out);
}

@keyframes camp-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.camp-step-card > h2 {
  margin: 0 0 0.25rem;
  font-family: var(--cs-font-family-heading);
  font-size: 1.6rem;
  color: var(--aia-navy);
}

.camp-step-card > p.camp-quiet {
  margin: 0 0 1.5rem;
}

.camp-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cs-color-neutral-95);
}

.camp-step-actions > :only-child {
  margin-left: auto;
}

/* Step 1: who's coming, a big card for each kid. */
.camp-who {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 0.85rem;
}

.camp-who-card {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  border: 2px solid var(--cs-color-neutral-90);
  border-radius: 14px;
  background: var(--cs-color-surface-default);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.camp-who-card:hover {
  border-color: var(--cs-color-neutral-70);
}

.camp-who-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.camp-who-card:has(input:checked) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

.camp-who-card:has(input:focus-visible) {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.camp-who-words {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.camp-who-words strong {
  font-family: var(--cs-font-family-heading);
  font-size: 1.1rem;
  color: var(--aia-navy);
}

.camp-who-check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--cs-color-neutral-80);
  color: transparent;
  transition: all var(--duration-fast) var(--ease-out);
}

.camp-who-card:has(input:checked) .camp-who-check {
  background: var(--aia-navy);
  border-color: var(--aia-navy);
  color: white;
  transform: scale(1.1);
}

.camp-who-no {
  cursor: not-allowed;
  border-style: dashed;
  background: var(--cs-color-neutral-95);
}

.camp-who-no .camp-avatar {
  filter: grayscale(1);
  opacity: 0.6;
}

.camp-who-no .camp-who-check {
  display: none;
}

.camp-who-why {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--cs-color-warning-30);
  font-weight: 600;
}

.camp-who-add {
  border-style: dashed;
  align-items: center;
}

.camp-health-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: var(--cs-color-danger-95);
  color: var(--cs-color-danger-40);
  font-size: 0.8rem;
  font-weight: 600;
}

.camp-health-tag cs-icon {
  font-size: 1rem;
}

.camp-health-med {
  background: var(--cs-color-brand-95);
  color: var(--aia-navy);
}

/* A health note someone without Camp health may not read (AIASCRC-137):
   only that it's there, quiet, never what it says. */
.camp-health-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: var(--cs-color-neutral-95);
  color: var(--cs-color-neutral-30);
  font-size: 0.8rem;
  font-weight: 600;
}

.camp-health-locked cs-icon {
  font-size: 1rem;
}

.camp-health-shut {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: var(--cs-color-neutral-95);
  color: var(--cs-color-neutral-30);
  font-size: 0.9rem;
}

.camp-health-shut cs-icon {
  flex: none;
  font-size: 1.25rem;
  margin-top: 0.05rem;
}

/* Step 2: the grid, a row for each kid and a box for each week. */
.camp-grid-wrap {
  overflow-x: auto;
  contain: paint;
  margin: 0 -0.5rem;
  padding: 0 0.5rem 0.5rem;
}

.camp-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.4rem;
}

.camp-grid thead th {
  min-width: 5rem;
  padding: 0.5rem 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
}

.camp-grid-few {
  width: auto;
}

.camp-grid-few thead th {
  min-width: 8.5rem;
}

.camp-grid thead th.camp-grid-corner {
  background: none;
}

.camp-grid thead th > span {
  display: block;
}

.camp-grid-theme {
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  color: var(--aia-navy);
  font-size: 0.85rem;
  line-height: 1.15;
  margin: 0.1rem 0;
  min-height: 2.3em;
}

.camp-grid-days {
  font-size: 0.78rem;
  color: var(--cs-color-text-quiet);
  margin-bottom: 0.35rem;
}

.camp-grid-state {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cs-color-success-30);
}

.camp-grid tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 9rem;
  padding: 0.35rem 0.6rem 0.35rem 0;
  background: var(--cs-color-surface-default);
  text-align: left;
}

.camp-grid tbody th > .camp-avatar {
  float: left;
  margin-right: 0.5rem;
}

.camp-grid tbody th .camp-avatar {
  vertical-align: middle;
}

.camp-grid-kid {
  display: block;
  padding-top: 0.15rem;
  line-height: 1.2;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  color: var(--aia-navy);
}

.camp-grid-all {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--aia-red);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.camp-grid-all:hover {
  text-decoration: underline;
}

.camp-grid td {
  padding: 0;
}

.camp-cell {
  position: relative;
  display: block;
  width: 100%;
  max-inline-size: none;
  cursor: pointer;
}

.camp-cell input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.camp-cell-face,
.camp-cell-had {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 3.6rem;
  border: 2px dashed var(--cs-color-neutral-80);
  border-radius: 12px;
  color: var(--cs-color-neutral-40);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--duration-fast) var(--ease-out);
}

.camp-cell-face cs-icon {
  font-size: 1.2rem;
  opacity: 0.35;
  transition: transform var(--duration-fast) var(--ease-out);
}

.camp-cell:hover .camp-cell-face {
  border-color: var(--aia-navy);
  color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

.camp-cell input:checked + .camp-cell-face {
  border: 2px solid var(--aia-navy);
  background: var(--aia-navy);
  color: white;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--aia-navy) 30%, transparent);
}

.camp-cell input:checked + .camp-cell-face cs-icon {
  opacity: 1;
  transform: scale(1.15);
}

.camp-cell input:focus-visible + .camp-cell-face {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.camp-cell-wait .camp-cell-face {
  border-color: var(--cs-color-warning-80, #f1cf94);
  color: var(--cs-color-warning-30);
}

.camp-cell-wait input:checked + .camp-cell-face {
  border-color: var(--cs-color-warning-40, #e8a33c);
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
  box-shadow: none;
}

.camp-cell-had {
  border: 2px solid var(--cs-color-success-80);
  background: var(--cs-color-success-95);
  color: var(--cs-color-success-30);
  cursor: default;
}

.camp-cell-had-wait {
  border-color: var(--cs-color-warning-80, #f1cf94);
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
}

.camp-cell-week {
  display: none;
}

/* Step 3: the questions, a card for each kid. */
.camp-missing {
  margin-bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border-left: 4px solid var(--cs-color-warning-40, #e8a33c);
  background: var(--cs-color-warning-95);
}

.camp-missing p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  color: var(--cs-color-warning-30);
}

.camp-missing ul {
  margin: 0;
  padding-left: 1.6rem;
}

.camp-missing a {
  color: var(--aia-navy);
  font-weight: 600;
}

.camp-q-card {
  margin-bottom: 1.25rem;
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cs-color-surface-default);
}

.camp-q-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.camp-q-head h3 {
  margin: 0;
  font-family: var(--cs-font-family-heading);
  font-size: 1.15rem;
  color: var(--aia-navy);
}

.camp-q-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
}

.camp-q-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.25rem 1.2rem 1.4rem;
}

.camp-health {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
}

.camp-health > cs-icon {
  font-size: 1.6rem;
  color: var(--cs-color-success-40);
}

.camp-health > div {
  flex: 1;
}

.camp-health p {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
}

.camp-health .camp-link {
  font-size: 0.85rem;
  white-space: nowrap;
}

.camp-q {
  margin: 0;
  padding: 0;
  border: 0;
  scroll-margin-top: 6rem;
}

/* A family's kept answers on their page (AIASCRC-147). */
.camp-kept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

/* A short question sits beside its answer; a long one takes its own line,
   its answer under it. */
.camp-kept-list > div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.3rem;
  max-width: 100%;
}

.camp-kept-list dt {
  color: var(--cs-color-text-quiet);
}

.camp-kept-list dt::after {
  content: ':';
}

.camp-kept-list dd {
  margin: 0;
  font-weight: 600;
}

/* A kept answer from an earlier camp, to check (AIASCRC-147): what was
   asked, their answer, and Still right? Change it, as the health box. */
.camp-q-kept {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
}

.camp-q-kept-what {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 12rem;
}

.camp-q-kept-label {
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cs-color-text-quiet);
}

.camp-q-kept .camp-link {
  font-size: 0.85rem;
  white-space: nowrap;
}

.camp-q-waits {
  padding-left: 1rem;
  border-left: 3px solid var(--cs-color-brand-80);
  animation: camp-q-show 350ms var(--ease-out);
}

@keyframes camp-q-show {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.camp-q legend {
  padding: 0;
  margin-bottom: 0.25rem;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--cs-color-neutral-10);
}

.camp-q-help {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--cs-color-text-quiet);
}

.camp-q legend + .camp-opts,
.camp-q legend + cs-input,
.camp-q legend + cs-textarea {
  margin-top: 0.5rem;
}

.camp-q-heading {
  margin: 0.5rem 0 -0.5rem;
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--aia-navy);
}

.camp-q-missing {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--cs-color-warning-40, #e8a33c);
  background: var(--cs-color-warning-95);
}

.camp-q-need {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.5rem 0 0;
  color: var(--cs-color-warning-30);
  font-size: 0.85rem;
  font-weight: 700;
}

.camp-q-details {
  margin-top: 0.75rem;
  animation: camp-q-show 300ms var(--ease-out);
}

.camp-q-short {
  max-width: 10rem;
}

/* A choice is a big button: tap anywhere on it. */
.camp-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.55rem;
}

.camp-opts-yesno {
  grid-template-columns: repeat(2, minmax(0, 9rem));
}

/* Cornerstone shrinks a label holding a checkbox or radio to its words
   (width: fit-content); these fill their box. */
.camp-opt,
.camp-who-card,
.camp-kind,
.camp-icon-pick {
  width: auto;
}

.camp-opt {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.camp-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.camp-opt-face {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  height: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  background: var(--cs-color-surface-default);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.camp-opt:hover .camp-opt-face {
  border-color: var(--aia-navy);
}

.camp-opt-mark {
  flex: none;
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--cs-color-neutral-70);
  border-radius: 50%;
  transition: all var(--duration-fast) var(--ease-out);
}

.camp-opt input[type='checkbox'] + .camp-opt-face .camp-opt-mark {
  border-radius: 5px;
}

.camp-opt-label {
  flex: 1;
  min-width: 0;
}

.camp-opt-price {
  flex-basis: 100%;
  padding-left: 1.75rem;
  color: var(--cs-color-success-30);
  font-size: 0.8rem;
  font-weight: 700;
}

.camp-opt input:checked + .camp-opt-face {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
  box-shadow: inset 0 0 0 1px var(--aia-navy);
}

.camp-opt input:checked + .camp-opt-face .camp-opt-mark {
  border-color: var(--aia-navy);
  background: var(--aia-navy);
  box-shadow: inset 0 0 0 3px var(--cs-color-surface-default);
}

.camp-opt input[type='checkbox']:checked + .camp-opt-face .camp-opt-mark {
  box-shadow: none;
}

.camp-opt input[type='checkbox']:checked + .camp-opt-face .camp-opt-mark::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.08rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.camp-opt input:focus-visible + .camp-opt-face {
  outline: 3px solid var(--cs-color-focus);
  outline-offset: 2px;
}

/* Step 4: a receipt, then who can pick up, the terms, and Sign up. */
.camp-receipt {
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: var(--cs-color-neutral-95);
  background-image: radial-gradient(circle at 0.5rem 0, transparent 0.35rem, var(--cs-color-neutral-95) 0.36rem);
}

.camp-receipt-kid {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--cs-color-neutral-80);
}

.camp-receipt-kid header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-family: var(--cs-font-family-heading);
  font-size: 1.05rem;
  color: var(--aia-navy);
}

.camp-receipt-kid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-receipt-kid li,
.camp-receipt-line,
.camp-receipt-total p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  margin: 0;
}

.camp-receipt-kid li > span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.camp-receipt-extra {
  color: var(--cs-color-neutral-30);
}

.camp-receipt-said {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}

.camp-receipt-said dt {
  color: var(--cs-color-text-quiet);
}

.camp-receipt-said dd {
  margin: 0;
}

.camp-receipt-total {
  font-variant-numeric: tabular-nums;
}

.camp-receipt-big {
  font-family: var(--cs-font-family-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--aia-navy);
}

.camp-save {
  color: var(--cs-color-success-30);
  font-weight: 700;
}

.camp-save span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.camp-tag-wait {
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.camp-pickups,
.camp-terms {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 12px;
}

.camp-pickups header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.camp-pickups h3,
.camp-terms h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.05rem;
  color: var(--aia-navy);
}

.camp-pickups ul {
  margin: 0.6rem 0;
  padding: 0;
  list-style: none;
}

.camp-pickups li {
  padding: 0.25rem 0;
}

.camp-terms-text {
  max-height: 9.5rem;
  overflow-y: auto;
  margin: 0.6rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--cs-color-neutral-95);
  font-size: 0.88rem;
  line-height: 1.55;
}

.camp-terms-text p {
  margin: 0 0 0.6rem;
}

.camp-sign {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.camp-sign input {
  padding: 0.35rem 0.1rem;
  border: 0;
  border-bottom: 2px solid var(--aia-navy);
  background: transparent;
  font-family: var(--cs-font-family-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--aia-navy);
  outline: none;
}

.camp-sign input:focus {
  border-bottom-color: var(--aia-red);
}

.camp-photos,
.camp-check {
  width: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.camp-photos input,
.camp-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--aia-navy);
}

/* The camp's waiver at checkout (AIASCRC-148): I agree for each kid, big
   enough to tap, then the parent's name. */
.camp-waiver-kids {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.camp-waiver-agree {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.camp-waiver-agree:has(input:checked) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

.camp-waiver-agree.is-missing {
  border-color: var(--cs-color-warning-50);
  box-shadow: inset 3px 0 0 var(--cs-color-warning-50);
}

.camp-waiver-agree input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  accent-color: var(--aia-navy);
}

.camp-waiver-done {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.92rem;
}

.camp-waiver-done cs-icon {
  flex: none;
  color: var(--cs-color-success-40);
}

/* A photo permission they didn't give: said, not ticked. */
.camp-waiver-done-no cs-icon {
  color: var(--cs-color-neutral-40);
}

/* Their copy of what they agreed to, under the list (AIASCRC-187). */
.camp-waiver-done + .camp-link {
  margin-top: 0.6rem;
}

.camp-sign-self {
  margin-bottom: 0.25rem;
}

.camp-pay-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--cs-color-brand-95);
  font-size: 0.92rem;
}

.camp-pay-note cs-icon {
  font-size: 1.4rem;
  color: var(--aia-navy);
}

.camp-pay-note p {
  margin: 0;
}

/* What it comes to, beside the step. */
.camp-summary {
  position: sticky;
  top: 5.5rem;
}

.camp-summary-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--aia-navy);
  color: white;
  box-shadow: var(--shadow-lg);
}

.camp-summary-card .camp-quiet {
  color: rgb(255 255 255 / 0.72);
}

.camp-summary-camp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
}

.camp-summary-kids {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.camp-summary-kids li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.camp-summary-kids li > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.camp-summary-kids .camp-quiet {
  font-size: 0.8rem;
}

.camp-summary-line,
.camp-summary-total {
  display: flex;
  justify-content: space-between;
  margin: 0.3rem 0;
  font-variant-numeric: tabular-nums;
}

.camp-summary-card .camp-save {
  color: #9be3b5;
}

.camp-summary-total {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgb(255 255 255 / 0.25);
  font-family: var(--camp-display-font);
  font-style: italic;
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
}

.camp-summary-early {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.85rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
  font-size: 0.82rem;
  font-weight: 600;
}

/* After signing up: a check that draws itself, a little confetti, and
   each kid's weeks as calendar tiles. */
.camp-done {
  position: relative;
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.camp-done .camp-display-dark {
  margin: 0 auto;
}

.camp-done-words {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.camp-done-check {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1rem;
}

.camp-done-check circle {
  fill: var(--cs-color-success-40);
  transform-origin: center;
  animation: camp-pop 450ms var(--ease-out) both;
}

.camp-done-check path {
  fill: none;
  stroke: white;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: camp-draw 400ms 350ms var(--ease-out) forwards;
}

@keyframes camp-pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
}

@keyframes camp-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.camp-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.camp-confetti i {
  position: absolute;
  top: -1rem;
  left: calc(5% + var(--i) * 5.2%);
  width: 0.55rem;
  height: 0.9rem;
  border-radius: 2px;
  background: var(--chart-1);
  opacity: 0;
  animation: camp-fall 1.8s calc(var(--i) * 45ms + 150ms) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

.camp-confetti i:nth-child(3n) { background: var(--aia-red); }
.camp-confetti i:nth-child(3n + 1) { background: var(--chart-4); width: 0.45rem; }
.camp-confetti i:nth-child(4n) { background: var(--chart-3); height: 0.55rem; }
.camp-confetti i:nth-child(5n) { background: var(--aia-navy); }

@keyframes camp-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translateY(18rem) rotate(calc(var(--i) * 47deg + 200deg));
  }
}

.camp-done-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.camp-done-kid h3 {
  margin: 0 0 0.6rem;
  font-family: var(--cs-font-family-heading);
  color: var(--aia-navy);
}

.camp-done-kid {
  margin-bottom: 1.5rem;
}

.camp-cal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.camp-cal-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 7.5rem;
  padding-bottom: 0.6rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cs-color-surface-default);
  text-align: center;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
}

.camp-cal-month {
  align-self: stretch;
  padding: 0.25rem;
  background: var(--aia-red);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.camp-cal-tile strong {
  margin-top: 0.35rem;
  font-family: var(--camp-display-font);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--aia-navy);
}

.camp-cal-theme {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--cs-color-text-quiet);
}

.camp-cal-wait .camp-cal-month {
  background: var(--cs-color-warning-40, #e8a33c);
}

.camp-email-peek {
  margin-top: 1.5rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 12px;
  background: var(--cs-color-surface-default);
}

.camp-email-peek summary {
  list-style: none;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--aia-navy);
  cursor: pointer;
}

.camp-email-peek p {
  margin: 0 1rem 0.5rem;
}

.camp-email-peek iframe {
  display: block;
  width: 100%;
  min-height: 30rem;
  border: 0;
  border-top: 1px solid var(--cs-color-neutral-95);
  border-radius: 0 0 12px 12px;
}

.camp-done-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.camp-done-box {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
}

.camp-done-box h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.camp-done-box p {
  margin: 0;
  line-height: 1.5;
}

.camp-done-box .camp-price-big {
  font-size: 2.6rem;
}

/* The family's own page. */
.camp-family {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 1.5rem;
}

.camp-fam-section .camp-section-head h2 {
  font-size: 1.7rem;
}

.camp-fam-kids,
.camp-fam-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
  gap: 0.85rem;
}

.camp-fam-kid,
.camp-fam-person {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 3.6rem 1.1rem 1.1rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 14px;
}

.camp-fam-kid > div,
.camp-fam-person > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.camp-fam-kid > .camp-icon-btn,
.camp-fam-person > .camp-icon-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.camp-fam-person p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.camp-fam-kid h3,
.camp-fam-person h3 {
  margin: 0 0 0.15rem;
  font-family: var(--cs-font-family-heading);
  font-size: 1.1rem;
  color: var(--aia-navy);
}

.camp-fam-kid p,
.camp-fam-person p {
  margin: 0.1rem 0;
}

.camp-fam-person p cs-icon {
  font-size: 1rem;
  vertical-align: -0.15rem;
  color: var(--cs-color-text-quiet);
}

.camp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem !important;
}

/* Its dialogs. */
.camp-dialog {
  --cs-dialog-width: 36rem;
}

.camp-dialog-form,
.camp-staff-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.camp-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.camp-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.camp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.camp-field select,
.camp-field input[type='time'],
.camp-when select {
  min-height: var(--cs-form-control-height, 2.5rem);
  padding: 0 0.65rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 6px;
  background: var(--cs-color-surface-default);
  font: inherit;
  font-weight: 400;
}

.camp-health-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
}

.camp-health-fields legend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--aia-navy);
}

.camp-checks {
  display: flex;
  flex-direction: column;
}

.camp-checks .camp-check {
  margin-top: 0.5rem;
}

/* Staff picking a family to preview as. */
.camp-pick-grid {
  display: grid;
  grid-template-columns: 22rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

.camp-pick-new {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 12px;
  background: var(--cs-color-brand-95);
}

.camp-pick-new h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.15rem;
}

.camp-pick-new p {
  margin: 0;
}

.camp-pick-new .camp-two {
  grid-template-columns: minmax(0, 1fr);
}

.camp-pick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.6rem;
}

.camp-pick-family {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 12px;
  background: var(--cs-color-surface-default);
  text-decoration: none;
  color: inherit;
}

.camp-pick-family:hover {
  border-color: var(--aia-navy);
  box-shadow: var(--shadow-md);
}

.camp-pick-family > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.camp-pick-family strong {
  color: var(--aia-navy);
}

@media (max-width: 1000px) {
  .camp-signup-grid,
  .camp-page-grid,
  .camp-done-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .camp-price-card {
    position: static;
    order: -1;
  }

  .camp-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .camp-pick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* What it comes to rides along the bottom, as a bar. */
  .camp-summary {
    position: sticky;
    bottom: 0;
    top: auto;
    z-index: 15;
    order: 2;
  }

  .camp-summary-card {
    border-radius: 14px 14px 0 0;
    padding: 0.75rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 1rem;
  }

  .camp-summary-camp,
  .camp-summary-kids,
  .camp-summary-early,
  .camp-summary-line:not(.camp-summary-total ~ .camp-summary-line) {
    display: none;
  }

  .camp-summary-total {
    grid-column: 1;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.6rem;
  }

  .camp-summary-total ~ .camp-summary-line {
    grid-column: 1;
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
  }
}

@media (max-width: 720px) {
  .camp-main > :not(.camp-hero, .camp-facts) {
    width: calc(100% - 2rem);
  }

  .camp-hero {
    padding: 3rem 1rem 2.75rem;
  }

  .camp-facts {
    padding-inline: 1rem;
  }

  .camp-top {
    padding: 0.6rem 1rem;
  }

  .camp-brand img {
    height: 2rem;
  }

  .camp-brand-words {
    display: none;
  }

  .camp-nav {
    gap: 1rem;
  }

  .camp-nav a {
    font-size: 1.1rem;
  }

  .camp-facts {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .camp-step-card {
    padding: 1.15rem;
    border-radius: 12px;
    margin: 0 -0.25rem;
  }

  .camp-step-card > h2 {
    font-size: 1.35rem;
  }

  .camp-steps li > span > span:last-child,
  .camp-steps li > button > span:last-child {
    display: none;
  }

  .camp-steps li[data-state='now'] > span > span:last-child {
    display: block;
    white-space: nowrap;
  }

  /* The grid becomes each kid's card of week tiles. */
  .camp-grid,
  .camp-grid tbody,
  .camp-grid tr {
    display: block;
  }

  .camp-grid thead {
    display: none;
  }

  .camp-grid tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .camp-grid tbody th {
    position: static;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    padding: 0 0 0.25rem;
  }

  .camp-grid-all {
    margin: 0 0 0 auto;
  }

  .camp-grid tbody th > .camp-avatar {
    float: none;
  }

  .camp-grid-kid {
    display: inline;
    padding: 0 0 0 0.5rem;
    width: auto;
  }

  .camp-grid tbody th {
    width: auto;
  }

  .camp-cell-face,
  .camp-cell-had {
    align-items: flex-start;
    min-height: 5.25rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    text-align: left;
  }

  .camp-cell-face > cs-icon,
  .camp-cell-had > cs-icon,
  .camp-cell-face > span:last-child,
  .camp-cell-had > span:last-child {
    display: none;
  }

  .camp-cell-week {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  .camp-cell-week span:first-child {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .camp-cell-week strong {
    font-size: 0.95rem;
  }

  .camp-cell-week span:last-child {
    font-size: 0.72rem;
    font-weight: 600;
  }

  .camp-opts {
    grid-template-columns: minmax(0, 1fr);
  }

  .camp-weeks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .camp-week {
    padding: 0.8rem 0.8rem 0.7rem;
  }

  .camp-opts-yesno {
    grid-template-columns: 1fr 1fr;
  }

  .camp-step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .camp-step-actions > * {
    justify-content: center;
  }

  .camp-two,
  .camp-three {
    grid-template-columns: minmax(0, 1fr);
  }

  .camp-health {
    flex-wrap: wrap;
  }

  .camp-receipt-said {
    grid-template-columns: minmax(0, 1fr);
  }

  .camp-receipt-said dd {
    margin-bottom: 0.35rem;
  }
}

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

  .camp-done-check path {
    stroke-dashoffset: 0;
  }

  .camp-confetti {
    display: none;
  }
}

/* ======================================================================
   Camps, the staff's side (AIASCRC-124): HomeField's look, navy, each
   card with a tinted header band.
   ====================================================================== */
.camps-head {
  flex-wrap: wrap;
}

.camps-head-actions {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

.camps-preview-note {
  margin-bottom: 1rem;
}

.camps-sample {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
  font-weight: 600;
}

.camps-sample cs-button {
  margin-left: auto;
}

.camps-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1rem;
  border: 2px dashed var(--cs-color-neutral-80);
  border-radius: 16px;
  text-align: center;
}

.camps-empty > cs-icon {
  font-size: 3rem;
  color: var(--cs-color-warning-40, #e8a33c);
}

.camps-empty h2,
.camps-empty p {
  margin: 0;
}

.camps-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

/* New camp's offer to start from the example (camps.MakeExample). */
.camp-example-offer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.camp-example-offer p {
  margin: 0.25rem 0 0;
}

.camp-example-or {
  margin: 0 0 0.75rem;
}

@media (max-width: 640px) {
  .camp-example-offer {
    flex-direction: column;
    align-items: stretch;
  }
}

.camps-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
  gap: 1rem;
}

.camps-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cs-color-surface-default);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.camps-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.camps-card header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.camps-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--aia-navy);
  color: white;
  font-size: 1.4rem;
}

.camps-icon-big {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  font-size: 2rem;
}

.camps-card-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.camps-card-name strong {
  font-family: var(--cs-font-family-heading);
  color: var(--aia-navy);
  font-size: 1.05rem;
}

.camps-card-name span {
  font-size: 0.82rem;
  color: var(--cs-color-text-quiet);
}

.camps-status {
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--cs-color-neutral-90);
  color: var(--cs-color-neutral-30);
}

.camps-status[data-status='open'] {
  background: var(--cs-color-success-90);
  color: var(--cs-color-success-20);
}

.camps-card-body {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 1rem;
}

.camps-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 3.5rem;
  flex: none;
}

.camps-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 0.65rem;
  height: 100%;
  border-radius: 3px;
  background: var(--cs-color-neutral-95);
  overflow: hidden;
}

.camps-bar > span {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--aia-navy);
}

.camps-bar[data-full] > span {
  background: var(--aia-red);
}

.camps-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: 0.35rem 1rem;
  flex: 1;
  margin: 0;
}

.camps-nums dt {
  font-size: 0.72rem;
  color: var(--cs-color-text-quiet);
}

.camps-nums dd {
  margin: 0;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--aia-navy);
  font-variant-numeric: tabular-nums;
}

/* One camp. */
.camp-staff .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.camp-staff-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.camp-staff-title {
  flex: 1;
  min-width: 14rem;
}

.camp-staff-title h1 {
  margin: 0;
}

.camp-staff-title p {
  margin: 0.15rem 0 0;
}

.camp-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}

.camp-status-row p {
  margin: 0;
}

.camp-status {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-neutral-90);
}

.camp-status-step {
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--cs-color-neutral-40);
  cursor: pointer;
}

.camp-status-step:hover {
  color: var(--aia-navy);
}

.camp-status-step[aria-pressed] {
  background: var(--aia-navy);
  color: white;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.camp-status-step[aria-pressed][data-status='open'] {
  background: var(--cs-color-success-40);
}

.camp-big-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.camp-big-nums > div {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--cs-color-brand-95);
  border: 1px solid var(--cs-color-brand-90);
}

.camp-big-nums dt {
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

.camp-big-nums dd {
  margin: 0.15rem 0 0;
  font-family: var(--cs-font-family-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--aia-navy);
  font-variant-numeric: tabular-nums;
}

.camp-big-nums small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.camp-body {
  --tab-open: var(--cs-color-surface-default);
  padding-top: 1.25rem;
}

/* A card with a tinted header band. */
.camp-card-band {
  margin-bottom: 1.25rem;
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cs-color-surface-default);
}

.band-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.band-head h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--aia-navy);
}

.band-sub {
  font-family: var(--cs-font-family-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--cs-color-text-quiet);
}

.band-count {
  color: var(--cs-color-text-quiet);
  font-size: 0.88rem;
}

.band-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.band-head > cs-button:last-child {
  margin-left: auto;
}

.band-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1rem 1.25rem;
}

.band-empty,
.band-intro {
  margin: 0;
  padding: 1rem;
  color: var(--cs-color-text-quiet);
}

.band-intro {
  padding-bottom: 0;
}

.camp-weeks-table,
.camp-roster-table,
.camp-families-table {
  width: 100%;
  border-collapse: collapse;
}

.camp-weeks-table th,
.camp-weeks-table td,
.camp-roster-table th,
.camp-roster-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--cs-color-neutral-95);
  text-align: left;
  vertical-align: top;
}

.camp-weeks-table th,
.camp-roster-table th {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
}

.camp-weeks-table .num,
.camp-roster-table .num {
  text-align: right;
}

.camp-week-note-staff {
  display: block;
}

.camp-fill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 9rem;
  color: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.camp-fill .camp-meter {
  flex: 1;
  height: 8px;
}

.camp-fill .camp-meter > span {
  background: var(--aia-navy);
}

.camp-fill .camp-meter[data-full] > span {
  background: var(--aia-red);
}

.camp-nowrap {
  white-space: nowrap;
}

.camp-roster-weeks {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.camp-roster-weeks a {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
  background: var(--cs-color-surface-default);
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
}

.camp-roster-weeks a:hover {
  border-color: var(--aia-navy);
}

.camp-roster-weeks a[aria-current] {
  border-color: var(--aia-navy);
  background: var(--aia-navy);
  color: white;
}

.camp-roster-weeks a[aria-current] .quiet {
  color: rgb(255 255 255 / 0.75);
}

.camp-roster-count {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.camp-roster-count.is-full {
  color: var(--aia-red);
}

[aria-current] .camp-roster-count.is-full {
  color: #ffb3b3;
}

.camp-columns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cs-color-neutral-95);
}

.camp-column-pick {
  cursor: pointer;
}

.camp-column-pick input {
  position: absolute;
  opacity: 0;
}

.camp-column-pick span {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 99px;
  font-size: 0.82rem;
}

.camp-column-pick input:checked + span {
  border-color: var(--aia-navy);
  background: var(--aia-navy);
  color: white;
}

.camp-column-pick input:focus-visible + span {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.camp-roster-kid {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.camp-roster-kid > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.camp-roster-health {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 10rem;
}

.camp-allergy {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0;
  color: var(--cs-color-danger-40);
  font-weight: 600;
  font-size: 0.85rem;
}

.camp-allergy cs-icon {
  flex: none;
  font-size: 1rem;
  margin-top: 0.05rem;
}

.camp-roster-table td a {
  display: block;
  font-weight: 600;
}

.camp-roster-split td {
  padding: 0.55rem 0.85rem;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
  font-weight: 700;
  font-size: 0.85rem;
}

.camp-roster-wait td {
  background: color-mix(in oklab, var(--cs-color-warning-95) 45%, white);
}

/* The question builder. */
.camp-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 1.25rem;
  align-items: start;
}

.camp-builder-preview {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 1rem;
  border-radius: 14px;
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-neutral-90);
}

.camp-builder-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.camp-site-inline {
  min-height: 0;
  background: none;
  font-size: 0.92rem;
}

.camp-site-inline .camp-opts {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.camp-q-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.camp-q-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 12px;
  background: var(--cs-color-surface-default);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

.camp-q-item:hover {
  box-shadow: var(--shadow-md);
}

.camp-q-item.is-off {
  opacity: 0.6;
  border-style: dashed;
}

.camp-q-item.is-heading {
  background: var(--cs-color-brand-95);
}

.camp-q-kind {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  background: var(--cs-color-brand-90);
  color: var(--aia-navy);
}

.camp-q-what {
  flex: 1;
  min-width: 0;
}

.camp-q-what h3 {
  margin: 0.15rem 0 0.15rem;
  font-size: 1rem;
}

.camp-q-what p {
  margin: 0.2rem 0 0;
}

.camp-q-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.camp-q-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.camp-choice-chip {
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--cs-color-neutral-80);
  /* A pill on one line, soft corners when a long one wraps. */
  border-radius: 0.75rem;
  font-size: 0.8rem;
}

.camp-choice-chip em {
  margin-left: 0.2rem;
  font-style: normal;
  font-weight: 700;
  color: var(--cs-color-success-30);
}

.camp-q-when {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--aia-navy);
}

.camp-q-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
}

.camp-q-move {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 8px;
  background: var(--cs-color-surface-default);
  color: var(--aia-navy);
  cursor: pointer;
}

.camp-q-move:hover:not(:disabled) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

.camp-q-move:disabled {
  opacity: 0.35;
  cursor: default;
}

.camp-q-move cs-icon {
  font-size: 1.1rem;
}

.camp-q-dialog {
  --cs-dialog-width: 44rem;
}

.camp-kinds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.camp-kind {
  display: block;
  width: 100%;
  cursor: pointer;
}

.camp-kind input {
  position: absolute;
  opacity: 0;
}

.camp-kind span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.3rem;
  border: 1.5px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.camp-kind span cs-icon {
  font-size: 1.35rem;
  color: var(--aia-navy);
}

.camp-kind input:checked + span {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
  box-shadow: inset 0 0 0 1px var(--aia-navy);
}

.camp-kind input:focus-visible + span {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.camp-seg {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
  border: 1px solid var(--cs-color-neutral-90);
}

.camp-seg label {
  cursor: pointer;
}

.camp-seg input {
  position: absolute;
  opacity: 0;
}

.camp-seg span {
  display: block;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}

.camp-seg input:checked + span {
  background: var(--aia-navy);
  color: white;
}

.camp-seg input:focus-visible + span {
  outline: 2px solid var(--cs-color-focus);
}

.camp-seg-small span {
  font-size: 0.8rem;
}

.camp-check-pad {
  margin-top: 1.6rem;
}

.camp-choices-edit {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  /* A fieldset won't shrink below its contents without this, so on a
     phone the choices ran off the dialog's edge. */
  min-width: 0;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
}

.camp-choices-edit legend {
  padding: 0 0.3rem;
  font-weight: 700;
}

.camp-choice-head,
.camp-choice-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 7rem minmax(0, 1.4fr);
  gap: 0.5rem;
}

.camp-choice-head span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cs-color-text-quiet);
}

.camp-choices-edit p {
  margin: 0.25rem 0;
}

.camp-when {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--cs-color-brand-95);
  font-weight: 600;
}

.camp-when > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--aia-navy);
}

/* Waivers, for staff (AIASCRC-148). */
.camp-field > .quiet.small {
  font-weight: 400;
}

.camp-waivers {
  display: grid;
  gap: 1.25rem;
}

.camp-waivers > p {
  margin: 0;
  max-width: 48rem;
}

.camp-waiver-camps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.camp-waiver-camps cs-icon {
  flex: none;
  color: var(--aia-navy);
}

.camp-waiver-words {
  max-height: 14rem;
}

.camp-waiver-older summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--aia-navy);
}

.camp-waiver-old {
  margin-top: 0.75rem;
}

.camp-waiver-old-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
}

.camp-waiver-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--cs-color-brand-95);
  font-size: 0.9rem;
}

.camp-waiver-note cs-icon {
  flex: none;
  color: var(--aia-navy);
}

.camp-roster-unsigned {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.65rem 1.25rem;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-20);
  font-size: 0.9rem;
}

.camp-roster-unsigned cs-icon {
  flex: none;
  color: var(--cs-color-warning-40);
}

.camp-waiver-signed,
.camp-waiver-unsigned {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.camp-waiver-signed cs-icon {
  color: var(--cs-color-success-40);
}

.camp-waiver-unsigned {
  color: var(--cs-color-warning-30);
}

/* Ask once, keep it on the profile, and what it shares an answer with. */
.camp-keep {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: var(--cs-color-success-95);
}

.camp-keep p {
  margin: 0;
}

.camp-keep-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 600;
}

.camp-keep-share select {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  min-height: var(--cs-form-control-height, 2.5rem);
  padding: 0 0.65rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 6px;
  background: var(--cs-color-surface-default);
  font: inherit;
  font-weight: 400;
}

/* Setup. */
.camp-setup .band-body > .camp-two,
.camp-setup .band-body > .camp-three {
  margin: 0;
}

.camp-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.camp-icon-pick {
  cursor: pointer;
}

.camp-icon-pick input {
  position: absolute;
  opacity: 0;
}

.camp-icon-pick span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1.5px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  color: var(--aia-navy);
  font-size: 1.3rem;
}

.camp-icon-pick input:checked + span {
  background: var(--aia-navy);
  border-color: var(--aia-navy);
  color: white;
}

.camp-icon-pick input:focus-visible + span {
  outline: 2px solid var(--cs-color-focus);
  outline-offset: 2px;
}

.camp-setup-save {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0;
  background: linear-gradient(to top, var(--cs-color-surface-default) 70%, transparent);
}

/* Families. */
.camp-filter {
  min-height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 8px;
  font: inherit;
  min-width: 14rem;
}

.camp-fam-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.camp-fam-staff-grid p {
  margin: 0.1rem 0;
}

.camp-fam-staff-kid {
  display: flex;
  gap: 0.75rem;
}

.camp-fam-staff-spots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.camp-fam-staff-spots > div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.camp-fam-staff-spots strong {
  min-width: 7rem;
}

.camp-answers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
}

.camp-answers dt {
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
}

.camp-answers dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .camp-builder {
    grid-template-columns: minmax(0, 1fr);
  }

  .camp-builder-preview {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .camps-head-actions {
    margin-left: 0;
    width: 100%;
  }

  .camps-head-actions > * {
    flex: 1;
  }

  .camps-card-body {
    flex-direction: column;
    align-items: stretch;
  }

  .camp-kinds {
    grid-template-columns: repeat(2, 1fr);
  }

  .camp-choice-head {
    display: none;
  }

  .camp-choice-row {
    grid-template-columns: minmax(0, 1fr) 6rem;
  }

  .camp-choice-row > :last-child {
    grid-column: 1 / -1;
  }

  .camp-q-item {
    flex-wrap: wrap;
  }

  .camp-q-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .camp-big-nums dd {
    font-size: 1.4rem;
  }
}

@media print {
  .camp-tabs,
  .camp-roster-weeks,
  .camp-columns,
  .band-actions,
  .camp-staff .back-link,
  .camp-status-row,
  .camp-big-nums,
  .camp-staff-actions,
  .row-actions {
    display: none !important;
  }

  .camp-card-band {
    border: 0;
  }
}

/* /dev/parts: the camp parts, in a column. */
.parts-camps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--cs-color-surface-lowered);
}

.parts-camps .camp-cards {
  max-width: 19rem;
}

.parts-promos .camp-promo-box,
.parts-promos .camp-scholar-box,
.parts-promos .camp-scholar-done {
  max-width: 26rem;
}

/* Files on a record (AIASCRC-95; Nov 20, 2026): a card with a header
 * band, a row a file, and a gray foot to drop or pick files into, as the
 * room cards are. Taken off ones fold under it. */
.files {
  display: grid;
  gap: 0.75rem;
}

.files-card {
  overflow: hidden;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-sm, 4px);
}

.files-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--cs-color-brand-90);
  border-bottom: 1px solid var(--cs-color-brand-80);
}

.files-head h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1rem;
  color: var(--cs-color-brand-20);
}

.files-empty {
  margin: 0;
  padding: 0.75rem 0.8rem;
}

.files-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--cs-color-neutral-90);
}

.files-list > .file-row:first-child {
  border-top: 0;
}

.files-list > .file-row:nth-child(even) {
  background: var(--cs-color-neutral-98, var(--cs-color-neutral-95));
}

.file-icon {
  font-size: 1.5rem;
  color: var(--cs-color-brand-40);
}

.file-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.file-main .record-meta {
  flex-basis: 100%;
}

.file-note {
  flex-basis: 100%;
  font-size: 0.875rem;
}

.file-off .file-name,
.file-off .file-icon {
  color: var(--cs-color-text-quiet);
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.4rem;
}

.files-foot {
  padding: 0.75rem 0.8rem;
  background: var(--cs-color-neutral-95);
  border-top: 1px solid var(--cs-color-neutral-90);
}

.files-add {
  display: grid;
  gap: 0.6rem;
}

/* The drop area is a label for the file box, so a click anywhere in it
 * picks files, and dropping onto it adds them (app.js). */
.files-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--cs-color-surface-default);
  border: 2px dashed var(--cs-color-brand-70, var(--cs-color-brand-80));
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
}

.files-drop > cs-icon {
  flex: none;
  font-size: 1.75rem;
  color: var(--cs-color-brand-40);
}

.files-drop-words {
  display: grid;
  gap: 0.15rem;
}

.files-pick {
  color: var(--cs-color-brand-40);
  text-decoration: underline;
}

.files-drop:hover,
.files-drop:focus-within,
.files-drop.files-dragging {
  background: var(--cs-color-brand-95, var(--cs-color-brand-90));
  border-color: var(--cs-color-brand-40);
}

/* The real file box stays in the label, out of sight but reachable. */
.files-input,
.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.files-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.6rem;
}

.files-chosen {
  margin: 0;
}

/* Where Files share a tab (a reservation's Details, a contact's page),
 * adding folds behind Add files. */
.files-add-fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cs-color-brand-40);
  font-weight: 600;
  cursor: pointer;
}

.files-add-fold[open] > summary {
  margin-bottom: 0.6rem;
}

.details-files {
  margin-bottom: 1rem;
}

.files-off > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--cs-color-text-quiet);
}

.files-off .files-list {
  margin-top: 0.5rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-sm, 4px);
}

.timeline-file {
  margin: 0.25rem 0 0;
}

.timeline-file a,
.cert-file {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cert-file {
  font-size: 0.875rem;
  font-weight: 400;
}

.cert-file-pick {
  display: grid;
  gap: 0.25rem;
}

.cert-file-label {
  font-weight: 600;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .file-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .file-actions {
    grid-column: 2;
    justify-content: start;
  }

  .files-add-row {
    grid-template-columns: 1fr;
  }
}

/* Staff photos (AIASCRC-67): a face in place of initials. */
cs-avatar[image]::part(base),
cs-avatar[image] {
  background-color: var(--cs-color-neutral-90);
}

.person-face {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.person-face cs-avatar {
  --size: 1.75rem;
  color: var(--cs-color-surface-default);
  background-color: var(--cs-color-brand-40);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.person-face cs-avatar:not(:defined) {
  width: 1.75rem;
  height: 1.75rem;
}

.photo-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 0.5rem 1rem;
}

.photo-form-face cs-avatar {
  --size: 5rem;
  color: var(--cs-color-surface-default);
  background-color: var(--cs-color-brand-40);
  border-radius: 999px;
  font-size: 1.75rem;
  font-weight: 700;
}

.photo-form-face cs-avatar:not(:defined) {
  width: 5rem;
  height: 5rem;
}

.photo-form-body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.photo-form-body p {
  margin: 0;
}

.photo-form-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Choose a photo is a label for the file box, drawn as an outlined
 * button, since Cornerstone's button can't open a file picker. */
.photo-pick-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  color: var(--cs-color-brand-40);
  font-weight: 600;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-40);
  border-radius: var(--cs-border-radius-pill, 999px);
  cursor: pointer;
}

.photo-pick-button:hover,
.photo-pick-button:focus-within {
  color: var(--cs-color-brand-on-loud);
  background: var(--cs-color-brand-40);
}

.photo-form:has(.htmx-request) .photo-pick-button {
  opacity: 0.6;
}

/* In a person's header, the photo sits before their name, and the
 * buttons stay at the right. */
.person-head:has(> .photo-form) {
  justify-content: flex-start;
}

.person-head:has(> .photo-form) > .person-head-actions {
  margin-left: auto;
}

/* There it's just the face with two small links under it, so the name
 * stays beside it. */
.person-head > .photo-form {
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.person-head > .photo-form .photo-form-face cs-avatar {
  --size: 4.5rem;
}

.person-head > .photo-form .photo-form-body > p.quiet {
  display: none;
}

.person-head > .photo-form .photo-form-pick {
  flex-direction: column;
  gap: 0.1rem;
}

.person-head > .photo-form .photo-pick-button {
  padding: 0.1rem 0.4rem;
  font-size: 0.8rem;
  border-color: transparent;
}

.person-head > .photo-form .photo-pick-button > cs-icon {
  display: none;
}

.person-head > .photo-form .photo-form-pick cs-button {
  font-size: 0.8rem;
}

.person-head:has(> .photo-form) > .person-head-who {
  align-self: center;
}

.shift-dialog .photo-form {
  margin-top: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

html[data-density="compact"] .photo-form-face cs-avatar {
  --size: 4rem;
}

/* The crew's setup checklist (AIASCRC-129). Shifts > Setup: each area a
 * navy bar over a card, kinds of event down and items across, each cell a
 * count that saves as it changes; a gray foot adds an item. */
.setup-intro {
  max-width: 48rem;
}

.setup-area {
  margin-top: 1.25rem;
}

.setup-area-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  font-size: 1.05rem;
  color: var(--cs-color-brand-on-loud, #fff);
  background: var(--cs-color-brand-40);
  border-radius: var(--radius-sm, 4px) var(--radius-sm, 4px) 0 0;
}

.setup-area-bar cs-icon {
  color: inherit;
}

.setup-card {
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm, 4px) var(--radius-sm, 4px);
  overflow: hidden;
}

.setup-card-problem {
  padding: 0.75rem 0.9rem 0;
}

.setup-empty {
  margin: 0;
  padding: 1rem 0.9rem;
  color: var(--cs-color-text-quiet);
}

/* As wide as its columns, so a count sits near its kind of event. */
.setup-grid {
  width: auto;
  min-width: min(100%, 36rem);
  border-collapse: collapse;
}

.setup-grid .setup-item-head,
.setup-grid tbody td {
  text-align: center;
}

.setup-item-menu {
  display: inline-flex;
}

.setup-item-menu-button {
  width: 1.75rem;
  height: 1.75rem;
}

.setup-grid th,
.setup-grid td {
  padding: 0.35rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--cs-color-surface-border);
}

.setup-grid thead th {
  background: var(--cs-color-brand-90);
  border-bottom-color: var(--cs-color-brand-80);
  font-size: 0.875rem;
  white-space: nowrap;
}

.setup-grid tbody tr:nth-child(even) {
  background: var(--cs-color-neutral-98, var(--cs-color-neutral-95));
}

.setup-grid tbody th {
  font-weight: 600;
  min-width: 12rem;
}

.setup-grid tbody td {
  min-width: 5.5rem;
}

.setup-uses {
  display: block;
  font-weight: 400;
}

.setup-none-row th {
  font-style: italic;
}

/* A cell: a tick (this kind starts with it) and its count, blank for the
 * item's usual (shown faint). Unticked, the count fades. */
.setup-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.setup-on {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--cs-color-brand-40);
  cursor: pointer;
}

.setup-cell:not(.setup-cell-on) .setup-count {
  opacity: 0.5;
}

.setup-count::placeholder {
  color: var(--cs-color-text-quiet);
}

.setup-usual-row {
  background: var(--cs-color-brand-95) !important;
}

.setup-usual-row th,
.setup-usual-row td {
  border-bottom: 2px solid var(--cs-color-brand-80);
}

.setup-item-name {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.setup-item-name .link-button {
  font-weight: 600;
}

/* A count reads as a number until it's pointed at, as a meal's does: no
 * up and down arrows, which clip it. */
.setup-count,
.setup-pick-count {
  width: 3.5rem;
  padding: 0.25rem 0.4rem;
  font: inherit;
  text-align: center;
  color: var(--cs-color-text-default);
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--radius-sm, 4px);
  appearance: textfield;
  -moz-appearance: textfield;
}

.setup-count::-webkit-inner-spin-button,
.setup-count::-webkit-outer-spin-button,
.setup-pick-count::-webkit-inner-spin-button,
.setup-pick-count::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.setup-count:hover,
.setup-count:focus,
.setup-pick-count:hover,
.setup-pick-count:focus {
  border-color: var(--cs-color-brand-40);
}

.setup-others {
  border-top: 1px solid var(--cs-color-surface-border);
}

.setup-others summary {
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  color: var(--cs-color-brand-30, var(--cs-color-brand-40));
}

.setup-card-foot {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--cs-color-neutral-95);
  border-top: 1px solid var(--cs-color-surface-border);
}

.setup-add {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
}

.setup-add cs-input {
  flex: 0 1 18rem;
}

.setup-off {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  margin: 0;
}

.setup-off-item {
  display: inline-flex;
  gap: 0.35rem;
}

/* A booking's setup: each item a tick, and its count beside it once
 * ticked. */
.setup-line {
  margin: 0;
  padding: 0.5rem 0.75rem 0.65rem;
  border: 1px solid var(--cs-color-brand-80);
  border-radius: var(--radius-sm, 4px);
}

.setup-line legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.3rem;
  font-weight: 600;
}

.setup-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.setup-pick {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.4rem;
}

.setup-pick-tick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  cursor: pointer;
}

.setup-pick-tick input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--cs-color-brand-40);
}

.setup-pick:has(.setup-pick-tick input:not(:checked)) .setup-pick-count {
  opacity: 0.45;
}

.setup-pick-was {
  flex-basis: 100%;
}

/* The Manage booking dialog's folds (crew notes, setup): their forms sit
 * in from the fold's edge, as its title does. */
details.manage-notes > form {
  padding: 0 1rem 1rem;
}

.setup-dialog form > .setup-line + .setup-line {
  margin-top: 0.25rem;
}

.my-shift-setup {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.my-shift-setup cs-icon,
.shift-event-setup cs-icon {
  color: var(--cs-color-brand-40);
}

/* On its own line under the event, like its notes, so a long line of
 * spaces never pushes it off the edge. */
.shift-event-setup-button {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

@media (max-width: 640px) {
  .setup-grid tbody th {
    min-width: 6rem;
  }

  .setup-grid thead th {
    white-space: normal;
  }

  .setup-item-name {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.3rem;
    line-height: 1.25;
  }

  .setup-item-name .link-button {
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .setup-count {
    width: 2.6rem;
  }

  .setup-cell {
    flex-direction: column;
    gap: 0.2rem;
  }

  .setup-grid th,
  .setup-grid td {
    padding: 0.3rem 0.4rem;
  }

  .setup-grid tbody td {
    min-width: 0;
  }
}

/* Messages (AIASCRC-135), laid out as a phone's messaging app (David, Nov
 * 25, 2026: "it just doesn't feel like a normal messaging app yet"). On a
 * computer, one panel that fits the window: the list down the side and the
 * open conversation beside it, so only the messages scroll. On a phone,
 * the list, or the conversation on the whole screen (the top bar and the
 * bottom menu step aside), its head with a back arrow, the box to write in
 * at the foot, over the keyboard (app.js sizes it to what's visible). */
.topbar-messages {
  position: relative;
  text-decoration: none;
}

.messages-badge {
  position: absolute;
  top: 0.05rem;
  right: 0.15rem;
}

.messages-badge:empty {
  display: none;
}

.msg-count {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  border-radius: 999px;
}

.messages-split {
  display: grid;
  grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
  height: var(--messages-height, max(32rem, calc(100dvh - 12rem)));
  overflow: hidden;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 12px;
}

.messages-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--cs-color-neutral-90);
}

.messages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  background: var(--cs-color-brand-95);
  border-bottom: 1px solid var(--cs-color-brand-90);
}

.messages-head h1 {
  margin: 0;
  font-size: 1.5rem;
}

.messages-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* A round icon button: the menus' More, a conversation's back arrow. */
.msg-icon-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
  color: var(--cs-color-brand-40);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.msg-icon-btn:hover,
.msg-icon-btn:focus-visible {
  background: var(--cs-color-brand-90);
}

.msg-new-btn {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  height: 2.5rem;
  padding: 0 1rem 0 0.85rem;
  font: inherit;
  font-weight: 600;
  color: var(--cs-color-surface-default);
  cursor: pointer;
  background: var(--cs-color-brand-40);
  border: 0;
  border-radius: 999px;
}

.msg-new-btn cs-icon {
  font-size: 1.25rem;
}

.msg-new-btn:hover,
.msg-new-btn:focus-visible {
  background: var(--cs-color-brand-30);
}

.messages-watching {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  background: var(--cs-color-warning-95);
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.messages-watching cs-icon {
  color: var(--cs-color-warning-30);
}

.messages-watching a {
  margin-left: auto;
  font-weight: 600;
}

/* Until notices are on for this device: a slim ask over the list. */
.push-prompt {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  background: var(--cs-color-brand-95);
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.push-prompt[hidden] {
  display: none;
}

.push-prompt > cs-icon {
  flex: none;
  font-size: 1.35rem;
  color: var(--cs-color-brand-40);
}

.push-prompt p {
  flex: 1;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.msg-prompt-btn {
  flex: none;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cs-color-surface-default);
  cursor: pointer;
  background: var(--cs-color-brand-40);
  border: 0;
  border-radius: 999px;
}

.msg-prompt-btn[hidden] {
  display: none;
}

.msg-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.msg-list > li,
.msg-thread > li,
.msg-people-list > li {
  margin: 0;
}

.msg-list > li + li {
  border-top: 1px solid var(--cs-color-neutral-95);
}

.msg-list-none {
  padding: 1.25rem 1rem;
}

.msg-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 1rem;
  color: inherit;
  text-decoration: none;
}

.msg-row:hover {
  background: var(--cs-color-brand-95);
}

/* Swipe a conversation left (app.js) for Archive behind it. The
   row is solid, so they show only as it moves. */
.msg-swipe {
  position: relative;
  overflow: hidden;
}

.msg-swipe .msg-row {
  position: relative;
  background: var(--cs-color-surface-default);
  transition: transform 200ms ease;
  touch-action: pan-y;
}

.msg-swipe .msg-row:hover {
  background: var(--cs-color-brand-95);
}

.msg-swipe .msg-row[aria-current] {
  background: var(--cs-color-brand-90);
}

.msg-swipe.swiping .msg-row {
  transition: none;
}

.msg-swipe.open .msg-row {
  transform: translateX(-6rem);
}

.msg-swipe-actions {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
}

.msg-swipe-act {
  display: grid;
  gap: 0.2rem;
  place-content: center;
  place-items: center;
  align-self: stretch;
  width: 6rem;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-surface-default);
  cursor: pointer;
  border: 0;
}

.msg-swipe-act cs-icon {
  font-size: 1.4rem;
}

.msg-swipe-archive {
  background: var(--cs-color-brand-40);
}

@media (prefers-reduced-motion: reduce) {
  .msg-swipe .msg-row {
    transition: none;
  }
}

.msg-row[aria-current] {
  background: var(--cs-color-brand-90);
}

.msg-row .msg-face {
  width: 3rem;
  height: 3rem;
}

.msg-row .msg-face cs-avatar {
  --size: 3rem;
}

.msg-row-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.msg-row-top,
.msg-row-bottom {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.msg-row-name,
.msg-row-last {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-row-name {
  font-weight: 600;
}

.msg-row-when {
  flex: none;
  font-size: 0.78rem;
  color: var(--cs-color-text-quiet);
  white-space: nowrap;
}

.msg-row-last {
  flex: 1;
  font-size: 0.88rem;
  color: var(--cs-color-text-quiet);
}

.msg-unread .msg-row-name,
.msg-unread .msg-row-last {
  font-weight: 700;
  color: var(--cs-color-text-normal);
}

.msg-unread .msg-row-when {
  font-weight: 700;
  color: var(--cs-color-brand-40);
}

.msg-watched-icon {
  font-size: 1rem;
  vertical-align: -0.2rem;
}

.msg-face {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
}

.msg-face cs-avatar {
  --size: 2.5rem;
}

.msg-face-icon {
  font-size: 1.35rem;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-90);
  border-radius: 999px;
}

.msg-face-small {
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
}

.msg-face-small cs-avatar {
  --size: 2rem;
}

/* A group: two of the others, one over the other, the front one ringed
   in the page's color so the two read apart (as a phone draws a group). */
.msg-face-pair {
  position: relative;
}

/* Each face is 70% of the one it stands in for. */
.msg-face-pair cs-avatar {
  position: absolute;
  --size: 1.75rem;
}

.msg-row .msg-face-pair cs-avatar {
  --size: 2.1rem;
}

/* Beats the head's own face size, which comes later. */
.thread-head .msg-face.msg-face-pair cs-avatar {
  --size: 1.65rem;
}

.msg-face-pair cs-avatar:first-child {
  top: 0;
  left: 0;
}

.msg-face-pair cs-avatar:last-child {
  right: 0;
  bottom: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--cs-color-surface-default);
}

.messages-main {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--cs-color-surface-default);
}

.thread-head {
  display: flex;
  flex: none;
  gap: 0.65rem;
  align-items: center;
  min-height: 3.75rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  background: var(--cs-color-brand-95);
  border-bottom: 1px solid var(--cs-color-brand-90);
}

.thread-back {
  display: none;
}

.thread-head .msg-face {
  width: 2.35rem;
  height: 2.35rem;
}

.thread-head .msg-face cs-avatar {
  --size: 2.35rem;
}

.thread-title {
  flex: 1;
  min-width: 0;
}

.thread-title h2 {
  margin: 0;
  overflow: hidden;
  font-size: 1.05rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.thread-people {
  margin: 0;
  overflow: hidden;
  font-size: 0.78rem;
  color: var(--cs-color-text-quiet);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.thread-watched {
  display: flex;
  flex: none;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: var(--cs-color-text-normal);
  background: var(--cs-color-warning-95);
  border-bottom: 1px solid var(--cs-color-neutral-90);
}

.thread-watched cs-icon {
  flex: none;
  margin-top: 0.05rem;
  color: var(--cs-color-warning-30);
}

/* The messages: the only thing that scrolls. */
.msg-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0.5rem 0.85rem 0.85rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

/* The time over a run, as a phone's messages app has it. */
.msg-day {
  align-self: center;
  margin: 1rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.msg {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  max-width: min(80%, 36rem);
  margin-top: 0.6rem;
}

.msg-follows {
  margin-top: 0.15rem;
}

.msg-mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.msg-face-gap {
  flex: none;
  width: 2rem;
}

.msg-in-group .msg-face-small {
  margin-top: 1.1rem;
}

.msg-bubble-wrap {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.msg-mine .msg-bubble-wrap {
  justify-items: end;
}

.msg-who {
  padding: 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.msg-bubble {
  padding: 0.5rem 0.85rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: default;
  background: var(--cs-color-neutral-95);
  border-radius: 1.15rem;
}

.msg-bubble p {
  margin: 0;
  /* The base style's break-word only breaks a long address once it has
     already spilled; anywhere lets the bubble shrink to fit, too. */
  overflow-wrap: anywhere;
}

.msg-mine .msg-bubble {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
}

.msg-mine .msg-bubble a {
  color: inherit;
}

/* A web address typed in a message is a link: underlined, the brand's
   color on a gray bubble, white on one's own. */
.msg-bubble a.msg-link {
  color: var(--cs-color-brand-40);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.msg-mine .msg-bubble a.msg-link {
  color: inherit;
}

/* One person's run of messages, its bubbles' corners joined. */
.msg:not(.msg-mine).msg-follows .msg-bubble {
  border-top-left-radius: 0.35rem;
}

.msg:not(.msg-mine):has(+ .msg-follows) .msg-bubble {
  border-bottom-left-radius: 0.35rem;
}

.msg-mine.msg-follows .msg-bubble {
  border-top-right-radius: 0.35rem;
}

.msg-mine:has(+ .msg-follows) .msg-bubble {
  border-bottom-right-radius: 0.35rem;
}

.msg-notice .msg-bubble {
  background: var(--cs-color-brand-95);
  border: 1px solid var(--cs-color-brand-90);
}

.msg-open {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* A message's own time, shown when it's tapped (app.js). */
.msg-time {
  display: none;
  padding: 0 0.85rem;
  font-size: 0.7rem;
  color: var(--cs-color-text-quiet);
}

.msg-show-time .msg-time {
  display: block;
}

/* The box to write in, and Send, round, faint until something's typed. */
.msg-compose {
  display: flex;
  flex: none;
  gap: 0.5rem;
  align-items: flex-end;
  padding: 0.55rem 0.75rem;
  background: var(--cs-color-surface-default);
  border-top: 1px solid var(--cs-color-neutral-90);
}

.msg-compose textarea {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  max-height: 9rem;
  padding: 0.5rem 1rem;
  /* 16px at least, or an iPhone zooms the page in when it's tapped. */
  font: inherit;
  font-size: max(16px, 1rem);
  line-height: 1.35;
  resize: none;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 1.25rem;
}

.msg-compose textarea:focus {
  border-color: var(--cs-color-brand-40);
  outline: none;
}

.msg-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.35rem;
  color: var(--cs-color-surface-default);
  cursor: pointer;
  background: var(--cs-color-brand-40);
  border: 0;
  border-radius: 999px;
  transition: opacity 120ms;
}

.msg-compose:has(textarea:placeholder-shown) .msg-send {
  pointer-events: none;
  opacity: 0.35;
}

.msg-problem {
  flex: none;
  padding: 0.5rem 0.75rem 0;
}

.msg-closed {
  flex: none;
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--cs-color-text-quiet);
  background: var(--cs-color-neutral-95);
  border-top: 1px solid var(--cs-color-neutral-90);
}

.messages-empty {
  display: grid;
  flex: 1;
  gap: 0.5rem;
  place-content: center;
  place-items: center;
  padding: 2rem;
  color: var(--cs-color-text-quiet);
  text-align: center;
}

.messages-empty cs-icon {
  font-size: 2.75rem;
  color: var(--cs-color-brand-80);
}

.messages-empty p {
  margin: 0;
}

/* Notices on this device: the menu's dialog. */
.push-dialog {
  --width: min(30rem, calc(100vw - 2rem));
}

.push-card {
  display: grid;
  gap: 0.4rem;
}

.push-dialog .push-card-head {
  display: none;
}

.push-card p {
  margin: 0;
}

.push-card-head {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.push-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.push-card-actions:not(:has(cs-button:not([hidden]))) {
  display: none;
}

/* New message and Add people: To: with who's picked, who's working
 * today, a team folded away, the people, and the message. */
.msg-new {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg-to {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
}

.msg-to:focus-within {
  border-color: var(--cs-color-brand-40);
}

.msg-to-label {
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

.msg-to-chips {
  display: contents;
}

.msg-to-chip {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  padding: 0.2rem 0.35rem 0.2rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cs-color-brand-30);
  cursor: pointer;
  background: var(--cs-color-brand-90);
  border: 0;
  border-radius: 999px;
}

.msg-to-chip cs-icon {
  font-size: 1rem;
}

/* A person's chip starts with their photo or initials. */
.msg-to-chip:has(cs-avatar) {
  padding-left: 0.2rem;
}

.msg-to-chip cs-avatar {
  --size: 1.4rem;
  margin-right: 0.15rem;
  /* A ring, so initials read as a face on the chip's own gray. */
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px var(--cs-color-surface-default);
}

.msg-to-find {
  flex: 1;
  min-width: 8rem;
  padding: 0.3rem 0;
  font: inherit;
  font-size: max(16px, 1rem);
  background: transparent;
  border: 0;
  outline: none;
}

.msg-crews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.msg-crew {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--cs-color-brand-40);
  cursor: pointer;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 999px;
}

.msg-crew:hover {
  background: var(--cs-color-brand-95);
}

.msg-teams {
  margin: 0;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
}

.msg-teams > summary {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  color: var(--cs-color-brand-40);
  list-style: none;
  cursor: pointer;
}

.msg-teams > summary::-webkit-details-marker {
  display: none;
}

/* Cornerstone gives every fold its own arrow; this one has its own. */
.msg-teams > summary::after {
  display: none;
  content: none;
}

.msg-teams-picked {
  margin-left: auto;
  overflow: hidden;
  color: var(--cs-color-text-normal);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-teams-arrow {
  flex: none;
  margin-left: auto;
  transition: rotate 150ms;
}

.msg-teams-picked:not(:empty) + .msg-teams-arrow {
  margin-left: 0;
}

.msg-teams[open] .msg-teams-arrow {
  rotate: 180deg;
}

.msg-team-picks {
  display: grid;
  max-height: 14rem;
  overflow-y: auto;
  border-top: 1px solid var(--cs-color-neutral-95);
}

.msg-team-pick {
  position: relative;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.msg-team-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.msg-team-pick:hover {
  background: var(--cs-color-brand-95);
}

.msg-team-pick:has(input:checked) {
  background: var(--cs-color-brand-90);
}

.msg-team-pick:has(input:focus-visible),
.msg-person:has(input:focus-visible) {
  outline: 2px solid var(--cs-color-brand-40);
  outline-offset: -2px;
}

.msg-team-pick .quiet {
  margin-left: auto;
}

.msg-pick-name {
  font-weight: 600;
}

.msg-people-list {
  max-height: 18rem;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 10px;
}

.msg-people-list > li + li {
  border-top: 1px solid var(--cs-color-neutral-95);
}

.msg-people-none {
  margin: 0;
  padding: 0.75rem 0.8rem;
}

/* New message's people fold away as the teams do (David, Nov 30, 2026), the
   list joined under the fold's bar. */
.msg-people-fold .msg-people-list {
  border: 0;
  border-top: 1px solid var(--cs-color-neutral-95);
  border-radius: 0;
}

/* What Messages is for: the first time, and from its menu. */
.msg-rules-dialog {
  --width: min(34rem, calc(100vw - 2rem));
}

/* The first time, it's answered with I understand, not closed. */
.msg-rules-dialog[data-must-answer]::part(close-button) {
  display: none;
}

.msg-rules {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.msg-rules li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.msg-rules cs-icon {
  padding: 0.45rem;
  font-size: 1.35rem;
  color: var(--cs-color-brand-40);
  background: var(--cs-color-brand-95);
  border-radius: 50%;
}

.msg-rules p {
  margin: 0.15rem 0 0;
}

.msg-keep-years {
  max-width: 14rem;
}

.msg-person {
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.msg-person:hover {
  background: var(--cs-color-brand-95);
}

.msg-person cs-avatar {
  --size: 2.25rem;
  flex: none;
}

.msg-person input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.msg-person-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.msg-person-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  align-items: center;
}

.msg-tick {
  display: grid;
  flex: none;
  margin-left: auto;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1rem;
  color: transparent;
  border: 2px solid var(--cs-color-neutral-80);
  border-radius: 999px;
}

.msg-person:has(input:checked) .msg-tick {
  color: var(--cs-color-surface-default);
  background: var(--cs-color-brand-40);
  border-color: var(--cs-color-brand-40);
}

.msg-minor {
  justify-self: start;
  padding: 0 0.4rem;
  color: var(--cs-color-warning-30);
  background: var(--cs-color-warning-95);
  border-radius: var(--radius-sm, 4px);
}

.msg-new-note {
  margin: 0;
}

/* The group's name and the message stay at the foot as the list scrolls. */
.msg-new-foot {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  padding: 0.6rem 0 0.25rem;
  background: var(--cs-color-surface-default);
  box-shadow: 0 -1px 0 var(--cs-color-neutral-90);
}

.msg-group-name[hidden] {
  display: none;
}

.msg-group-name input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: max(16px, 1rem);
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
}

.msg-new-compose {
  padding: 0;
  border: 0;
}

@media (max-width: 48rem) {
  /* The list fills the screen, its rows edge to edge. */
  .messages-split {
    display: block;
    height: auto;
    margin: -1rem;
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .messages-side {
    border: 0;
  }

  .messages-head {
    padding: 0.85rem 0.75rem 0.85rem 1rem;
  }

  .messages-page:not(.messages-open) .messages-main {
    display: none;
  }

  .msg-list {
    overflow: visible;
  }

  .messages-open .messages-side {
    display: none;
  }

  /* A conversation takes the whole screen, sized to what's visible over
   * the keyboard (app.js sets --vv-top and --vv-height). */
  body:has(.messages-open) .app-header,
  body:has(.messages-open) .app-header-space,
  body:has(.messages-open) .bottom-nav {
    display: none;
  }

  body:has(.messages-open) {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .messages-open .thread {
    position: fixed;
    top: var(--vv-top, 0px);
    right: 0;
    left: 0;
    z-index: 40;
    height: var(--vv-height, 100dvh);
  }

  .thread-head {
    gap: 0.5rem;
    padding: calc(0.4rem + env(safe-area-inset-top)) 0.5rem 0.4rem 0.35rem;
  }

  .thread-back {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    color: var(--cs-color-brand-40);
    text-decoration: none;
    border-radius: 999px;
  }

  .thread-back:active {
    background: var(--cs-color-brand-90);
  }

  .msg {
    max-width: 85%;
  }

  .msg-compose {
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
  }

  /* New message takes the screen, as a phone's does. */
  .msg-new-dialog {
    --width: 100vw;
  }

  .msg-new-dialog::part(dialog) {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .msg-new-dialog .msg-people-list {
    max-height: none;
  }

  .msg-new-foot {
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom));
  }
}

/* The parts page's conversation, at a fixed size. */
.parts-thread {
  max-width: 40rem;
  margin-top: 1rem;
}

.parts-thread .thread {
  height: 32rem;
  overflow: hidden;
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: 12px;
}

/* Notes for the crew as bookings are made (AIASCRC-89): a fold on Bulk
 * Book and the calendar's Book a space, its two notes side by side where
 * there's room. */
.crew-notes {
  margin: 0.75rem 0;
  padding: 0.5rem 0.85rem;
  background: var(--cs-color-surface-default);
  border: 1px solid var(--cs-color-neutral-90);
  border-radius: var(--radius-md, 8px);
}

.crew-notes > summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
  cursor: pointer;
}

.crew-notes > summary > * {
  flex: none;
}

.crew-notes > summary .quiet {
  font-weight: 400;
}

.crew-notes-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.6rem;
}

/* Beside a stay's price book: its year's book is ready now. */
.book-ready {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  color: var(--cs-color-information-40, var(--cs-color-brand-40));
}

.book-ready cs-icon {
  flex: none;
  font-size: 1.1em;
}

/* The app's own confirm (app.js): a small dialog with the question, the
 * button's word to go ahead, and Cancel. */
.confirm-box {
  --width: min(28rem, calc(100vw - 2rem));
}

.confirm-box p {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

/* Suggestions and bugs: the open ones follow Flightdeck, with a check now. */
.feedback-check {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 0 0 1rem;
}

/* Settings > Salesforce import's Start fresh (stage only): the tick on
   its own line, bold, so it reads as the choice it is. */
.import-fresh label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.import-fresh input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.import-fresh p {
  margin: 0.25rem 0 0;
}

/* The Lines tab's Change chartfield says what the ticked lines are on now
   (David, Dec 1, 2026), above the picker. */
.lines-now {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.75rem;
  background: var(--cs-color-neutral-95);
  border-radius: var(--cs-border-radius-m, 0.5rem);
}

.lines-now-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-color-text-quiet);
}

/* Suggestions and bugs: who sent it and the address they signed in with
   (David, Dec 1, 2026), which can be long. */
.feedback-from {
  overflow-wrap: anywhere;
}

.feedback-post header .feedback-switched {
  flex-basis: 100%;
}

/* Suggestions and bugs: screenshots (David, Dec 1, 2026), picked on the
   form and shown as pictures on its page, each opening full size. */
.feedback-shots-pick input[type="file"] {
  display: block;
  margin: 0.35rem 0;
}

.feedback-shots-pick p {
  margin: 0;
}

.feedback-shots-picked {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
}

.feedback-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.feedback-shots a {
  display: block;
  line-height: 0;
  border: 1px solid var(--cs-color-surface-border);
  border-radius: var(--cs-border-radius-m, 0.5rem);
  overflow: hidden;
}

.feedback-shots img {
  display: block;
  width: auto;
  max-width: min(18rem, 100%);
  max-height: 12rem;
  object-fit: contain;
  background: var(--cs-color-neutral-95);
}

/* Camp families' information kept 24 months (AIASCRC-139): the note on
   their pages, removing a child's on the staff page, and the record of
   what was removed. */
.camp-privacy {
  max-width: 44rem;
  margin: 2rem auto 0;
  text-align: center;
}

.camp-kid-remove {
  margin-top: 0.5rem;
}

.camp-removals {
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-removals li + li {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--cs-color-surface-border);
}

/* A camp family signed in with Cru Okta signs out from the camp pages'
   menu (AIASCRC-143). */
.camp-sign-out {
  display: inline;
  margin: 0;
}

/* Concessions' first-come shifts (AIASCRC-17): Let it go on My shifts, and
   the setting's hours box. */
.my-let-go {
  margin: 0.4rem 0 0;
}

/* Wide enough that its label stays on one line. */
.shift-drop-hours {
  max-width: 22rem;
  margin-top: 0.5rem;
}

/* A schedule's name on a phone scales with the screen, so one long word
   ("Concessions") and the switch's arrow fit without breaking the word. */
@media (max-width: 640px) {
  .shifts-page .browse-head h1 {
    font-size: clamp(1.5rem, 8.5vw, 2.25rem);
  }
}

/* Group into a series (David, Dec 1, 2026): the account's reservations to
   tick scroll inside the dialog, short enough on a laptop that its buttons
   stay in view; a month's take-off sits by its balance. */
.series-picks-wrap {
  max-height: min(22rem, 40vh);
  overflow-y: auto;
}

.series-take-off {
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Camp prices (Dec 2, 2026): what came off each week, under it on the
   review step; the week a one-week question is for; and the builder's
   Takes discounts tick, a fourth column beside each choice. */
.camp-receipt-kid li {
  flex-wrap: wrap;
  row-gap: 0;
}

.camp-receipt-kid li > .camp-receipt-why {
  flex-basis: 100%;
  margin-top: -0.1rem;
  font-size: 0.8rem;
  font-variant-numeric: normal;
  white-space: normal;
  color: var(--cs-color-success-30);
}

.camp-q-week {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.4rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--cs-color-brand-90);
  color: var(--cs-color-brand-30);
  font-family: var(--cs-font-family-body);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.camp-q-week cs-icon {
  font-size: 0.9rem;
}

.camp-pill-week {
  background: var(--cs-color-brand-90);
  color: var(--cs-color-brand-30);
}

.camp-choice-chip em.camp-choice-disc {
  color: var(--cs-color-brand-30);
  font-weight: 600;
}

.camp-choice-head.camp-choice-four,
.camp-choice-row.camp-choice-four {
  grid-template-columns: minmax(0, 2fr) 7rem minmax(0, 1.4fr) 6.5rem;
  align-items: center;
}

.camp-choice-disc-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--cs-color-text-quiet);
  cursor: pointer;
}

.camp-choice-disc-box input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--cs-color-brand-40);
}

/* On a wide screen the column says it; the word shows only stacked. */
.camp-choice-disc-word {
  display: none;
}

.camp-field-note {
  margin: -0.4rem 0 0;
}

@media (max-width: 640px) {
  .camp-choice-row.camp-choice-four {
    grid-template-columns: minmax(0, 1fr) 6rem;
  }

  .camp-choice-row.camp-choice-four > :nth-child(3),
  .camp-choice-row.camp-choice-four > :nth-child(4) {
    grid-column: 1 / -1;
  }

  .camp-choice-disc-word {
    display: inline;
  }
}

/* A grade younger, on request (Dec 2, 2026): the family's card says a kid
   can come a year early if they ask, and once ticked, a box under it asks
   why; the week grid and the review mark them, the summary keeps what
   their weeks hold apart. Staff answer on Sign-ups, each ask a card with
   the family's words, and the roster tags the kid until they say yes. */
.camp-who-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.camp-who-ask-tag {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--aia-navy);
}

.camp-who-ask-tag cs-icon,
.camp-ask-note cs-icon,
.camp-ask-status cs-icon,
.camp-ask-alert cs-icon {
  flex: none;
  font-size: 1.1rem;
}

.camp-who-ask {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--aia-navy);
  border-radius: 14px;
  background: var(--cs-color-brand-95);
}

.camp-who-ask-q {
  font-weight: 700;
  color: var(--aia-navy);
}

.camp-who-ask textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 8px;
  background: var(--cs-color-surface-default);
  font: inherit;
  font-size: max(1rem, 16px);
  resize: vertical;
}

.camp-who-ask .camp-quiet {
  font-size: 0.85rem;
}

.camp-ask-tag,
.camp-ask-chip {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--cs-color-brand-95);
  color: var(--aia-navy);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.camp-ask-chip {
  margin-left: 0.35rem;
}

.camp-ask-note,
.camp-ask-status,
.camp-ask-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: var(--cs-color-brand-95);
  color: var(--aia-navy);
  font-size: 0.9rem;
}

.camp-ask-note > span,
.camp-ask-status > span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.camp-ask-status.camp-ask-yes {
  background: var(--cs-color-success-95);
  color: var(--cs-color-success-30);
}

.camp-ask-status.camp-ask-no {
  background: var(--cs-color-neutral-95);
  color: var(--cs-color-neutral-30);
}

.camp-summary-held {
  opacity: 0.85;
  font-size: 0.9rem;
}

.camp-ask-alert {
  margin: 0.75rem 0;
  border: 1px solid var(--cs-color-brand-80);
}

.camp-ask-alert a {
  margin-left: 0.35rem;
  font-weight: 700;
}

.camp-asks {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.camp-ask {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-left: 4px solid var(--aia-navy);
  border-radius: 10px;
  background: var(--cs-color-surface-default);
}

.camp-ask-yes.camp-ask,
.camp-ask.camp-ask-yes {
  border-left-color: var(--cs-color-success-50);
}

.camp-ask.camp-ask-no {
  border-left-color: var(--cs-color-neutral-70);
}

.camp-ask > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.camp-ask > header > span {
  display: flex;
  flex-direction: column;
}

.camp-ask p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.camp-ask-quote {
  margin: 0;
  padding: 0.5rem 0.8rem;
  border-left: 3px solid var(--cs-color-brand-80);
  background: var(--cs-color-neutral-95);
  font-family: inherit;
  font-style: normal;
  white-space: pre-line;
}

.camp-ask-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.camp-ask-no > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.camp-ask-no > summary::-webkit-details-marker {
  display: none;
}

.camp-ask-no[open] {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.camp-ask-no[open] > summary {
  align-self: flex-start;
}

.camp-ask-no textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 8px;
  font: inherit;
}

.camp-ask-no cs-button {
  align-self: flex-start;
}

.camp-ask-said {
  font-weight: 600;
}

.camp-ask-said.camp-ask-yes {
  color: var(--cs-color-success-30);
}

.camp-ask-said.camp-ask-no {
  color: var(--cs-color-neutral-30);
}

.camp-asks-done > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--aia-navy);
}

.camp-asks-done[open] {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* What who a family is takes off camp (perks.go): staff prices, a
   volunteer's weeks, a coach's kid. */
.camp-perks {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cs-color-success-80);
  border-radius: 10px;
  background: var(--cs-color-success-95);
  color: var(--cs-color-success-20);
}

.camp-perks > cs-icon {
  flex: none;
  margin-top: 0.1rem;
  font-size: 1.3rem;
}

.camp-perks ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-perks .camp-quiet {
  display: block;
}

.camp-perk-chip {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--cs-color-success-90);
  color: var(--cs-color-success-20);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.camp-invite-kind {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--cs-color-brand-95);
  color: var(--aia-navy);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.camp-invite-kind[data-kind="coach"] {
  background: var(--cs-color-success-90);
  color: var(--cs-color-success-20);
}

.camp-invites td {
  vertical-align: top;
}

.camp-invite-kinds,
.camp-invite-weeks {
  margin: 0;
  padding: 0;
  border: 0;
}

.camp-invite-kinds legend,
.camp-invite-weeks legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-weight: 600;
}

/* The two cards side by side, the same width. */
.camp-invite-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.camp-invite-cards label {
  width: 100%;
}

@media (max-width: 640px) {
  .camp-invite-cards {
    grid-template-columns: 1fr;
  }
}

.camp-invite-teams cs-input {
  max-width: 22rem;
}

.camp-invite-kinds label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  background: var(--cs-color-surface-default);
  cursor: pointer;
}

.camp-invite-kinds label:has(input:checked) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

.camp-invite-kinds label > span {
  display: grid;
  gap: 0.1rem;
}

.camp-invite-kinds input,
.camp-invite-weeks input {
  margin-top: 0.2rem;
  accent-color: var(--aia-navy);
}

.camp-invite-weeks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.camp-invite-weeks legend {
  width: 100%;
}

.camp-invite-weeks legend .quiet {
  margin-left: 0.35rem;
  font-weight: 400;
}

.camp-invite-weeks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
}

.camp-invite-weeks label:has(input:checked) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

/* A volunteer has no teams. */
.camp-invite-form:has(input[name="kind"][value="volunteer"]:checked) .camp-invite-teams {
  display: none;
}

.camp-staff-fams {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-staff-fams li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
}

.camp-fam-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
}

.camp-fam-price-row + .camp-fam-price-row {
  border-top: 1px solid var(--cs-color-neutral-90);
}

.camp-fam-price-row p {
  margin: 0.1rem 0 0;
}

/* Promo codes: the box on a sign-up's last step, the tag on staff's
   Sign-ups list, and the Camps section's Promo codes tab. */
.camp-promo-box {
  margin: 1.25rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--cs-color-neutral-80);
  border-radius: 12px;
  background: var(--cs-color-neutral-95);
}

.camp-promo-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.camp-promo-row {
  display: flex;
  gap: 0.5rem;
}

.camp-promo-row input {
  flex: 1;
  min-width: 0;
  max-width: 16rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 8px;
  background: var(--cs-color-surface-default);
  font: inherit;
  font-size: max(1rem, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.camp-promo-apply {
  padding: 0.5rem 1rem;
}

.camp-promo-why {
  margin: 0.5rem 0 0;
  color: var(--cs-color-warning-30);
  font-weight: 600;
}

.camp-promo-on {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--cs-color-success-20);
}

.camp-promo-on > span {
  flex: 1;
}

.camp-promo-on strong {
  margin-right: 0.35rem;
  letter-spacing: 0.06em;
}

.camp-promo-x {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 99px;
  background: var(--cs-color-surface-default);
  color: var(--cs-color-neutral-30);
  cursor: pointer;
}

.camp-promo-x:hover {
  border-color: var(--aia-navy);
  color: var(--aia-navy);
}

.camp-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--cs-color-brand-90);
  color: var(--aia-navy);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.camp-promo-chip cs-icon {
  font-size: 0.95rem;
}

.camp-promo-code {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.camp-promo-table td {
  vertical-align: top;
}

.camp-promo-table tr.camp-promo-off td {
  color: var(--cs-color-neutral-40);
}

.camp-promo-table .camp-week-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.camp-promo-camps {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.camp-promo-camps legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-weight: 600;
}

.camp-promo-camps legend .quiet {
  font-weight: 400;
}

.camp-promo-camp {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  background: var(--cs-color-surface-default);
}

.camp-promo-camp:has(.camp-promo-camp-name input:checked) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

.camp-promo-camp-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.camp-promo-camp-name input,
.camp-promo-weeks input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--aia-navy);
}

/* A camp's weeks show once it's ticked. */
.camp-promo-weeks {
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0 1.6rem;
}

.camp-promo-camp:has(.camp-promo-camp-name input:checked) .camp-promo-weeks {
  display: flex;
}

.camp-promo-weeks label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 99px;
  background: var(--cs-color-surface-default);
  font-size: 0.85rem;
  cursor: pointer;
}

.camp-promo-weeks label:has(input:checked) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-90);
}

.camp-promo-form .camp-check .quiet {
  display: block;
}

/* The sign-up's unseen button that Enter presses. */
.camp-signup .camp-enter[hidden] {
  display: none;
}

/* Scholarships (Dec 2, 2026): the family's ask at Look it over, its proof
   on the sign-up's page, and staff's Scholarships tab. */
.camp-scholar-box {
  margin: 0.75rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--cs-color-brand-80);
  border-radius: 12px;
  background: var(--cs-color-brand-95);
}

.camp-scholar-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--aia-navy);
}

.camp-scholar-box .camp-check {
  margin-top: 0.75rem;
}

.camp-scholar-no {
  margin: 0.5rem 0 0;
  color: var(--cs-color-warning-30);
  font-weight: 600;
}

.camp-scholar-why {
  margin-top: 0.75rem;
}

.camp-scholar-why textarea,
.camp-scholar-settings textarea,
.camp-scholar-answer textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--cs-color-neutral-70);
  border-radius: 8px;
  background: var(--cs-color-surface-default);
  font: inherit;
  font-size: max(1rem, 16px);
  font-weight: 400;
  resize: vertical;
}

.camp-scholar-box .camp-quiet.small {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.camp-scholar-done {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-color: var(--cs-color-brand-80);
}

.camp-scholar-done h3 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.camp-scholar-gave,
.camp-scholar-ok {
  color: var(--cs-color-success-20);
  font-weight: 600;
}

.camp-scholar-sent {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-scholar-sent li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-wrap: anywhere;
}

.camp-scholar-sent cs-icon {
  color: var(--cs-color-success-40);
}

.camp-scholar-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.6rem;
}

.camp-scholar-form .camp-field {
  flex: 1 1 16rem;
  min-width: 0;
}

.camp-scholar-form input[type='file'] {
  max-width: 100%;
  padding: 0.45rem;
  border: 1px dashed var(--cs-color-neutral-70);
  border-radius: 8px;
  background: var(--cs-color-surface-default);
  font: inherit;
  font-weight: 400;
}

.camp-scholar-chip {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: var(--cs-color-neutral-90);
  color: var(--cs-color-neutral-20);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.camp-scholar-chip[data-status='asked'] {
  background: var(--cs-color-warning-90);
  color: var(--cs-color-warning-20);
}

.camp-scholar-chip[data-status='answered'] {
  background: var(--cs-color-success-90);
  color: var(--cs-color-success-20);
}

.camp-scholar-table td {
  vertical-align: top;
}

.camp-scholar-table tr.camp-scholar-answered td {
  color: var(--cs-color-neutral-40);
}

.camp-scholar-settings {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.camp-scholar-answer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.camp-scholar-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
}

.camp-scholar-facts dt,
.camp-scholar-label {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-color-text-quiet);
}

.camp-scholar-facts dd {
  margin: 0;
}

.camp-scholar-reason {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--cs-color-brand-60);
  border-radius: 0 8px 8px 0;
  background: var(--cs-color-brand-95);
}

.camp-scholar-reason p {
  margin: 0;
}

.camp-scholar-reason p + p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.camp-scholar-proofs ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.25rem;
  padding: 0;
  list-style: none;
}

.camp-scholar-proofs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
}

.camp-scholar-proofs a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  overflow-wrap: anywhere;
}

.camp-scholar-proofs p {
  margin: 0;
}

.camp-scholar-missing {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cs-color-warning-30);
  font-weight: 600;
}

.camp-scholar-sum {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
}

.camp-scholar-sum p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}

.camp-done-next {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.camp-done-next a {
  color: var(--aia-navy);
}

/* The band's own gap is enough above Setup's scholarship switch. */
.camp-check.camp-scholar-on {
  margin-top: 0;
}

/* Paying for camp (AIASCRC-179): the sign-up's page while its deposit is
   due, once its hour ran out, and its payments. */
.camp-done-almost .camp-pay-form {
  margin-top: 1.5rem;
}

.camp-done-almost .camp-btn {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.camp-done-almost .camp-quiet {
  max-width: 32rem;
  margin: 1.25rem auto 0;
}

.camp-done-icon {
  display: inline-grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
}

.camp-done-icon cs-icon {
  font-size: 2.75rem;
}

.camp-done-lapsed .camp-btn {
  margin-top: 1.5rem;
}

.camp-pay-problem {
  max-width: 32rem;
  margin: 1rem auto 0;
  text-align: left;
}

.camp-pay-form {
  margin: 0.75rem 0 0;
}

.camp-done-money .camp-pay-form .camp-btn,
.camp-done-money .camp-pay-form .camp-btn-quiet {
  width: 100%;
}

.camp-done-box p + p {
  margin-top: 0.6rem;
}

.camp-done-box .camp-pay-list {
  list-style: none;
  margin: 0.75rem 0 0.6rem;
  padding: 0.6rem 0 0;
  padding-inline-start: 0;
  border-top: 1px solid var(--cs-color-neutral-90);
}

.camp-done-box .camp-pay-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.2rem 0;
}

.camp-done-money .camp-price-big + .camp-quiet {
  margin-top: 0;
}

.camp-cal-off {
  opacity: 0.55;
}

.camp-cal-off strong {
  text-decoration: line-through;
}

.camp-tag-off {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cs-color-text-quiet);
}

.camp-pay-full {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--cs-color-success-30);
}

.camp-paystate {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
}

.camp-paystate-quiet {
  color: var(--cs-color-text-quiet);
}

/* A sign-up's kept copy of what the family agreed to (AIASCRC-187), under
   when they signed up on Sign-ups. */
.camp-agreement-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.camp-agreement-link cs-icon {
  flex: none;
  font-size: 1rem;
}

.camp-paystate-good {
  color: var(--cs-color-success-30);
}

.camp-paystate-warn {
  color: var(--cs-color-warning-30);
  font-weight: 700;
}

/* Camp has to be paid for before it starts (AIASCRC-186): what's past due
   on a family's sign-up page, the Sign-ups tab's line saying who still
   owes, and the tag at the door on Check-in. */
.camp-pay-late,
.camp-late-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cs-color-warning-80);
  border-radius: 8px;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-20);
}

.camp-pay-late cs-icon,
.camp-late-bar > cs-icon {
  flex: none;
  margin-top: 0.1rem;
  font-size: 1.15rem;
  color: var(--cs-color-warning-40);
}

.camp-pay-late strong {
  display: block;
}

.camp-late-bar {
  flex-wrap: wrap;
  align-items: center;
  margin: 0 1rem 0.75rem;
}

.camp-late-bar p {
  flex: 1 1 18rem;
  margin: 0;
}

.camp-late-bar a {
  font-weight: 600;
  white-space: nowrap;
}

.camp-checkin-owes {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--cs-color-danger-80);
  border-radius: 999px;
  background: var(--cs-color-danger-95);
  color: var(--cs-color-danger-30);
  font-size: 0.85rem;
  font-weight: 700;
}

.camp-checkin-owes cs-icon {
  font-size: 1rem;
}

/* Cancelling camp weeks (AIASCRC-180): the family's dialog, each child a
   group of weeks to tick, then what cancelling does to the bill before
   anything is saved. */
.camp-done-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.camp-cancel-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.camp-cancel-done {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cs-color-success-80);
  border-radius: 10px;
  background: var(--cs-color-success-95);
  color: var(--cs-color-success-30);
  font-weight: 600;
}

.camp-cancel > p {
  margin: 0;
}

.camp-cancel-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--cs-color-neutral-95);
  font-size: 0.9rem;
}

.camp-cancel-rule cs-icon {
  flex: none;
  margin-top: 0.1rem;
  color: var(--aia-navy);
}

.camp-cancel-kid {
  margin: 0;
  padding: 0;
  border: 0;
}

.camp-cancel-kid legend {
  padding: 0;
  font-family: var(--cs-font-family-heading);
  font-weight: 700;
  color: var(--aia-navy);
}

.camp-cancel-kid .camp-check {
  margin-top: 0.6rem;
}

.camp-cancel-kid .camp-check .camp-tag-wait {
  margin-left: 0.4rem;
  font-style: normal;
}

.camp-cancel-started {
  margin: 0.6rem 0 0;
  color: var(--cs-color-text-quiet);
  font-size: 0.9rem;
}

.camp-cancel-says {
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 10px;
  overflow: hidden;
}

.camp-cancel-says .camp-cancel-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-cancel-says .camp-cancel-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--cs-color-neutral-90);
  font-size: 0.92rem;
}

.camp-cancel-lines li span:first-child {
  white-space: nowrap;
}

.camp-cancel-lines li span:last-child {
  text-align: right;
  font-weight: 600;
}

.camp-cancel-sum {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  background: var(--cs-color-neutral-95);
}

.camp-cancel-sum div {
  padding: 0.6rem 0.9rem;
}

.camp-cancel-sum dt {
  color: var(--cs-color-text-quiet);
  font-size: 0.8rem;
  font-weight: 600;
}

.camp-cancel-sum dd {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}

.camp-cancel-end {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--cs-color-danger-80);
  background: var(--cs-color-danger-95);
  color: var(--cs-color-danger-30);
  font-weight: 600;
}

.camp-cancel-end cs-icon {
  flex: none;
  margin-top: 0.1rem;
}

@media (max-width: 640px) {
  .camp-cancel-sum {
    grid-template-columns: 1fr 1fr;
  }

  .camp-cancel-says .camp-cancel-lines li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .camp-cancel-lines li span:last-child {
    text-align: left;
  }
}

/* A family's information goes within 30 days, with Keep it (AIASCRC-181). */
.camp-goes-soon p {
  margin: 0 0 0.75rem;
}

/* Finance gives camp money back through Square (AIASCRC-183). */
.camp-giveback .camp-cancel-sum {
  grid-template-columns: repeat(3, 1fr);
}

.camp-giveback-pays {
  margin: 0;
  padding: 0;
  border: 0;
}

.camp-giveback-pays .camp-check {
  margin-top: 0.5rem;
}

.camp-giveback-pays .camp-check span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.camp-giveback-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--cs-color-success-80);
  background: var(--cs-color-success-95);
  color: var(--cs-color-success-30);
  font-weight: 600;
}

.camp-giveback-note cs-icon,
.camp-giveback-off cs-icon {
  flex: none;
  margin-top: 0.1rem;
}

.camp-giveback-off {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
}

.camp-giveback-before ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-giveback-before li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--cs-color-neutral-95);
  font-size: 0.92rem;
}

.camp-giveback-before li .quiet {
  flex-basis: 100%;
}

.camp-signups-table .camp-giveback-open {
  display: block;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .camp-giveback .camp-cancel-sum {
    grid-template-columns: 1fr;
  }
}

/* A camp's Check-in tab (AIASCRC-184): made for a tablet at the door. A
   kid a row, their day's state on the right, big buttons to tap, and the
   row tinted by where their day stands. */
.camp-checkin-head {
  flex-wrap: wrap;
}

.camp-checkin-days {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.camp-checkin-goto {
  margin: 0;
}

.camp-checkin-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 1.25rem 0.75rem;
}

.camp-checkin-counts div {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--cs-color-neutral-90);
  border-top: 4px solid var(--cs-color-neutral-80);
  border-radius: 8px;
}

.camp-checkin-counts .is-here {
  border-top-color: var(--cs-color-success-50);
}

.camp-checkin-counts .is-gone {
  border-top-color: var(--cs-color-brand-40);
}

.camp-checkin-counts .is-waiting {
  border-top-color: var(--cs-color-warning-60);
}

.camp-checkin-counts dt {
  font-size: 0.85rem;
  color: var(--cs-color-neutral-40);
}

.camp-checkin-counts dd {
  margin: 0;
  font-family: var(--cs-font-heading, inherit);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.camp-checkin-find {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 1.25rem 0.75rem;
}

.camp-checkin-other-day {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.camp-checkin-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-checkin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem);
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--cs-color-neutral-90);
}

.camp-checkin-row[data-state='in'] {
  background: var(--cs-color-success-95);
}

.camp-checkin-row[data-state='out'] {
  background: var(--cs-color-neutral-95);
}

.camp-checkin-kid {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.camp-checkin-who {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.camp-checkin-who > strong {
  font-size: 1.15rem;
}

.camp-checkin-may {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
}

.camp-checkin-may cs-icon {
  flex: none;
  color: var(--cs-color-neutral-50);
}

.camp-checkin-state {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.camp-checkin-says {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
}

.camp-checkin-says > span {
  display: grid;
}

.camp-checkin-says.is-here cs-icon {
  color: var(--cs-color-success-40);
}

.camp-checkin-says.is-gone cs-icon {
  color: var(--cs-color-brand-40);
}

.camp-checkin-state > .quiet.small {
  margin: 0;
}

.camp-checkin-unlisted {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
}

.camp-checkin-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* The pick-up dialog: the family's list as cards to tap, and someone
   else's name and which parent said OK only once Someone else is picked. */
.camp-pickup-list {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.camp-pickup-form > p {
  margin: 0;
}

.camp-pickup-pick {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cs-color-neutral-80);
  border-radius: 8px;
  cursor: pointer;
}

.camp-pickup-pick > span {
  display: grid;
  gap: 0.1rem;
}

.camp-pickup-pick input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--aia-navy);
}

.camp-pickup-pick:has(input:checked) {
  border-color: var(--aia-navy);
  background: var(--cs-color-brand-95);
}

.camp-pickup-pick.is-other {
  border-style: dashed;
}

.camp-pickup-other {
  display: none;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: var(--cs-color-warning-95);
}

.camp-pickup-form:has(input[name='who'][value='other']:checked) .camp-pickup-other {
  display: grid;
}

.camp-pickup-other .camp-check {
  margin-top: 0;
}

@media (max-width: 640px) {
  .camp-checkin-days {
    margin-left: 0;
  }

  .camp-checkin-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 1rem;
  }

  .camp-checkin-find {
    margin-inline: 1rem;
  }

  .camp-checkin-find .camp-filter {
    flex: 1;
    min-width: 0;
  }

  .camp-checkin-row {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }
}

@media print {
  .camp-checkin-acts,
  .camp-checkin-find {
    display: none;
  }
}

/* Where a camp's money posts (AIASCRC-185): on its Setup, the camps'
   chartfield or its own, the pick shown only for its own; on Settings >
   Chartfields, the camps' chartfield. */
.camp-cf {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.camp-cf legend {
  padding: 0;
  font-weight: 600;
  color: var(--aia-navy);
}

.camp-cf .camp-check {
  margin-top: 0.6rem;
}

.camp-cf-pick {
  max-width: 32rem;
  margin: 0.6rem 0 0 1.75rem;
}

.camp-cf:not(:has(input[value='own']:checked)) .camp-cf-pick {
  display: none;
}

.camp-cf-none,
.cf-camps-none {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--cs-color-warning-95);
  color: var(--cs-color-warning-30);
}

.cf-camps-none {
  margin: 0;
}

.cf-camps .cf-camps-now {
  margin: 0;
}

.cf-camps-pick {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cf-camps-pick > :first-child {
  flex: 1 1 18rem;
  max-width: 32rem;
}

.cf-camps {
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .camp-cf-pick {
    margin-left: 0;
  }
}

/* A sign-up's journal number, under when it was made (AIASCRC-188), and
   the row a journal link opens at. */
.camp-signups-table .camp-signup-no {
  display: block;
}

.camp-signups-table tr:target td {
  background: var(--cs-color-brand-95);
}

/* The sign-ups a camp removal waits for (journal.CampsWaiting): each a
   link to its row on the camp's Sign-ups, why under it. */
.camp-remove-waiting {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.camp-remove-waiting li span {
  display: block;
}
