/* All Our Company — house styles.
   Palette and type taken from the approved UI mockups (docs/design/mockups). */

:root {
  /* --- The palette ----------------------------------------------------------
     The only place in this file a color is written. Everything below names
     a color by its job, so a theme (Classic today, Stage next) changes these
     and nothing else. tests/test_contrast.py checks no color is hard-coded
     outside this block. */

  /* Surfaces and text */
  --paper: #f2f1ec;
  --card: #ffffff;
  --ink: #1a2030;
  --ink-hover: #121726;
  --ink-soft: #4a5368;
  --muted: #c9ccd6;
  --line: #c9c5ba;
  /* Text and icons on a control filled with ink. */
  --on-ink: #ffffff;
  /* Text on a status color (ok, warn, bad) or a banner: white in every
     look, because the status colors stay dark enough to carry it. */
  --on-status: #ffffff;

  /* The bar along the top (and the public masthead) */
  --bar: var(--ink);
  --on-bar: var(--paper);
  --on-bar-soft: var(--muted);
  --on-bar-strong: #ffffff;
  /* A hover wash on the bar. */
  --on-dark-hover: rgba(255, 255, 255, 0.08);

  /* The show's color (the template overrides these per production) */
  --accent: #e8735a;
  --accent-ink: #9e3119;
  --accent-ink-hover: #6f2211;
  /* Text drawn ON the show's color when it is used as a background.
     The template overrides it per production; ink suits the default. */
  --on-accent: var(--ink);

  /* Status */
  --ok: #15803d;
  --warn: #b45309;
  /* The same warning, dark enough to be read as small text. */
  --warn-ink: #a04a08;
  --bad: #b91c1c;
  /* Status colors used as text, not as a fill. */
  --ok-text: var(--ok);
  --bad-text: var(--bad);
  /* A quiet gray fill: "excused", and the archived banner. */
  --excused: var(--ink-soft);
  /* The small count badge on the calendar. */
  --warn-badge: var(--warn-ink);

  /* Rehearsal calendar: each kind of day, a tint and its edge */
  --cal-rehearsal: #e6ecfa;
  --cal-rehearsal-edge: #3b55b8;
  --cal-tech: #fdf0d5;
  --cal-tech-edge: #a04a08;
  --cal-dress: #f1e6fb;
  --cal-dress-edge: #6b2fa3;
  --cal-performance: #fde3dd;
  --cal-performance-edge: #9e3119;
  --cal-other: #eceef2;
  --cal-other-edge: #4a5368;

  /* Things that stay the same in every theme */
  --media-bg: #000000;
  --knob: #ffffff;

  /* Depth */
  --shadow: 0 1px 2px rgba(26, 32, 48, 0.06), 0 8px 24px rgba(26, 32, 48, 0.06);
  --shadow-photo: 0 2px 14px rgba(0, 0, 0, 0.35);
  --shadow-knob: 0 1px 2px rgba(26, 32, 48, 0.3);

  /* Type */
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* Show titles and the big call time: the display face in Classic, the
     marquee face in Stage. */
  --font-marquee: var(--font-display);
  --marquee-case: none;
  --marquee-tracking: -0.02em;
  /* The next call's time on Home: modest in Classic, big in Stage. */
  --nextcall-size: 1.25rem;
  --nextcall-weight: 500;
  --nextcall-leading: 1.5;

  /* Layout */
  /* The longest comfortable line of running text. */
  --measure: 68ch;
  /* The public masthead: the show's billboard. */
  --masthead-title-size: clamp(2rem, 5vw, 2.75rem);
  --masthead-title-leading: 1.08;
  --masthead-pad-top: 2.5rem;
  --masthead-pad-bottom: 2rem;
  --masthead-logo: 7.5rem;
  --masthead-logo-small: 4.5rem;
  --masthead-rule: 0px;
  /* Lines the masthead's words up with the page below on a wide screen. */
  --masthead-inset: 0px;
  /* A thin frame round the logo, so artwork with its own dark ground
     doesn't melt into a dark page. */
  --logo-ring: 0 0 0 0 transparent;

  --radius: 10px;
}

/* --- Stage: the dark look, in the show's own colors -------------------------
   The default (Jason, 11 November 2026). These are the site's own Stage
   colors; a show's page replaces the surfaces and its color with ones worked
   out from its poster (core.colour.stage_palette), and a person can choose
   Classic for themselves (data-look on <html>). */
:root[data-look="stage"] {
  color-scheme: dark;

  --paper: #0f1219;
  --card: #191e29;
  --ink: #f1ead9;
  --ink-hover: #ffffff;
  --ink-soft: #b4bccf;
  --muted: #9aa3b8;
  --line: #2b3552;
  --on-ink: #0f1219;
  --on-status: #ffffff;

  --bar: #0a0d14;
  --on-bar: #f1ead9;
  --on-bar-soft: #b4bccf;
  --on-bar-strong: #ffffff;
  --on-dark-hover: rgba(255, 255, 255, 0.08);

  --accent: #8aa4ff;
  --accent-ink: #8aa4ff;
  --accent-ink-hover: #b6c6ff;
  --on-accent: #0f1219;

  /* The fills stay deep enough for white text; as text they lighten. */
  --ok: #15803d;
  --warn: #b45309;
  --warn-ink: #f2b866;
  --bad: #b91c1c;
  --ok-text: #6fd39a;
  --bad-text: #ff9b9b;
  --warn-badge: #b45309;
  --excused: #4a5368;

  /* The calendar's kinds of day, as edges, with the tint mixed from each
     edge and the panel it sits on. */
  --cal-rehearsal-edge: #8aa4ff;
  --cal-tech-edge: #f2b866;
  --cal-dress-edge: #c9a2ff;
  --cal-performance-edge: #ff9a8a;
  --cal-other-edge: #b4bccf;
  --cal-rehearsal: color-mix(in srgb, var(--cal-rehearsal-edge) 20%, var(--card));
  --cal-tech: color-mix(in srgb, var(--cal-tech-edge) 20%, var(--card));
  --cal-dress: color-mix(in srgb, var(--cal-dress-edge) 20%, var(--card));
  --cal-performance: color-mix(in srgb, var(--cal-performance-edge) 20%, var(--card));
  --cal-other: color-mix(in srgb, var(--cal-other-edge) 16%, var(--card));

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-photo: 0 2px 14px rgba(0, 0, 0, 0.5);
  --shadow-knob: 0 1px 2px rgba(0, 0, 0, 0.5);

  --font-marquee: "Big Shoulders Display", var(--font-display);
  --marquee-case: uppercase;
  --marquee-tracking: 0.01em;
  --nextcall-size: clamp(2.25rem, 8vw, 3.25rem);
  --nextcall-weight: 900;
  --nextcall-leading: 0.95;

  --masthead-title-size: clamp(3rem, 9vw, 6.25rem);
  --masthead-title-leading: 0.88;
  --masthead-pad-top: 3.5rem;
  --masthead-pad-bottom: 3rem;
  --masthead-logo: 9.5rem;
  --masthead-logo-small: 6rem;
  --masthead-rule: 4px;
  --masthead-inset: calc((100% - 56rem) / 2 + var(--gutter));
  --logo-ring: 0 0 0 1px var(--line);
  /* --- End of the palette --------------------------------------------- */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 500; }
h3 { font-size: 1.0625rem; font-weight: 600; }

a { color: var(--accent-ink); }
a:hover { color: var(--accent-ink-hover); }

/* The parts the browser draws, in the show's colors rather than its
   defaults: selection, the caret, checkboxes and radios, focus, scrollbars. */
:root { accent-color: var(--accent); scrollbar-color: var(--line) var(--paper); }
::selection { background: color-mix(in srgb, var(--accent) 45%, var(--paper)); color: var(--ink); }
input, textarea { caret-color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
a { text-underline-offset: 0.15em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead {
  background: var(--bar);
  color: var(--on-bar);
  padding: var(--masthead-pad-top) 1.75rem var(--masthead-pad-bottom);
  border-bottom: var(--masthead-rule) solid var(--accent);
}
.masthead h1 {
  color: var(--on-bar);
  font-family: var(--font-marquee);
  text-transform: var(--marquee-case);
  letter-spacing: var(--marquee-tracking);
  font-size: var(--masthead-title-size);
  line-height: var(--masthead-title-leading);
  overflow-wrap: anywhere;
}
.masthead p { margin: 0; color: var(--on-bar-soft); }
.masthead__brand { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.25rem; }
/* A whole thumb's height to tap, not just the small letters. */
.masthead__brand .masthead__home { display: inline-flex; align-items: center; min-height: 2.75rem; }

.wrap { max-width: 56rem; margin: 0 auto; padding: 1.75rem; }
/* Running text stops at a comfortable line length, however wide the page
   (it ran to 120 characters on a desktop). */
/* Only plain lists: a styled list's rows (Releases, the call list) run the
   card's full width, so their dividers don't stop short. */
.wrap p, .wrap :is(ul, ol):not([class]) > li, .wrap dd, .wrap blockquote, .masthead p { max-width: var(--measure); }
.wrap--narrow { max-width: 34rem; }
/* The same air between a page's sections, and before the footer. */
.wrap > section { margin-bottom: 2.5rem; }
.wrap > :last-child { margin-bottom: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card h2, .card h3 { margin-top: 0; }
/* A whole card that is one link: a block, not underlined text. */
a.card { display: block; color: var(--ink); text-decoration: none; }
a.card h2, a.card h3 { color: var(--accent-ink); }
a.card .hint { margin-bottom: 0; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
/* A card that is a link rises a little under the pointer. */
@media (prefers-reduced-motion: no-preference) {
  a.card, a.showcard, button.showcard { transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 160ms ease-out; }
  a.card:hover, a.showcard:hover, button.showcard:hover { transform: translateY(-2px); }
}
a.card:hover h2, a.card:hover h3 { text-decoration: underline; }

.stack > * + * { margin-top: 0.75rem; }

.btn,
button[type="submit"],
.allauth button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 500 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--primary,
button[type="submit"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.btn--primary:hover,
button[type="submit"]:hover { background: var(--ink-hover); color: var(--on-ink); }

/* A secondary choice that sits beside the primary one, as the Google button
   does on the sign-in page. */
button.btn--outline,
.btn--outline {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
button.btn--outline:hover,
.btn--outline:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="url"],
input[type="time"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: 400 1rem var(--font-body);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

label { display: block; font-weight: 500; margin-bottom: 0.25rem; }

.hint { color: var(--ink-soft); font-size: 1rem; }

/* A notice is tinted all round in its color, not striped down one side
   (Impeccable polish, 3 December 2026). */
.notice {
  --notice: var(--accent);
  border: 1px solid color-mix(in srgb, var(--notice) 50%, var(--line));
  background: color-mix(in srgb, var(--notice) 12%, var(--card));
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.notice--warn { --notice: var(--warn); }
.notice--bad { --notice: var(--bad); }
.notice--ok { --notice: var(--ok); }

.banner-staging {
  background: var(--warn);
  color: var(--on-status);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.sitefoot {
  border-top: 1px solid var(--line);
  /* With the page's own padding, the same 40px as between its sections. */
  margin-top: 0.75rem;
  padding: 1.5rem 1.75rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.rolebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.rolebar a { margin-left: auto; }

.tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
}
/* Used where a tag is a caveat rather than a label: "on the open web" in
   the library, "sign in to open" on the show page. The class was already
   in use with nothing behind it, so it read as an ordinary tag.
   --warn is a banner background and is a shade too light to read as text
   on paper (4.44:1), so the text takes a darker one of its own. */
.tag--warn { border-color: var(--warn); color: var(--warn-ink); }

.todo { list-style: none; padding: 0; margin: 0; }
.todo li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.mark { width: 1.125rem; height: 1.125rem; flex: none; vertical-align: -0.2em; color: var(--muted); }
.mark--done { color: var(--ok-text); }

/* From 600px: a big phone on its side, or a folding phone opened up
   (the iPhone Duo is about 626 points across unfolded). Room enough for
   buttons their own size and two columns, though the menu still wraps. */
@media (min-width: 37.5rem) {
  .btn { width: auto; display: inline-flex; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* --- Application bar -----------------------------------------------------
   One place to get anywhere. Before this, every section was a dead end:
   the only route from the callboard to planning was back through the
   dashboard. */

.appbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.75rem;
  background: var(--bar);
  color: var(--on-bar);
}

.appbar__brand {
  color: var(--on-bar);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-right: 0.5rem;
  white-space: nowrap;
}
.appbar__brand:hover { color: var(--on-bar-strong); }

.appbar__nav {
  display: flex;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
  /* One row. Where the row would not fit, the menu moves to the bar along
     the bottom instead (see "The menu on a phone" below). */
  overflow: hidden;
}
.appbar__nav::-webkit-scrollbar { display: none; }

.appbar__link {
  color: var(--on-bar-soft);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.appbar__link:hover { color: var(--on-bar-strong); background: var(--on-dark-hover); }
.appbar__link.is-current {
  color: var(--ink);
  background: var(--paper);
  font-weight: 500;
}

/* The account menu is a <details> element: a real dropdown, keyboard
   accessible, with no JavaScript to ship or break. */
.menu { position: relative; margin-left: auto; }

.menu__trigger {
  list-style: none;
  cursor: pointer;
  color: var(--on-bar);
  font-size: 0.9375rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}
.menu__trigger::-webkit-details-marker { display: none; }
.menu__trigger:hover { background: var(--on-dark-hover); }

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 13rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
}
.menu__panel a,
/* More specific than button[type="submit"], so the menu's buttons look like
   its links rather than like big filled buttons. */
.menu__panel button.menu__signout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font: 400 0.9375rem var(--font-body);
  background: none;
  border: 0;
  min-height: 0;
  cursor: pointer;
}
.menu__panel form { margin: 0; }
.menu__panel a:hover,
.menu__panel button.menu__signout:hover { background: var(--paper); color: var(--accent-ink); }

.menu__who {
  margin: 0 0 0.25rem;
  padding: 0.25rem 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* --- Breadcrumbs ---------------------------------------------------------
   Where you are, and the way back up. */

.crumbs {
  padding: 0.6rem 1.75rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.crumbs li::after { content: "\203A"; margin-left: 0.4rem; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

@media (max-width: 47.9375rem) {
  /* On a phone the sections wrap onto a second row rather than scrolling
     sideways. Six links fit, and a link nobody can see is a link nobody
     uses; the cost is one more row of chrome, so that row is kept tight. */
  /* Every link in the bar is a full 44px tall, so a thumb lands on the
     one it meant. */
  .appbar { padding: 0.15rem 1rem 0.25rem; gap: 0 0.25rem; }
  .appbar__brand { font-size: 0.9375rem; width: 100%; margin-right: 0; min-height: 2.75rem; }
  .appbar__nav { gap: 0.15rem; overflow-x: visible; }
  .appbar__link { padding: 0 0.45rem; font-size: 0.875rem; display: inline-flex; align-items: center; min-height: 2.75rem; }
  .menu__trigger { padding: 0 0.6rem; font-size: 0.875rem; display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; justify-content: center; }
  .file__links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .file__pdf > summary { padding: 0.625rem 0; }
  .menu__panel { min-width: 11rem; }
  .crumbs { padding: 0.45rem 1rem; font-size: 0.8125rem; }
  .wrap { padding: 1.25rem 1rem; }
}

/* A section's own tabs, under the breadcrumbs. */
.subnav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.subnav a {
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.subnav a:hover { background: var(--card); color: var(--accent-ink); }

/* --- The production's own look -------------------------------------------
   The poster's color arrives as --accent and friends, already adjusted
   for contrast. Anything already using those tokens follows the show
   without further work. */

.appbar__brand { display: flex; align-items: center; gap: 0.5rem; }

.appbar__logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ink);
  flex: none;
}

.masthead--with-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.masthead--with-logo .masthead__words { flex: 1 1 auto; min-width: 0; }

.masthead__logo {
  width: var(--masthead-logo);
  height: var(--masthead-logo);
  border-radius: var(--radius);
  object-fit: cover;
  flex: none;
  box-shadow: var(--logo-ring), var(--shadow-photo);
}

/* The current section picks up the show's color on the dark bar. */
.appbar__link.is-current {
  background: var(--accent-on-dark, var(--paper));
  /* accent-on-dark is derived to clear 3:1 as a foreground. Used as a
     background it must still carry small text, so the readable of ink
     and white is chosen per production rather than assumed. */
  color: var(--on-accent);
}

/* Accents that should follow the show. */
/* (Notices take the show's color from --notice in their own rule now.) */

@media (max-width: 47.9375rem) {
  .masthead--with-logo { gap: 1rem; }
  .masthead__logo { width: var(--masthead-logo-small); height: var(--masthead-logo-small); }
  .appbar__logo { width: 1.5rem; height: 1.5rem; }
}

/* ---- The show's artwork, where it can actually be seen -------------
   The app bar carries a 24px logo, which identifies the show but is far
   too small to be artwork. These two places give the poster room. */

.showhead {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.showhead__art {
  width: 108px;
  height: 108px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--ink);
}
.showhead__art--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 2.75rem var(--font-display);
  background: var(--accent-on-dark);
  color: var(--on-accent);
}
.showhead__words { min-width: 0; }
.showhead__title {
  font-size: 1.75rem;
  margin: 0 0 0.15em;
  font-family: var(--font-marquee);
  text-transform: var(--marquee-case);
}
.showhead__meta { margin: 0; color: var(--ink-soft); }
.showhead__switch {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0;
  font-size: 0.9375rem;
  color: var(--accent-ink);
}

/* ---- Choosing between shows ---------------------------------------
   Poster-led, because the artwork is how people tell their shows apart
   faster than they read two similar titles. */

.showpicker {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  margin-top: 1.5rem;
}
button.showcard,
.showcard {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 0;
  padding: 1rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
/* A card keeps its own colors on hover. The picker's cards are submit
   buttons, and without this the hover for every submit button (a filled
   ink background) turned a card light and hid its tag. */
button.showcard:hover,
.showcard:hover {
  background: var(--card);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
/* The admin-only cards are links: a card, not underlined text. */
a.showcard, a.showcard:hover { text-decoration: none; }
a.showcard:hover .showcard__title { text-decoration: underline; text-underline-offset: 0.15em; }
button.showcard--current,
.showcard--current { border-color: var(--accent); border-width: 2px; }
.showcard__art {
  width: 84px;
  height: 84px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  /* Set per card from the show's own color, so posterless shows are
     told apart by more than their initial. */
  background: var(--card-accent, var(--ink));
  color: var(--card-ink, var(--on-ink));
}
.showcard__art img { width: 100%; height: 100%; object-fit: cover; }
.showcard__initial {
  font: 700 2rem var(--font-display);
  color: inherit;
}
.showcard__words { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.showcard__title { font-weight: 600; font-size: 1.125rem; }
.showcard__meta { color: var(--ink-soft); font-size: 0.9375rem; }

@media (max-width: 47.9375rem) {
  .showhead { gap: 1rem; padding: 0.875rem; }
  .showhead__art { width: 72px; height: 72px; }
  .showhead__title { font-size: 1.375rem; }
}

/* ---- The company directory ---------------------------------------- */

.directory__heading { margin: 1.75rem 0 0.75rem; font-size: 1.125rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.person {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person__face {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-on-dark, var(--ink));
  color: var(--on-accent);
}
.person__face img { width: 100%; height: 100%; object-fit: cover; }
.person__initial { font: 700 1.375rem var(--font-display); }
.person__words { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; overflow-wrap: anywhere; }
.person__name { font-weight: 600; }
.person__title { color: var(--ink-soft); font-size: 0.9375rem; }
.person__contact { font-size: 0.9375rem; }
.person__bio { color: var(--ink-soft); font-size: 1rem; margin-top: 0.25rem; }

/* --- The breakdown grid: wide, so it scrolls inside itself ----------------- */

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.grid { border-collapse: collapse; font-size: 0.875rem; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 0.3rem 0.5rem; }
.grid td { text-align: center; color: var(--accent-ink); }
.grid tbody th {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--card);
}
.grid__name { vertical-align: bottom; height: 9rem; }
.grid__name span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-weight: 500;
}

/* --- Rehearsal calendar ------------------------------------------------------ */
/* (Its colors are in the palette at the top.) */

.viewswitch { display: flex; gap: 1rem; margin: 0.5rem 0 1rem; }
.viewswitch a { text-decoration: none; padding-bottom: 0.15rem; }
.viewswitch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cal__title { margin: 0; }
.cal-scroll { overflow-x: auto; max-width: 100%; }

.cal {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cal th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.cal__day {
  vertical-align: top;
  height: 6.5rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cal__day.is-out { background: var(--paper); }
.cal__day.is-out .cal__num { color: var(--muted); }  /* faded, but still 4.5:1 or better */
.cal__head { display: flex; justify-content: space-between; align-items: center; }
.cal__num { font-size: 0.8125rem; font-weight: 600; line-height: 1.6rem; min-width: 1.6rem; text-align: center; }
.cal__day.is-today .cal__num { background: var(--accent); color: var(--on-accent); border-radius: 999px; }
.cal__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.55;
}
.cal__add:hover, .cal__add:focus-visible { opacity: 1; background: var(--paper); color: var(--ink); }

.cal__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid var(--cal-other-edge);  /* the kind of day, all round rather than down one side */
  background: var(--cal-other);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}
a.cal__item:hover { color: var(--ink); filter: brightness(0.96); }
.cal__item--rehearsal { background: var(--cal-rehearsal); border-color: var(--cal-rehearsal-edge); }
.cal__item--tech { background: var(--cal-tech); border-color: var(--cal-tech-edge); }
.cal__item--dress { background: var(--cal-dress); border-color: var(--cal-dress-edge); }
.cal__item--performance { background: var(--cal-performance); border-color: var(--cal-performance-edge); }
.cal__item.is-draft { border-style: dashed; }
.cal__time { font-weight: 600; font-variant-numeric: tabular-nums; }
.cal__label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal__clash {
  margin-left: auto;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--warn-badge);
  color: var(--on-status);
  font-size: 0.6875rem;
  font-weight: 600;
}
.cal__key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.cal__key .cal__item { display: inline-flex; margin: 0; }
.cal__key .cal__clash { margin-left: 0; }
.cal__keyitem { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }

@media (max-width: 640px) {
  .cal th { font-size: 0.75rem; letter-spacing: 0; padding: 0.3rem 0; }
  .cal__day { height: 5.25rem; padding: 0.15rem; }
  .cal__num { font-size: 0.75rem; min-width: 1.3rem; line-height: 1.3rem; }
  /* Tap targets stay 24px or more (WCAG 2.5.8): two entries still fit a day. */
  .cal__add { flex: none; width: 1.5rem; height: 1.5rem; opacity: 0.7; }
  .cal__item { min-height: 1.5rem; padding: 0 0.15rem; font-size: 0.6875rem; gap: 0.1rem; }
  .cal__label { display: none; }
  .cal__clash { padding: 0 0.2rem; font-size: 0.625rem; }
}
@media (max-width: 359px) {
  /* No room for a 24px "+" beside the date; "Add a date" above the
     calendar does the same job (WCAG 2.5.8's equivalent-control case). */
  .cal__add { display: none; }
  /* The conflict count wraps under the time rather than being cut off. */
  .cal__item { flex-wrap: wrap; white-space: normal; justify-content: flex-start; }
  .cal__clash { margin-left: 0; }
}
.cal__bar .btn { width: auto; flex: 0 0 auto; padding-left: 0.9rem; padding-right: 0.9rem; }
@media (max-width: 640px) {
  .cal__time { letter-spacing: -0.02em; }
  .cal__item { justify-content: space-between; }
}

/* --- Picking what a rehearsal works on, and schedules ------------------------ */

#id_units { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.15rem 1rem; }
#id_units label { font-weight: 400; display: flex; gap: 0.4rem; align-items: baseline; margin: 0; }
#id_weekdays { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
#id_weekdays label { font-weight: 400; display: flex; gap: 0.35rem; align-items: center; margin: 0; }
.call--draft { border-style: dashed; }
.call h3 { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* A call in the list reads like the audition page's ticket stubs: the day
   large on the left, a dashed tear line, the details beside it. */
.call--stub { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0 1rem; align-items: start; }
.call--stub .stub__day { padding-right: 1rem; border-right: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); align-self: stretch; align-content: start; }
.call__body { min-width: 0; }
.call__body > :last-child { margin-bottom: 0; }
.cal__cast {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0 0.25rem;
  border-radius: 3px;
  background: var(--ink);
  color: var(--card);
}

/* --- Which songs and scenes can be done at this time ------------------------- */

.unitpick-set, .card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.unitpick-set legend, .card fieldset legend { padding: 0; }
.unitpick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.4rem; }
.unitopt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.5rem;
  align-items: start;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 400;
  cursor: pointer;
}
.unitopt input { margin-top: 0.25rem; }
.unitopt__name { font-weight: 500; }
.unitopt__status { grid-column: 2; font-size: 0.8125rem; color: var(--ink-soft); }
.unitopt--clear { border-color: color-mix(in srgb, var(--ok) 65%, var(--line)); }
.unitopt--clear .unitopt__status { color: var(--ok-text); }
.unitopt--short { border-color: color-mix(in srgb, var(--warn) 65%, var(--line)); opacity: 0.8; }
.unitopt--short .unitopt__status { color: var(--warn-ink); }
.unitopt--missing { border-color: color-mix(in srgb, var(--bad) 65%, var(--line)); opacity: 0.55; }
.unitopt--missing .unitopt__status { color: var(--bad-text); }
.unitopt--uncast { opacity: 0.6; border-style: dashed; }
.unitopt:hover, .unitopt:focus-within, .unitopt:has(input:checked) { opacity: 1; }
.unitopt:has(input:checked) { background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }  /* the status color stays; a ring says it's picked */
.unitkey { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.unitkey__item { padding: 0.1rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; }
/* The key takes the same borders as the options (.unitopt--*), so it needs no rules of its own. */
.field + .field { margin-top: 0.75rem; }

/* --- Building the schedule ------------------------------------------------------- */

.freeform__row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end; }
.freeform__row .field { margin: 0; }
.freeform__row .field + .field { margin-top: 0; }
.freegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.freeunits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.freeunits .unitopt { cursor: default; opacity: 1; grid-template-columns: 1fr; }
.freeunits .unitopt__status { grid-column: 1; }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.blocks__item { padding: 0.5rem 0.65rem; border: 1px solid color-mix(in srgb, var(--cal-rehearsal-edge) 45%, var(--line)); border-radius: 6px; }
.blocks--mine { gap: 0.15rem; font-size: 0.9375rem; }
.pickpeople ul, .pickpeople > div { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.25rem 1rem; }
.pickpeople label { font-weight: 400; }
.sheet { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th { font-size: 0.8125rem; color: var(--ink-soft); }
.builder-scroll { overflow: auto; max-width: 100%; max-height: 75vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.builder { border-collapse: separate; border-spacing: 0; font-size: 0.8125rem; }
.builder th, .builder td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.builder thead th { position: sticky; top: 0; z-index: 2; background: var(--card); padding: 0.4rem 0.25rem; font-weight: 600; white-space: nowrap; }
.builder__date { position: sticky; left: 0; z-index: 1; background: var(--card); text-align: left; padding: 0.35rem 0.6rem; min-width: 8.5rem; white-space: nowrap; }
.builder thead .builder__date { z-index: 3; }
.builder__date .hint { display: block; font-weight: 400; }
.builder__cell { padding: 0; min-width: 2.6rem; height: 2.4rem; text-align: center; }
.builder__cell button, .builder__cell span { display: block; width: 100%; height: 100%; min-height: 2.4rem; border: 0; background: transparent; font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.builder__cell span { cursor: default; display: flex; align-items: center; justify-content: center; }
.builder__cell button:hover, .builder__cell button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.builder__cell--clear { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.builder__cell--short { background: color-mix(in srgb, var(--warn) 22%, transparent); }
.builder__cell--missing { background: color-mix(in srgb, var(--bad) 16%, transparent); }
.builder__cell--uncast { background: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--line) 50%, transparent) 4px 6px); }
.builder__cell.is-on { box-shadow: inset 0 0 0 2px var(--ink); }

/* --- Viewing as a demo person --------------------------------------------------- */

.viewas {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 16px;
  background: var(--ink);
  color: var(--card);
  font-size: 0.9375rem;
}
.viewas form { margin: 0; }
.viewas .btn { width: auto; padding: 0.3rem 0.8rem; color: var(--card); border-color: var(--card); background: transparent; }
.viewas .btn:hover { background: var(--card); color: var(--ink); }
.viewas-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.viewas-list form { margin: 0; }
.viewas-list .btn { width: auto; padding: 0.3rem 0.7rem; font-size: 0.875rem; }

/* --- The audition page ------------------------------------------------------- */

.apage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.apage__section { margin: 0; min-width: 0; }
.apage__section--full { grid-column: 1 / -1; }
.apage__section--plain { padding: 0.25rem 0; }
.apage__section--highlight {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}
@media (max-width: 720px) {
  .apage { grid-template-columns: minmax(0, 1fr); }
  .apage__section--half { grid-column: 1 / -1; }
}
.formatted > :first-child { margin-top: 0; }
.formatted > :last-child { margin-bottom: 0; }
.formatted h3 { margin-top: 1rem; }
.formatted--lead { font-size: 1.0625rem; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.file { border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem; background: var(--card); }
.file__head { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.file audio, .file video { width: 100%; margin-top: 0.5rem; }
.file video { border-radius: 6px; background: var(--media-bg); }
.file__image { max-width: 100%; height: auto; border-radius: 6px; margin-top: 0.5rem; }
.file__pdf { margin-top: 0.5rem; }
.file__pdf iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 6px; margin-top: 0.5rem; }
.file__links { margin: 0.5rem 0 0; }
.files__waiting { border: 1px dashed var(--line); border-radius: 8px; padding: 0.75rem; margin-top: 0.75rem; }
.files__names { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; height: 12rem; object-fit: cover; border-radius: 8px; display: block; }
.gallery__item figcaption { font-size: 0.875rem; margin-top: 0.3rem; }

.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 0.75rem; }
.role { border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem; background: var(--card); min-width: 0; }
.role h3 { margin-bottom: 0.25rem; }

/* --- The audition page as a playbill (Impeccable critique, 3 December 2026) --
   Section heads in the masthead's marquee face (Stage only: Classic loads no
   marquee font), the premise as the hook, dates as ticket stubs, the parts as
   a program's cast list, and small stage-direction labels in mono. */
/* Since 3 December the same look runs through the whole site (Jason): every
   section head on Stage is a marquee line, the audition page's a size up. */
h1, h2, h3 { text-wrap: balance; }
.wrap p, .wrap li, .hint { text-wrap: pretty; }
:root[data-look="stage"] .wrap h2 {
  font-family: var(--font-marquee);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(1.6rem, 4.2vw, 2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 0.55em;
}
:root[data-look="stage"] .apage h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 0.6em; }
.apage h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
/* The story's opening paragraph leads, a step up from body text; the rest of
   a synopsis reads as ordinary text. (A whole synopsis at hook size was far
   too large on the real show, 3 December 2026.) */
.formatted--lead p:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.45;
  max-width: 34em;  /* about the same line length as the paragraphs under it */
}
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.stubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.stub {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 6px;
}
.stub__day { display: grid; justify-items: center; line-height: 1; text-align: center; }
.stub__day b {
  font-family: var(--font-marquee);
  font-weight: 800;
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--accent-ink);
}
.stub__day i { font-style: normal; font-family: var(--font-marquee); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em; margin-top: 0.15rem; text-transform: uppercase; }
.stub__day small { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 0.25rem; text-transform: uppercase; }
.stub__what strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.stub__what > span:not(.visually-hidden) { display: block; color: var(--ink-soft); font-size: 1rem; margin-top: 0.15rem; }
.stubs__note { margin-top: 0.9rem; }

/* The parts as a ledger (Jason, 3 December 2026): one part a row, its name
   and what it asks for (Plays, Voice, Range) in a fixed column on the left,
   so the eye runs down that column comparing one part with the next. */
.castlist { list-style: none; margin: 0 0 1rem; padding: 0; }
.castlist__part { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 0.5rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.castlist__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; margin: 0 0 0.5rem; }
.castlist__about, .castlist__more { color: var(--ink-soft); margin: 0.35rem 0 0; }
.castlist__body > :first-child { margin-top: 0; }
.castlist__about p { margin: 0; }
.castlist__label, .partfacts dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.castlist__label { margin-right: 0.35rem; }
.partfacts { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; align-items: baseline; margin: 0; }
.partfacts dd { margin: 0; }
.partfacts__voice { color: var(--accent-ink); font-weight: 600; }
.role .partfacts { margin: 0.25rem 0 0.6rem; }
@media (max-width: 47.9375rem) {
  /* On a phone the facts sit in one row under the name. */
  .castlist__part { grid-template-columns: minmax(0, 1fr); }
  .castlist .partfacts { grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; justify-content: start; gap: 0 1.5rem; }
}
.apage .roles { align-items: start; }
.apage .role { background: none; }
.role__notes { margin-top: 0.5rem; padding-left: 0.6rem; border-left: 3px solid var(--accent); }
.role__requirements { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.role__requirements .files { grid-template-columns: minmax(0, 1fr); }

/* --- Audition sign-up ---------------------------------------------------------- */

.signup fieldset { border: 0; margin: 0; min-width: 0; }
.signup legend { padding: 0; }
.signup legend h3 { margin: 0; }
.signup [hidden] { display: none !important; }
.signup ul:not(.conflictpick):not(.errorlist) { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.signup ul:not(.conflictpick):not(.errorlist) li label {
  display: flex; gap: 0.6rem; align-items: center; font-weight: 400;
  min-height: 44px; padding: 0.35rem 0;
}
.signup input[type="radio"], .signup input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: none; }
.signup .field--error input, .signup .field--error select, .signup .field--error textarea { border-color: var(--bad); }
.errorlist { color: var(--bad-text); list-style: none; padding: 0; margin: 0.25rem 0; }
.signup__roles ul { columns: 2 12rem; }
.signup__when { font-size: 1.125rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conflictpick { list-style: none; padding: 0; margin: 0; }
.conflictpick__day {
  display: grid; grid-template-columns: minmax(6.5rem, 1fr) minmax(0, 1.6fr); gap: 0.25rem 0.75rem;
  align-items: center; padding: 0.5rem 0 0.5rem 0.6rem; border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line);
}
.conflictpick__day.is-out { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, transparent); }
.conflictpick__when { display: flex; flex-direction: column; }
.conflictpick__answer { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.conflictpick__answer select { flex: 1 1 9rem; width: auto; }
.conflictpick__time input { width: 8.5rem; min-height: 48px; }
.conflictpick__day .errorlist { grid-column: 1 / -1; }

.signups__counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.signups__filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; align-items: end; }
.signups__filter .field + .field { margin-top: 0; }
.signups__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; grid-column: 1 / -1; }
.signups__actions .btn { width: auto; }
.signups__list { list-style: none; padding: 0; margin: 0; }
.signups__row { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.signups__row .tag { margin-right: 0.25rem; }
.signupcard__photo { float: right; width: 8rem; max-width: 35%; border-radius: var(--radius); margin: 0 0 0.5rem 0.75rem; }
.signupcard__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; }
.signupcard__facts dt { font-weight: 600; }
.signupcard__facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .signupcard__facts { grid-template-columns: 1fr; }
  .signupcard__facts dd { margin-bottom: 0.4rem; }
}
.apage__cta { margin: 0 0 2rem; }
.apage__cta .btn { width: auto; }
.signup__check label { display: flex; gap: 0.6rem; align-items: center; min-height: 44px; }
.signup__check .hint { margin: 0; }
.signup h4 { margin: 1rem 0 0.25rem; }
.rowpick { list-style: none; padding: 0; margin: 0; }
.rowpick__row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.rowpick__row .field + .field { margin-top: 0; }
.rowpick__wide { grid-column: 1 / -1; }
.rowpick__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.rowpick__more summary { cursor: pointer; color: var(--ink-soft); }
.conflictpick__covered { grid-column: 1 / -1; margin: 0; }
.rowpick__add { margin-top: 0.75rem; }
.person__name a { color: inherit; }
.person--page { margin-bottom: 1.5rem; }
.person--page .person__face { width: 112px; height: 112px; }
.person--page .person__name { font-size: 1.75rem; margin: 0; }
.guardian { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.guardian div { margin-top: 0.2rem; }

/* --- The actor's own calendar --------------------------------------------------- */
.cal--mine .cal__day { padding: 0; }
.cal__pick {
  display: block; height: 100%; min-height: 6.5rem; padding: 0.3rem;
  color: inherit; text-decoration: none;
}
.cal__pick:hover, .cal__pick:focus-visible { background: var(--paper); }
.cal--mine .cal__num { display: inline-block; }
.cal__day.is-selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal__day.has-calls .cal__num { font-weight: 700; }
.dayview { margin-top: 1.25rem; scroll-margin-top: 1rem; }
.calfeed { margin-top: 1.5rem; }
.calfeed__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.calfeed__buttons .btn { width: auto; }
.calfeed details summary { cursor: pointer; color: var(--ink-soft); }
.calfeed details input { margin: 0.5rem 0; }
@media (max-width: 640px) {
  .cal__pick { min-height: 4.75rem; padding: 0.15rem; }
}
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* --- The callboard -------------------------------------------------------------- */
.callboard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.callboard__head .btn { width: auto; }
.callboard__heading { margin: 1.75rem 0 0.75rem; font-size: 1.25rem; }
.callboard__tools { margin: 0; font-size: 0.9375rem; }
.callboard__boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.callboard__boards .card { margin-bottom: 0; }
.callboard__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.callboard__actions .btn { width: auto; }
.callboard__takedown { margin-top: 1rem; }
.callboard__takedown .btn { width: auto; }
.callboard__body { border-left: 3px solid var(--line); padding-left: 0.75rem; }

/* --- The audition room (SPEC 5.4) ------------------------------------------ */
.wrap--wide { max-width: 80rem; }
.room__summary { margin: 0 0 0.75rem; }
.room__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 0.5rem; }
.room__tools form { margin: 0; }
.room__tools .btn { width: auto; min-height: 44px; }
.room button:not([type="submit"]) {
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 500 0.9375rem var(--font-body);
  cursor: pointer;
}
.room button:not([type="submit"]):hover { border-color: var(--ink); }
.room button:disabled { opacity: 0.4; cursor: default; }
.room button.room__primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.room__filter { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.room__filter select { width: auto; min-height: 44px; }
.room__label { font-size: 0.875rem; color: var(--ink-soft); }
.room__grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
@media (min-width: 62rem) {
  .room__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .room__panel { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}
.room__list { padding: 0.5rem; }
.room__rows { list-style: none; margin: 0; padding: 0; }
.room__row {
  display: grid;
  grid-template-columns: 1.75rem auto minmax(0, 1fr) auto;
  gap: 0.25rem 0.6rem;
  align-items: center;
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid var(--line);
}
.room__row:last-child { border-bottom: 0; }
.room__row form { margin: 0; }
.room__row.is-selected { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 4px; }
.room__place { font-weight: 600; text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.room__name { color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.room__name:hover strong { text-decoration: underline; }
.room .room__here { min-width: 5.5rem; }
.room button.room__here.is-on { background: var(--ok); border-color: var(--ok); color: var(--on-status); }
.room__moves { display: flex; gap: 0.25rem; }
.room .room__moves button { min-height: 40px; padding: 0 0.6rem; }
.room__extra { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; font-size: 0.875rem; }
.room__avg { color: var(--warn-ink); font-weight: 600; }
.room__marks { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.room__chip { margin: 0; }
.room__chip .tag { display: inline-flex; align-items: center; gap: 0.15rem; }
.room button.room__x { min-height: 0; padding: 0 0.2rem; border: 0; background: none; color: var(--ink-soft); }
.room__starform { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; margin-top: 0.75rem; }
.room__starform > span:first-of-type { margin-right: 0.35rem; }
.room button.room__star { border: 0; background: none; padding: 0 0.3rem; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.room button.room__star.is-on { color: var(--warn); }
.room__tagform { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.room__tagform input { flex: 1 1 12rem; width: auto; }
.room__panel textarea { width: 100%; }
.room__status { display: flex; align-items: center; gap: 0.5rem; min-height: 1.5rem; margin: 0; }
.room__note { border-left: 3px solid var(--line); padding-left: 0.6rem; }
.room__note p { margin: 0.2rem 0 0; }
.signups__room { width: auto; display: inline-flex; }
.signups__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.callbacks__new { width: auto; }
.callbacks__small { width: auto; min-height: 44px; }
.callbacks__row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.callbacks__row form { margin: 0; }
.callbacks__bytag { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.callbacks__bytag .field { flex: 1 1 14rem; }
.callbacks__pick { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.callbacks__pick legend { font-weight: 600; margin-bottom: 0.35rem; }
.callbacks__choice { display: flex; gap: 0.5rem; align-items: baseline; }
.callbacks__answer { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.tag--ok { border-color: var(--ok); color: var(--ok-text); }
.room__cbhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.room__cbhead h4 { margin: 0; }
.room__cbhead form { margin: 0; }
.room__picks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.room__picks legend { font-weight: 600; margin-bottom: 0.35rem; width: 100%; }
.room__picks label { display: inline-flex; gap: 0.4rem; align-items: center; min-height: 36px; }
.casting__preview { white-space: pre-wrap; font: inherit; background: var(--paper); padding: 0.75rem; border-radius: var(--radius); }
.onboarding__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.onboarding__list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.onboarding__mark { font-size: 1.1rem; line-height: 1.4; color: var(--ink-soft); }
.onboarding__list li.is-done .onboarding__mark { color: var(--ok-text); }
.onboarding__list li.is-done strong { color: var(--ink-soft); font-weight: 500; }

/* --- Cast chat, messages and moderation ------------------------------------------ */

.rich p { margin: 0 0 0.5rem; }
.rich p:last-child { margin-bottom: 0; }
.rich a { overflow-wrap: anywhere; }
.embed { position: relative; width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; margin: 0.5rem 0; border-radius: 8px; overflow: hidden; background: var(--media-bg); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chat__banner { font-size: 0.875rem; color: var(--ink-soft); padding: 0.5rem 0.75rem; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-radius: 6px; }
.chatlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.chatlist__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; }
.chatlist__item.is-closed { opacity: 0.6; }
.chat__list { display: grid; gap: 0.5rem; margin: 1rem 0; }
.chatmsg { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.85rem; max-width: 46rem; }
.chatmsg--mine { margin-left: auto; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.chatmsg--staff { border-color: color-mix(in srgb, var(--cal-rehearsal-edge) 55%, var(--line)); }
.chatmsg--hidden { opacity: 0.7; border-style: dashed; }
.chatmsg__who { margin: 0 0 0.25rem; font-size: 0.875rem; }
.chatmsg__photo { display: block; max-width: min(100%, 22rem); max-height: 22rem; border-radius: 8px; margin-top: 0.35rem; }
.chatmsg__tools { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; align-items: center; margin-top: 0.35rem; font-size: 0.8125rem; }
.chatmsg__tools form { margin: 0; display: inline; }
.chatmsg__modlink { display: inline-flex !important; gap: 0.4rem; align-items: center; }
.linkbutton { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font: inherit; }
.linkbutton:hover { color: var(--accent-ink-hover); }
.reportpost { margin-left: auto; text-align: right; }
.reportpost[open] { flex-basis: 100%; }
.reportpost__toggle { display: inline-block; list-style: none; cursor: pointer; color: var(--ink-soft); padding: 0 0.4rem; border-radius: 6px; letter-spacing: 0.1em; line-height: 1.6; }
.reportpost__toggle::-webkit-details-marker { display: none; }
.reportpost__toggle::marker { content: ""; }
.reportpost__toggle:hover, .reportpost[open] .reportpost__toggle { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.reportpost__form { margin: 0.5rem 0 0 auto; max-width: 28rem; text-align: left; }
.reportpost__form input { width: 100%; }
.reportpost__form label .hint { font-size: inherit; font-weight: 400; }
.reportpost__form .btn { width: auto; }
.btn--small { padding: 0.2rem 0.6rem; font-size: 0.8125rem; min-height: 0; }
.chat__form { position: sticky; bottom: 0.5rem; display: grid; gap: 0.5rem; box-shadow: var(--shadow); }
.chat__form textarea { width: 100%; resize: vertical; }
.chat__formrow { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.chat__photo { font-weight: 400; font-size: 0.875rem; }
.chat__photo input { font-size: 0.8125rem; }
.modcard__quote { margin: 0; padding: 0.5rem 0.85rem; border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--line)); background: var(--paper); border-radius: 6px; }
.modactions { display: grid; gap: 0.5rem; }
.modactions textarea { width: 100%; }
.modactions__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.modactions__mute { display: inline-flex; gap: 0.35rem; align-items: center; }
.modlinks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.modlinks form { margin-top: 0.4rem; }
form.inline { display: inline; }
.teamtable td, .teamtable th { white-space: nowrap; }
.teamtable th .hint { display: block; font-weight: 400; }
.teamtoggle { min-width: 3.5rem; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-soft); font: inherit; cursor: pointer; }
.teamtoggle.is-on { background: var(--ok); border-color: var(--ok); color: var(--on-status); font-weight: 600; }
.chatmsg:has(.embed) { width: 100%; }

/* --- Running rehearsals ---------------------------------------------------------- */

.runlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.runlist__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 0; }
.attcount { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; }
.attlist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.attlist__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.65rem 0.8rem; display: grid; gap: 0.5rem; }
.attlist__marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.attbtn { min-height: 2.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.attbtn:disabled { cursor: default; opacity: 0.6; }
.attbtn.is-on.att--present { background: var(--ok); border-color: var(--ok); color: var(--on-status); }
.attbtn.is-on.att--late { background: var(--warn); border-color: var(--warn); color: var(--on-status); }
.attbtn.is-on.att--absent { background: var(--bad); border-color: var(--bad); color: var(--on-status); }
.attbtn.is-on.att--excused { background: var(--excused); border-color: var(--excused); color: var(--on-status); }
.tag.att--present { border-color: var(--ok); }
.tag.att--late { border-color: var(--warn); }
.tag.att--absent { border-color: var(--bad); }
.attlist__parent { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
.workedlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.workedlist label { font-weight: 400; }
.workedadd { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.workedadd select { max-width: 100%; }
.notelist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.notelist__item.is-done { opacity: 0.65; }
.countdown { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.countdown__item { padding: 0.6rem 0.9rem; }
.countdown__days { font-size: 1.5rem; font-weight: 700; margin-right: 0.25rem; }
.progress__cell { text-align: center; min-width: 4.5rem; padding: 0; }
.progress__cell button, .progress__cell span { display: block; width: 100%; min-height: 2.4rem; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.progress__cell span { cursor: default; display: flex; align-items: center; justify-content: center; }
.progress__cell.is-worked { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.progress__cell.is-learned { background: color-mix(in srgb, var(--ok) 26%, transparent); }
.headsup { margin-top: 0.5rem; }
.headsup summary { cursor: pointer; color: var(--accent-ink); }
.note__worked { margin: 0 0 0.35rem; font-size: 0.875rem; }
.note-about { border: 0; padding: 0; margin: 0; }
.note-about legend { font-weight: 600; margin-bottom: 0.35rem; }
.note-about__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; max-height: 16rem; overflow-y: auto; }
.note-about__item { display: inline-flex; gap: 0.35rem; align-items: baseline; font-weight: normal; }
.note-about__item[hidden] { display: none; }

/* --- Phones: the notch, the Dynamic Island, rounded corners -----------------
   The page runs edge to edge (viewport-fit=cover), so anything padded at the
   sides keeps clear of a phone's cut-outs when it's turned on its side, and
   the bottom clears the home bar. In portrait the insets are nothing and
   the usual gutter wins. */

:root { --gutter: 1.75rem; }
@media (max-width: 47.9375rem) { :root { --gutter: 1rem; } }

.appbar, .crumbs, .wrap, .masthead, .sitefoot, .viewas, .banner-staging, .offline-banner {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.masthead {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), var(--masthead-inset));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), var(--masthead-inset));
}
.sitefoot { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.chat__form { bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); }

/* Opened from the home screen there's no browser bar above the page. */
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top, 0px); background: var(--paper); }
}

/* A wide, short screen (the iPhone Duo on its side: 678 x 466 folded,
   951 x 669 open): the masthead need not take a third of it. */
@media (min-width: 37.5rem) and (max-height: 43rem) {
  .masthead { padding-top: 1.25rem; padding-bottom: 1rem; }
}

/* Nothing is wider than the screen, on any phone, folded or not. */
img, video, iframe { max-width: 100%; }
pre, code { overflow-wrap: anywhere; }

.offline-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--warn);
  color: var(--on-status);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.875rem;
  text-align: center;
}
.offline-banner[hidden] { display: none; }

.savedlist { list-style: none; padding: 0; margin: 0; }
.savedlist li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.savedlist li:last-child { border-bottom: 0; }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 0.35rem; }
.buttonrow { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.screeninfo { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; font-size: 0.875rem; }
.screeninfo dt { color: var(--ink-soft); }
.screeninfo dd { margin: 0; overflow-wrap: anywhere; }
.safe-probe {
  position: fixed; visibility: hidden; pointer-events: none; width: 0; height: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
           env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}


/* --- The menu on a phone -------------------------------------------------
   The same sections, in the same order, along the bottom where a thumb
   reaches them. Under 860 points wide (and on a wider screen whose row of
   sections would not fit; base.html adds .nav-compact then), the top bar
   keeps only the show's name and the account menu. A phone held upright
   shows four sections and More; anything wider shows them all. */

.navicon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.menu__avatar { display: none; }
.tabbar { display: none; }
:root { --tabbar-h: 3.6rem; }

@media (max-width: 53.6875rem) {
  .appbar__nav, .menu__name { display: none; }
  .menu__avatar { display: grid; }
  .tabbar { display: flex; }
  body:has(.tabbar) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .chat__form { bottom: calc(var(--tabbar-h) + 0.5rem + env(safe-area-inset-bottom, 0px)); }
}
.nav-compact .appbar__nav, .nav-compact .menu__name { display: none; }
.nav-compact .menu__avatar { display: grid; }
.nav-compact .tabbar { display: flex; }
.nav-compact body:has(.tabbar) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
.nav-compact .chat__form { bottom: calc(var(--tabbar-h) + 0.5rem + env(safe-area-inset-bottom, 0px)); }

.menu__avatar {
  width: 2rem; height: 2rem; border-radius: 50%;
  place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 0.9rem;
}
.menu__trigger:has(.menu__avatar) { padding: 0.15rem; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.tabbar__item {
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--tabbar-h);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.15rem;
  padding: 0.3rem 0.1rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.6875rem;
  line-height: 1.1;
  list-style: none;
  cursor: pointer;
}
.tabbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar__item::-webkit-details-marker { display: none; }
.tabbar__item:hover { color: var(--accent-ink); }
.tabbar__item.is-current { color: var(--accent-ink); font-weight: 600; }
.tabbar__more { display: none; }

@media (max-width: 37.4375rem) {
  .tabbar--overflows .tabbar__item--extra { display: none; }
  .tabbar--overflows .tabbar__more { display: flex; flex: 1 1 0; min-width: 0; }
  .tabbar__more > summary { flex: 1 1 0; }
}
.tabbar__sheet {
  position: fixed;
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  display: grid;
}
.tabbar__sheet a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.7rem;
  border-radius: 8px;
  color: var(--ink); text-decoration: none;
}
.tabbar__sheet a .navicon { color: var(--ink-soft); }
.tabbar__sheet a:hover, .tabbar__sheet a[aria-current] { background: var(--paper); color: var(--accent-ink); }

/* The pages inside a section, as a row of tabs under the bar. */
.sectiontabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.25rem 0 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.sectiontabs::-webkit-scrollbar { display: none; }
.sectiontabs__tab {
  flex-shrink: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
}
.sectiontabs__tab:hover { border-color: var(--ink-soft); color: var(--accent-ink); }
.sectiontabs__tab.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sectiontabs__group {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.4rem;
}
.sectiontabs__group:first-child { padding-left: 0; }

/* Show settings: a row per switch. */
.settings__group { border: 1px solid var(--line); margin: 0 0 1rem; }
.settings__group legend {
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.125rem; padding: 0 0.3rem;
}
.settings__row { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.settings__row:last-child { border-bottom: 0; }
.settings__switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; cursor: pointer; font-weight: 400; }
.settings__words { display: grid; gap: 0.15rem; min-width: 0; }
.settings__words .hint { font-size: 0.875rem; }
.settings__times { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin-top: 0.6rem; }
input[role="switch"] {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 3rem; height: 1.75rem;
  border-radius: 999px;
  background: var(--muted);
  position: relative;
  cursor: pointer;
  margin: 0;
  transition: background 0.15s;
}
input[role="switch"]::after {
  content: ""; position: absolute; top: 0.2rem; left: 0.2rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--knob); box-shadow: var(--shadow-knob);
  transition: left 0.15s;
}
input[role="switch"]:checked { background: var(--ok); }
input[role="switch"]:checked::after { left: 1.45rem; }
input[role="switch"]:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  input[role="switch"], input[role="switch"]::after { transition: none; }
}

/* --- Pull to refresh (home-screen app only; static/js/pull-to-refresh.js) */
.ptr {
  --ptr-y: 0px;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) - 2.75rem);
  left: 50%;
  z-index: 70;
  transform: translate(-50%, var(--ptr-y));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.ptr:not(.is-showing):not(.is-busy) { transition: transform 0.2s, opacity 0.2s; }
.ptr__spin {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--accent-ink);
  border-top-color: transparent;
}
.ptr.is-busy .ptr__spin { animation: ptr-spin 0.7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ptr { transition: none !important; }
  .ptr.is-busy .ptr__spin { animation: none; }
}

/* The show page while auditions are open. */
.signup-cta { display: grid; gap: 0.6rem; justify-items: start; }
.signup-cta p { margin: 0; }

/* A show that has closed and been archived (core: closing). */
.banner-archived {
  background: var(--excused);
  color: var(--on-status);
  font-size: 0.875rem;
  text-align: center;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* The post-show survey (closing). */
.plain { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.plain li { padding: 0.2rem 0; }
.survey__q { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.survey__q legend { font-weight: 600; margin-bottom: 0.4rem; padding: 0; }
.survey__choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.survey__choice { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 400; margin: 0; cursor: pointer; }
.survey__choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.survey__choices--scale .survey__choice { min-width: 3rem; justify-content: center; }
.survey__q textarea { width: 100%; }
.survey__average { font-size: 2rem; font-weight: 700; margin: 0 0 0.5rem; }
.survey__bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.survey__bars li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) 2rem; gap: 0.5rem; align-items: center; }
.survey__bars meter { width: 100%; }
.survey__quote { margin: 0 0 0.75rem; padding-left: 0.75rem; border-left: 3px solid var(--line); }

/* Home: what needs you, and the next call. */
.needs { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.needs__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.needs__item { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.needs__item:last-child { border-bottom: 0; }
.needs__item a { font-weight: 500; }
.needs__item--warn::before { content: "\25CF"; color: var(--warn); margin-right: 0.45rem; font-size: 0.75em; vertical-align: 0.1em; }
.needs__item--ok::before { content: "\25CF"; color: var(--ok); margin-right: 0.45rem; font-size: 0.75em; vertical-align: 0.1em; }
.nextcall { display: grid; gap: 0.3rem; justify-items: start; margin-bottom: 0.75rem; }
.nextcall p { margin: 0; }
.nextcall__when { font-family: var(--font-marquee); text-transform: var(--marquee-case); font-size: var(--nextcall-size); font-weight: var(--nextcall-weight); line-height: var(--nextcall-leading); }
.nextcall__time { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--accent-ink); }
:root[data-look="stage"] .nextcall__time { font-size: 1.375rem; }
.nextcall__then { font-size: 0.875rem; margin: 0.5rem 0 0.25rem; color: var(--ink-soft); }
.today .buttonrow { margin-top: 0.5rem; }

/* --- The public show page: the story, and auditions at a glance ----------- */
.showintro { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 52rem) {
  .showintro { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; gap: 2.5rem; }
}
.showintro__story > p:first-child {
  font-size: 1.25rem;
  line-height: 1.5;
}
.showintro__glance { margin: 0; }
.showintro__glance h2 { margin-bottom: 0.75rem; }
.showintro__when { font-family: var(--font-marquee); text-transform: var(--marquee-case); font-size: 1.5rem; line-height: 1.1; margin: 0.15rem 0 0.75rem; }
.showintro__glance .btn { width: 100%; justify-content: center; }

/* --- Home: the next call and what to do about it ------------------------- */
.nextcall__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.nextcall__actions form { display: contents; }  /* its buttons wrap in the same row as Call sheet */
.nextcall__actions .btn { width: auto; }


/* --- Help (/help/) ----------------------------------------------------------
   Guides, topics and the printable quick start. Written to be read on a
   phone first: short lines, numbered steps, and on-screen labels shown as
   small chips so they can be matched to the button. */
.helpdoc__lede { font-size: 1.125rem; color: var(--ink-soft); }
.helpsection { margin-top: 1.5rem; }
.helpcards {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.helpcard { margin: 0; padding: 0; }
.helpcard__link { display: block; padding: 1rem 1.25rem; color: var(--ink); text-decoration: none; height: 100%; }
.helpcard__title { display: block; color: var(--accent-ink); font-size: 1.0625rem; margin-bottom: 0.25rem; }
.helpcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.helpcard:hover .helpcard__title { text-decoration: underline; }
.helplist { list-style: none; padding: 0; margin: 0 0 1.25rem; border-top: 1px solid var(--line); max-width: var(--measure); }
.helplist__item { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.helplist__item a { font-weight: 600; }
.helplist__item .hint { display: block; margin-top: 0.15rem; }
.helpdoc__body h2 { margin-top: 2rem; }
.helpdoc__body h3 { margin-top: 1.5rem; }
.helpdoc__body ol, .helpdoc__body ul:not(.helplist) { padding-left: 1.4rem; }
.helpdoc__body li + li { margin-top: 0.35rem; }
.helpdoc__body table { border-collapse: collapse; margin: 1rem 0; width: 100%; max-width: var(--measure); }
.helpdoc__body th, .helpdoc__body td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.helpdoc__body blockquote { margin: 1rem 0; padding: 0.5rem 1rem; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-radius: 6px; }
.helpdoc__switch { margin-bottom: 1.25rem; }
.helpdoc__guides { margin-top: 2rem; }
.helpstuck { margin-top: 2rem; }
.helpstuck p { margin: 0; }
.crumbs--help { margin-bottom: 0.75rem; }
/* Something on screen to tap, written as it appears there. */
.uilabel {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-weight: 600;
  font-size: 0.9375em;
  line-height: 1.5;
  white-space: nowrap;
}

/* The quick start, on one sheet of letter paper. On screen it is shown as
   a sheet with a Print button above it; on paper only the sheet prints. */
.printpage { background: var(--paper); color: var(--ink); margin: 0; padding: 1rem; }
.printpage__bar {
  max-width: 8.5in; margin: 0 auto 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.printsheet {
  box-sizing: border-box;
  max-width: 8.5in; margin: 0 auto; padding: 0.6in;
  background: var(--card); box-shadow: var(--shadow);
  font-size: 10.5pt; line-height: 1.4;
}
.printsheet p, .printsheet li { max-width: none; }
.printsheet__head { border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.printsheet__head .eyebrow { color: var(--ink-soft); margin: 0; }
.printsheet__head h1 { font-family: var(--font-display); font-size: 22pt; margin: 0.1rem 0 0.2rem; }
.printsheet__head p { margin: 0; }
.printsheet__body { columns: 2; column-gap: 0.35in; }
.printsheet__body h2 { font-size: 12pt; margin: 0.6rem 0 0.25rem; break-after: avoid; }
.printsheet__body h2:first-child { margin-top: 0; }
.printsheet__body ul, .printsheet__body ol { padding-left: 1.1rem; margin: 0 0 0.4rem; }
.printsheet__body li { break-inside: avoid; margin-bottom: 0.15rem; }
.printsheet__body p { margin: 0 0 0.4rem; }
.printsheet__foot {
  display: flex; gap: 0.75rem; align-items: center;
  margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--line);
  font-size: 9.5pt;
}
.printsheet__foot p { margin: 0 0 0.2rem; }
.printsheet__qr { flex: 0 0 0.95in; }
.printsheet__qr svg { width: 0.95in; height: 0.95in; display: block; }
@media (max-width: 40rem) {
  .printsheet { padding: 1rem; }
  .printsheet__body { columns: 1; }
}
@media print {
  @page { size: letter; margin: 0.5in; }
  .printpage { background: var(--card); padding: 0; }
  .printpage__bar { display: none; }
  .printsheet { max-width: none; padding: 0; box-shadow: none; }
  .printsheet__body { columns: 2; }
}

/* The pointer to your help guide at the foot of a home page. */
.homeguide { margin-top: 1.5rem; }

/* The masthead's name leads home; it reads as a title, not a link. */
.masthead { position: relative; }
.masthead a.masthead__home { color: inherit; text-decoration: none; }
.masthead a.masthead__home:hover { text-decoration: underline; text-underline-offset: 0.15em; }
/* Signed out there's no menu, so Help sits in the masthead as a button. */
.masthead__actions {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(var(--gutter, 1rem), env(safe-area-inset-right, 0px));
  display: flex;
  gap: 0.5rem;
}
.masthead .masthead__help {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.masthead .masthead__help:hover { filter: brightness(1.08); color: var(--on-accent); }

/* A one-button or one-field form inside a list row (Releases page). */
.inlineform { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-left: 0.5rem; }
.inlineform input[type="date"] { width: auto; }
.inlineform .btn { width: auto; }
.todo--pick label { display: inline-flex; gap: 0.6rem; align-items: center; min-height: 2.75rem; padding-right: 0.5rem; cursor: pointer; }
.todo--pick input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; }
.inlineform button.linkbutton { background: none; border: 0; padding: 0.2rem 0.3rem; min-height: 1.5rem; width: auto; color: var(--accent-ink); text-decoration: underline; font-weight: 400; }
.todo .btn--small { width: auto; display: inline-flex; margin-left: 0.5rem; }
.teamtable .btn--small { width: auto; display: inline-flex; margin-top: 0.25rem; }
.removeform { margin-top: 0.75rem; }
.setup__photo { max-width: 100%; height: auto; border-radius: var(--radius, 8px); margin-bottom: 0.75rem; }
.details__logo { max-width: 12rem; }
.details__swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.details__swatch { display: inline-block; width: 2.25rem; height: 1.25rem; border: 1px solid var(--line); border-radius: 4px; }
.breakdown__who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.breakdown__who select { width: auto; min-width: 9rem; }
