/* LCA Studios — site styles.
   One stylesheet for every page. Baseline only; look and feel is iterated later. */

:root {
  /* Dark theme (V014, retuned V015): white text on black, very dark greys for
     raised surfaces, blue for primary buttons. Every colour on the site comes
     from these variables - change them here, not per rule. */
  color-scheme: dark;            /* native controls, scrollbars, date pickers go dark too */
  --ink:        #f5f5f5;         /* main text */
  --ink-soft:   #a3a3a3;         /* secondary text */
  --paper:      #000000;         /* page background */
  --surface:    #141414;         /* raised things: inputs, cards, rows on hover */
  --bar:        #0a0a0a;         /* the top bar */
  --rule:       #2a2a2a;         /* borders and dividers */
  --accent:     #ef4444;         /* errors and danger */

  /* Blue, used sparingly: primary buttons, link hover, keyboard focus (V015). */
  --action:       #2563eb;       /* button background - white text on it is 5.2:1 */
  --action-hover: #1d4ed8;       /* button hover - 6.7:1 */
  --on-action:    #ffffff;
  --link-hover:   #7cb3ff;       /* link hover / focus ring on black - 9.8:1 */

  /* Status colours for badges and festival results (V014, saturated V015).
     All read at 4.9:1 or better on --surface. */
  --ok:         #22c55e;         /* green - public / selected */
  --warn:       #facc15;         /* yellow - limited audience / submitted */
  --bad:        #ef4444;         /* red - admin only / not selected */

  --poster-ratio: 27 / 40;       /* LCA posters are 27 x 40 in (V018) */
  --bar-h:      4rem;            /* top bar height (V015; taller V016) */

  /* Corner rounding (V016: rounder site-wide). */
  --radius:     10px;            /* inputs, buttons, cards, panels */
  --radius-lg:  14px;            /* menus and large panels */
  --measure:    34rem;
  --step:       clamp(1.125rem, 0.6rem + 1.4vw, 1.75rem);
  --gutter:     clamp(1.125rem, 0.75rem + 1.5vw, 1.5rem);   /* side padding on wide pages (V061: a little more on phones) */
}

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

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

/* V021: no bold anywhere. Headings, strong text and table headers use Medium (500). */
h1, h2, h3, h4, h5, h6, strong, b, th { font-weight: 500; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  /* The bar sits on top; the page content fills whatever height is left. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* V063, link style A (Dylan, s15): links inside text keep a soft, thin
   underline (so they don't rely on colour alone) that turns solid on hover.
   Standalone links (link rows, the portal mark, nav, buttons, tabs) have none. */
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(245, 245, 245, 0.35);
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
}

/* --- Phase 0 scaffold page. Replaced in Phase 1. ------------------------- */

.scaffold {
  flex: 1;              /* fill the height below the bar (was min-height: 100svh) */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--step);
}

.scaffold__mark {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Home (V016): "LCA Studios" at the same size as the line under it. */
.scaffold__mark--home {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.scaffold__mark--home + .scaffold__line { font-weight: 300; }

.scaffold__line {
  margin: 0;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.scaffold__note {
  margin: 0;
  max-width: 28rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.scaffold__links {
  margin: 0;
  display: flex;
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

.scaffold__build {
  display: none;        /* V061: admins only (site-bar.js adds html.is-admin) */
  position: fixed;
  right: 0.75rem;
  bottom: 0.5rem;
  margin: 0;
  font-size: 0.7rem;
  color: var(--rule);
}
/* V163 (Dylan s55): the corner stamp stays hidden for everyone; the version shows only as the pill in the top bar. */
/* V160: the version in the bar, admins only (js/site-bar.js) */
.bar__ver { display: none; margin-right: 0.35rem; padding: 0.15rem 0.5rem; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 0.7rem; color: var(--ink-soft); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__ver:hover, .bar__ver:focus-visible { color: var(--ink); border-color: var(--ink-soft); }
html.is-admin .bar__ver { display: inline-block; }
@media (max-width: 30rem) { html.is-admin .bar__ver { display: none; } }   /* no room on a small phone; the Changelog page has it */

/* --- Forms (V007: login, reset password) ---------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 24rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form__hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form__input {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.form__input:focus { border-color: var(--ink); }

.form__button {
  font: inherit;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--action);
  color: var(--on-action);
  cursor: pointer;
}
.form__button:hover { background: var(--action-hover); }
/* V062: deleting an account. White on #b91c1c is 6.5:1. */
.form__button--danger { background: #b91c1c; }
.form__button--danger:hover { background: #991b1b; }
.form__button--danger:disabled { cursor: not-allowed; background: #b91c1c; }

.form__alt {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* A button that looks like a link — for actions, not navigation. */
.form__link {
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(245, 245, 245, 0.35);
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  cursor: pointer;
}
.form__link:hover { color: var(--link-hover); text-decoration-color: currentColor; }

.form__button:disabled,
.form__link:disabled { opacity: 0.5; cursor: wait; }

.form__status {
  margin: 0;
  min-height: 1.6em;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form__status--error { color: var(--accent); }

/* --- Portal ---------------------------------------------------------------- */

.portal__admin {
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.portal__heading {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Dashboard (V032): tiles on the portal home, admins only. Two columns on a
   wide screen, one on a phone; the films tiles span the full width. */
.dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.dash__tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.dash__tile--wide { grid-column: 1 / -1; }
.dash__title { margin: 0; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.dash__title a { text-decoration: none; }
.dash__title a:hover { text-decoration: underline; }
.dash__big { margin: 0; font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.dash__big--warn { color: var(--warn); }
.dash__hint { margin: -0.3rem 0 0; font-size: 0.85rem; font-weight: 300; color: var(--ink-soft); }
.dash__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; }
.dash__list:empty { display: none; }
.dash__nowrap { white-space: nowrap; }
.dash__row { display: flex; justify-content: space-between; gap: 1rem; }
.dash__muted { color: var(--ink-soft); font-weight: 300; }
p.dash__muted, .dash__tile > p { margin: 0; }
.dash__error { margin: 0; color: var(--accent); font-size: 0.9rem; }
.dash__stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
  gap: 0.75rem;
}
.dash__stage { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; overflow-wrap: anywhere; }
.dash__stage-name { margin: 0.4rem 0 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.dash__stage .dash__stage-name { margin-top: 0; padding-bottom: 0.35rem; border-bottom: 1px solid var(--rule); }
.dash__span { grid-column: 1 / -1; }
#d-todo { display: flex; flex-direction: column; gap: 0.4rem; }
#d-todo p { margin: 0; }

/* V039: reframed pictures (js/image-frame.js). A zoomed picture sits in a
   box that clips it to its usual shape. */
.frame { display: block; overflow: hidden; border-radius: var(--radius); }
.frame > img { display: block; }
.frame-ed { display: flex; flex-direction: column; gap: 0.5rem; max-width: 15rem; }
.frame-ed__box { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: grab; touch-action: none; border: 1px solid var(--rule); }
.frame-ed__box.is-dragging { cursor: grabbing; }
.frame-ed__box img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; pointer-events: none; }
.frame-ed__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.frame-ed__zoom { flex: 1 1 6rem; min-width: 0; accent-color: var(--action); }

/* V040: admin-only "Edit page" corner button on public pages (site-bar.js). */
.edit-fab { position: fixed; left: 0.75rem; bottom: 0.75rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 999px; background: rgba(10, 10, 10, 0.85);
  color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; text-decoration: none; backdrop-filter: blur(6px); opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.edit-fab:hover, .edit-fab:focus-visible { opacity: 1; color: var(--ink); }
.edit-fab svg { width: 0.95rem; height: 0.95rem; }

[hidden] { display: none !important; }

/* --- Admin editor (V008: /portal/films, /portal/film) --------------------- */

/* Wider than .scaffold and top-aligned: these are working pages, not a
   centred holding screen. */
.editor {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--step);
  padding-bottom: 4rem;
}

.editor__actions { margin: 0; }
.editor__actions .form__button { display: inline-block; text-decoration: none; }
.editor__actions .form__button:hover { color: var(--on-action); }

.editor__table-wrap { overflow-x: auto; }

.editor__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.editor__table th,
.editor__table td {
  text-align: left;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.editor__table th { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }

.editor__mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.9em; }

.editor__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.editor__group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;   /* lets a fieldset shrink at phone width */
}

.editor__legend {
  padding: 0 0.35rem;
  font-weight: 500;
}

.editor__group > .form__hint { margin: -0.5rem 0 0; }

/* A field and its "Visible to" picker, side by side; stacked on phones. */
.editor__pair {
  display: grid;
  grid-template-columns: 1fr 13rem;
  gap: 0.75rem;
  align-items: start;
}

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

@media (max-width: 40rem) {
  .editor__pair { grid-template-columns: 1fr; }
}

.editor__narrow { max-width: 10rem; }

textarea.form__input { resize: vertical; line-height: 1.5; }

.editor__warning {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 0.9rem;
}
.editor__warning p { margin: 0 0 0.5rem; }

.editor__check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
}

.editor__danger {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  padding: 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.editor__danger .form__hint { margin: 0; }

.editor__delete { background: var(--accent); align-self: flex-start; }
.editor__delete:hover { background: var(--ink); }
.editor__delete:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Credits + shared lists (V009: /portal/credits, /portal/people,
       /portal/credit-types) ------------------------------------------------ */

.editor__credits { display: flex; flex-direction: column; gap: 1rem; }
.editor__credits > .form__hint { margin: 0; }

.editor__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.editor__inline .form__input { width: auto; }

/* Status line stays in view at the bottom while working down a long page. */
.editor__status-fixed {
  position: sticky;
  bottom: 0;
  padding: 0.5rem 0;
  background: var(--paper);
  z-index: 2;
}
.editor__status-fixed:empty { padding: 0; min-height: 0; }

.editor__bulk {
  position: sticky;
  top: var(--bar-h);    /* stays just under the sticky top bar (V015) */
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.editor__bulk .form__button { padding: 0.45rem 0.8rem; }

.editor__card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 1rem;
}

.editor__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.editor__card-heading { flex: 1 1 14rem; font-weight: 500; }
.editor__vis { width: auto; max-width: 14rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }

.editor__handle {
  cursor: grab;
  color: var(--ink-soft);
  user-select: none;
  padding: 0 0.15rem;
}

.editor__arrows { display: inline-flex; gap: 0.25rem; }
.editor__arrow {
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  min-width: 2rem;
  min-height: 2rem;       /* a comfortable tap target on phones */
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.editor__arrow:hover:not(:disabled) { border-color: var(--ink); }
.editor__arrow:disabled { opacity: 0.3; cursor: default; }

.editor__rows {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  min-height: 2.5rem;      /* something to drop onto when a card is empty */
}

.editor__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}
.editor__row + .editor__row { border-top: 1px solid var(--rule); }
.editor__row:hover { background: var(--surface); }

.editor__row-main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  min-width: 0;
}
.editor__row-types { color: var(--ink-soft); font-size: 0.9rem; }
.editor__row-char { font-style: italic; font-size: 0.9rem; }

.editor__badge {
  font-size: 0.75rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}
.editor__badge--ok   { color: var(--ok); }
.editor__badge--warn { color: var(--warn); }
.editor__badge--bad  { color: var(--bad); }

.editor__empty { padding: 0.5rem 1rem; color: var(--ink-soft); font-size: 0.9rem; }
.editor__card-foot { margin: 0; padding: 0.5rem 1rem 0.75rem; }

.editor__row-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.editor__picker { position: relative; }
.editor__matches {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.editor__matches:empty { display: none; }
.editor__match {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.editor__matches li:last-child .editor__match { border-bottom: 0; }
.editor__match:hover, .editor__match:focus-visible { background: var(--paper); }
.editor__match--new { color: var(--link-hover); }

.editor__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.editor__types .editor__check { font-weight: 400; }
.editor__tag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.3rem 0.2rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font-size: 0.9rem; }
.editor__tag-x { border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 1.1rem; line-height: 1; padding: 0 0.3rem; cursor: pointer; border-radius: 999px; }
.editor__tag-x:hover, .editor__tag-x:focus-visible { color: var(--ink); }
.editor__type-add { width: 100%; max-width: 18rem; }
/* V037: "Set every ... to" bar at the top of an editor tab. */
.editor__bulkall { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0; padding: 0.75rem 1rem; border: 1px dashed var(--rule); border-radius: var(--radius); }
.editor__bulkall .form__input { width: auto; }
.editor__bulkall .form__hint { flex-basis: 100%; margin: 0; }
.editor__check-hint { margin: -0.75rem 0 0; }  /* V033: hint under a lone tick box */
.editor__datetime { display: flex; gap: 0.5rem; flex-wrap: wrap; }  /* V034: release date + time */
.editor__datetime .form__input { flex: 1 1 9rem; min-width: 0; }

.editor__row-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.editor__confirm { font-size: 0.9rem; color: var(--accent); }
.editor__danger-link { color: var(--accent); }

/* Drag-and-drop feedback (blue since V015: red is kept for danger) */
.editor__dragging { opacity: 0.4; }
.editor__row.editor__drop-before { border-top: 2px solid var(--link-hover); }
.editor__row.editor__drop-after { border-bottom: 2px solid var(--link-hover); }
.editor__rows.editor__drop-into { background: var(--surface); outline: 2px dashed var(--link-hover); outline-offset: -4px; }
.editor__card.editor__drop-before { box-shadow: 0 -3px 0 var(--link-hover); }
.editor__card.editor__drop-after { box-shadow: 0 3px 0 var(--link-hover); }

.editor__delete-hint { margin: 0; }

/* Names + credit types pages */
.editor__addbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.editor__addbar .form__input { flex: 1 1 10rem; }
.editor__addbar .editor__narrow { flex: 0 1 7rem; }

.editor__person {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.editor__person-head .form__input[type="text"] { flex: 1 1 12rem; }

.editor__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.editor__chip {
  font-size: 0.85rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
}
.editor__chip .form__link { font-size: 0.8rem; }

.editor__order { max-width: 6rem; }
.editor__cell-actions { white-space: nowrap; }
.editor__table .form__input { padding: 0.45rem 0.6rem; width: 100%; }

/* V105 (0057): credit wordings listed under their base on Credit types. */
.ctype__table { min-width: 48rem; }   /* scrolls sideways in its wrap on phones rather than crushing the names */
.ctype__table td:first-child { min-width: 12rem; }
.ctype__table td:nth-child(2) { min-width: 11rem; max-width: 15rem; }
.ctype__table td:nth-child(3) { min-width: 7rem; }
.ctype__table th { vertical-align: bottom; }
.ctype__th-hint { display: block; max-width: 13rem; white-space: normal; font-size: 0.75rem; font-weight: 300; line-height: 1.35; margin-top: 0.15rem; }
.ctype__note { display: block; margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.35; }
.ctype__prints { color: var(--ink-soft); opacity: 0.55; }   /* V137: a quiet preview, never a warning */
/* V137 (Dylan s32): on a computer the table uses the page's width, so Save is never cut off. */
@media (min-width: 64rem) {
  .editor.ctype-page { max-width: 80rem; }
  .ctype-page #admin-area > .form__hint { max-width: 52rem; }
}
.ctype__table .editor__cell-actions { white-space: normal; min-width: 6rem; }
.ctype__wording { display: flex; align-items: center; gap: 0.4rem; padding-left: 1rem; }
.ctype__arrow { color: var(--ink-soft); }
.ctype__row--wording .form__input { font-size: 0.95rem; }
.editor__opt-wording { color: var(--ink-soft); }

@media (max-width: 40rem) {
  .editor__row { flex-wrap: wrap; padding: 0.6rem 0.75rem; }
  .editor__row-main { flex-basis: calc(100% - 4rem); order: 0; }
  .editor__handle { display: none; }   /* drag doesn't work on touch; arrows do */
  .editor__vis { max-width: none; flex: 1 1 100%; }
}

/* --- Festival entries (V010) ---------------------------------------------- */

.editor__entries { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.editor__entries:empty { display: none; }

.editor__result {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.editor__result--submitted { color: var(--warn); border-color: currentColor; }
.editor__result--rejected  { color: var(--bad);  border-color: currentColor; }
.editor__result--selected,
.editor__result--nominated { color: var(--ok);   border-color: currentColor; }
.editor__result--won       { color: var(--paper); background: var(--ok); border-color: var(--ok); }

/* --- Film images (V011) ---------------------------------------------------- */

.editor__group-title { flex: 1; margin: 0; }
.editor__upload { cursor: pointer; display: inline-block; }
.editor__upload:focus-within { outline: 2px solid var(--link-hover); outline-offset: 3px; }

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

.editor__image {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 1rem;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}
.editor__image + .editor__image { border-top: 1px solid var(--rule); }
.editor__image.editor__drop-before { border-top: 2px solid var(--link-hover); }
.editor__image.editor__drop-after { border-bottom: 2px solid var(--link-hover); }

.editor__thumb-wrap { display: flex; flex-direction: column; gap: 0.35rem; }
.editor__thumb {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: grab;
}
[data-kind="poster"] .editor__thumb { aspect-ratio: var(--poster-ratio); }
.editor__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.editor__thumb--missing { display: grid; place-items: center; color: var(--accent); font-size: 0.85rem; }

.editor__image-fields { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.editor__image-fields .editor__inline select.form__input { padding-top: 0.45rem; padding-bottom: 0.45rem; }

@media (max-width: 40rem) {
  .editor__image { grid-template-columns: 1fr; }
  .editor__thumb-wrap { max-width: 16rem; }
}


/* --- Top bar + back button (V015) -------------------------------------------
   Drawn by /js/site-bar.js into <header id="site-bar"> on every page. The
   header is empty in the HTML but already holds its height (below), so the
   page doesn't jump when the bar appears. Phones get the same items, tighter:
   icons replace the account words, and the links row scrolls sideways if a
   very narrow phone runs out of room. */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: none;
  height: var(--bar-h);
  background: var(--bar);
  border-bottom: 1px solid var(--rule);
}

.bar__inner {
  height: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 0.3rem + 1.2vw, 1.75rem);
}

.bar__home { flex: none; display: block; line-height: 0; border-radius: 50%; }
.bar__home img { width: 2.25rem; height: 2.25rem; display: block; }

.bar__links {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 0.5rem + 1.5vw, 1.75rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.bar__links::-webkit-scrollbar { display: none; }

.bar__link {
  flex: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.bar__link[aria-current="page"] { border-bottom-color: var(--action); font-weight: 500; }

/* Not built yet: shown, dimmed, does nothing. */
.bar__soon { color: var(--ink-soft); opacity: 0.55; cursor: default; }
.bar__soon:hover { color: var(--ink-soft); }

.bar__side { flex: none; display: flex; align-items: center; gap: 0.25rem; position: relative; }

.bar__icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;            /* 40px tap target */
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.bar__icon svg { width: 1.3rem; height: 1.3rem; }
.bar__icon:hover:not(.bar__soon) { background: var(--surface); color: var(--ink); }

.bar__account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}
.bar__account:hover { background: var(--surface); color: var(--ink); }
.bar__account svg { width: 1.3rem; height: 1.3rem; }
.bar__account[aria-current="page"] .bar__account-label { text-decoration: underline; text-decoration-color: var(--action); text-underline-offset: 0.35em; text-decoration-thickness: 2px; }

.bar__caret { width: 2rem; }
.bar__caret svg { width: 1rem; height: 1rem; transition: transform 0.15s; }
.bar__caret[aria-expanded="true"] svg { transform: rotate(180deg); }

.bar__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 15rem;
  max-width: calc(100vw - 1.5rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.bar__menu-item {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: none;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.bar__menu-item:hover:not(.bar__soon) { background: var(--paper); color: var(--ink); }
.bar__menu-note { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.bar__menu-email {
  padding: 0.5rem 0.75rem 0.6rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* Back: every page except home, just under the bar on the left. */
.back {
  flex: none;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.6rem var(--gutter) 0;
}
.back__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0 0.85rem 0 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.back__button:hover { background: var(--surface); }
.back__button svg { width: 1.1rem; height: 1.1rem; }

/* Label for screen readers only (icons on phones still get a name). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  .bar__link { font-size: 0.875rem; }
  .bar__home img { width: 2rem; height: 2rem; }
  .bar__account-label { display: none; }   /* icon only on phones */
  .bar__account { padding: 0; width: 2.5rem; justify-content: center; }
  .bar__account--login .bar__account-label { display: inline; }  /* "Log in" stays a word */
  .bar__account--login { width: auto; padding: 0 0.6rem; }
}

/* V070: phones make room for the search button: the "coming soon" bell
   (it does nothing) hides, and icons tighten a little. */
@media (max-width: 40rem) {
  .bar__side .bar__soon { display: none; }
  .bar__icon { width: 1.95rem; }
  .bar__caret { width: 1.4rem; }
  .bar__links { gap: 0.55rem; }
  .bar__link { font-size: 0.84rem; }
  .bar__inner { gap: 0.35rem; }
}

/* Very narrow phones (320px): tighten so "Community" still fits. */
@media (max-width: 22.5rem) {
  .bar__inner { gap: 0.5rem; padding: 0 0.6rem; }
  .bar__links { gap: 0.7rem; }
  .bar__link { font-size: 0.8rem; }
  .bar__home img { width: 1.85rem; height: 1.85rem; }
  .bar__side { gap: 0; }
  .bar__icon { width: 2rem; }
  .bar__account { width: 2rem; }
  .bar__account--login { width: auto; padding: 0 0.4rem; }
  .bar__caret { width: 1.4rem; }
}

/* V070: search in the bar. The button sits between the links and the account side. */
.bar__search-btn { flex: none; }
.bar-search { position: absolute; top: calc((var(--bar-h) - 2.4rem) / 2); z-index: 60; }
.bar-search__input { width: 100%; height: 2.4rem; padding-top: 0; padding-bottom: 0; border-radius: 999px; background: #111; font-size: 0.92rem; }
.bar-search__results { position: absolute; top: calc(100% + 0.5rem); max-height: min(70svh, 30rem); overflow-y: auto; padding: 0.25rem 0.5rem 0.5rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #0b0b0b; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6); }
.bar-search__results:empty { display: none; }
.bar-search__group { margin-top: 0.5rem; }
.bar-search__heading { margin: 0 0 0.25rem 0.5rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.bar-search__item { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.5rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.bar-search__item:hover, .bar-search__item:focus-visible { background: var(--surface); }
.bar-search__pic--framed { overflow: hidden; }
.bar-search__pic-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bar-search__pic { flex: none; width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; background: var(--surface); display: grid; place-items: center; font-size: 0.85rem; color: var(--ink-soft); }
.bar-search__text { display: flex; flex-direction: column; min-width: 0; }
.bar-search__label { overflow-wrap: anywhere; }
.bar-search__sub { font-size: 0.8rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-search__none { margin: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; }
.bar--searching .bar__search-btn { background: var(--surface); }

/* V071: the bell's list of notices. */
.bar-notes { position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 60; width: min(24rem, calc(100vw - 1rem)); max-height: min(70svh, 30rem); overflow-y: auto; padding: 0.4rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #0b0b0b; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6); }
.bar-notes__head { display: flex; align-items: center; justify-content: space-between; padding: 0.35rem 0.5rem 0.5rem; }
.bar-notes__title { font-weight: 500; }
.bar-notes__all { font-size: 0.82rem; }
.bar-notes__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.6rem; border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.bar-notes__item:hover { background: var(--surface); color: var(--ink); }
.bar-notes__item--new { color: var(--ink); }
.bar-notes__item--new::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.4rem; border-radius: 50%; background: var(--action); order: -1; }
.bar-notes__text { flex: 1; overflow-wrap: anywhere; }
.bar-notes__when { flex: none; font-size: 0.78rem; color: var(--ink-soft); }
.bar-notes__none { margin: 0.25rem 0.6rem 0.6rem; font-size: 0.88rem; color: var(--ink-soft); }

/* V070: the Official label on the studio's own account (Dylan, s16). */
.official-badge { display: inline-block; margin-left: 0.4em; padding: 0.1em 0.5em; border: 1px solid var(--action); border-radius: 999px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.5; color: var(--link-hover); vertical-align: middle; white-space: nowrap; }
.prof__name .official-badge { font-size: 0.8rem; }

/* YouTube links carry the YouTube icon (V015). */
.yt-link { display: inline-flex; align-items: center; gap: 0.45rem; }
.yt-link img { width: 1.4rem; height: auto; display: block; }

/* =============================================================================
   Public film pages (V017): /films and /films/<slug>
   ========================================================================== */

html.no-scroll { overflow: hidden; }

/* ---- Buttons under a poster / on a film page ---- */

.film-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.film-btn__icon { display: inline-grid; }
.film-btn__icon svg { width: 1.05rem; height: 1.05rem; }

/* Watch now: the one strong button. */
.film-btn--watch { background: var(--action); color: var(--on-action); }
.film-btn--watch:hover { background: var(--action-hover); color: var(--on-action); }

/* Trailer and the like: white outline. */
.film-btn--trailer,
.film-btn--bts,
.film-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.film-btn--trailer:hover,
.film-btn--bts:hover,
.film-btn--secondary:hover { background: var(--ink); color: var(--paper); }

/* About film: quiet grey. */
.film-btn--about { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.film-btn--about:hover { background: #222; color: var(--ink); }

/* Coming soon: shown, does nothing. */
.film-btn--soon { background: transparent; color: var(--ink-soft); border-color: var(--rule); cursor: default; }

/* Small label on a poster corner. */
.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.chip--bad { border-color: var(--bad); color: #fff; background: rgba(120, 20, 20, 0.85); }
/* V035: festival tag - green, with a star. */
.chip--festival { display: inline-flex; align-items: center; gap: 0.3rem; border-color: var(--ok); color: var(--ok); background: rgba(5, 46, 22, 0.85); }
.chip__icon { width: 0.8rem; height: 0.8rem; flex: none; }

/* ---- Poster image (index, rail, film page) ---- */

.poster {
  display: block;
  width: 100%;
  /* height: auto matters. The <img> carries width/height attributes (so the
     browser can reserve space), and a height attribute otherwise wins over
     aspect-ratio: posters came out 600px tall at any width (V017 bug). */
  height: auto;
  aspect-ratio: var(--poster-ratio);
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}
.poster--empty {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--rule);
  text-align: center;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---- Films index ---- */

.films {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem var(--gutter) 4rem;
}
.films__heading {
  margin: 0.25rem 0 1.25rem;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Two posters across on a phone, more as the screen widens. */
.film-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 13rem), 1fr));
  gap: clamp(0.9rem, 0.5rem + 1.5vw, 1.75rem);
}
.film-card { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.film-card .film-btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.film-card__poster { position: relative; display: block; border-radius: var(--radius); text-decoration: none; }
.film-card__poster .poster { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.film-card__poster:hover .poster { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7); }
.film-card__chips { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.film-card__meta { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.film-card__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.film-card__buttons .film-btn { width: 100%; padding-left: 0.4rem; padding-right: 0.4rem; }

/* Phones: two posters across leaves no room for two buttons side by side,
   so they stack, full width, under the poster. */
@media (max-width: 40rem) {
  .film-card__buttons { grid-template-columns: 1fr; gap: 0.4rem; }
  .film-card__buttons .film-btn { min-height: 2.4rem; font-size: 0.85rem; }
}

/* ---- Player dialog (YouTube, and full-size images) ---- */

.player {
  width: min(64rem, 100vw);
  max-width: 100vw;
  max-height: 100svh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.player::backdrop { background: rgba(0, 0, 0, 0.88); }
.player__box { padding: 0 clamp(0rem, 2vw, 1rem); }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem; }
.player__title { font-weight: 500; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.player__close svg { width: 1.25rem; height: 1.25rem; }
.player__frame { width: 100%; }
.player__frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}
.player__image {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 5rem);
  margin: 0 auto;
  border-radius: var(--radius);
}

/* ---- Film page layout: rail + main ---- */

.film-layout {
  flex: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  padding: 0.5rem var(--gutter) 4rem;
}

/* Desktop rail: sticky under the bar, scrolls on its own. */
.rail {
  position: sticky;
  top: calc(var(--bar-h) + 0.75rem);
  align-self: start;
  max-height: calc(100svh - var(--bar-h) - 1.5rem);
  overflow-y: auto;
  /* V066 (Dylan, s16): the scrollbar stays hidden until the rail is
     hovered or scrolled (film.js adds .is-scrolling), then shows thin and
     grey. Firefox reads scrollbar-color; Chrome/Safari the ::-webkit rules. */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}
.rail:hover, .rail.is-scrolling { scrollbar-color: rgba(255, 255, 255, 0.28) transparent; }
.rail::-webkit-scrollbar { width: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; }
.rail:hover::-webkit-scrollbar-thumb, .rail.is-scrolling::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); }
.rail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.rail__label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.rail__close { display: none; }
.rail__list { list-style: none; margin: 0; padding: 0 0.25rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
.rail__item { display: block; text-decoration: none; color: var(--ink-soft); border-radius: var(--radius); }
/* V061: no dimming (phones have no hover, so posters stayed grey); the blue border marks the film you're on. */
.rail__item .poster { border: 2px solid transparent; }
.rail__item--here .poster { opacity: 1; border-color: var(--action); }
.rail__title { display: block; margin-top: 0.3rem; font-size: 0.75rem; line-height: 1.3; }
.rail__item--here .rail__title { color: var(--ink); font-weight: 500; }

.rail-toggle, .rail-scrim { display: none; }

/* Phones: rail becomes a drawer, closed by default. */
@media (max-width: 48rem) {
  .film-layout { grid-template-columns: minmax(0, 1fr); }

  .rail-toggle {
    display: block;
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 15;
    transform: translateY(-50%);
    writing-mode: vertical-rl;          /* reads top to bottom along the edge */
    padding: 0.9rem 0.45rem;
    border: 1px solid var(--rule);
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
  }

  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: min(86vw, 22rem);
    max-height: none;
    /* V086: the desktop rule's align-self: start made browsers size the
       fixed drawer to its contents (taller than the screen), so it never
       scrolled on phones. Stretch it between top and bottom instead. */
    align-self: stretch;
    overscroll-behavior: contain;
    padding: 1rem;
    background: var(--bar);
    border-right: 1px solid var(--rule);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }
  .rail__close {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }
  .rail__close svg { width: 1.2rem; height: 1.2rem; }
  .rail__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

  body.rail-open .rail { transform: none; }
  body.rail-open .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.7);
  }
}

/* ---- Film page content ---- */

.film-main { min-width: 0; display: flex; flex-direction: column; gap: clamp(1.75rem, 1rem + 2vw, 2.75rem); }

.film-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.film-hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px);
  transform: scale(1.04);
}
.film-hero--backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.7) 100%);
}
.film-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem);
  align-items: end;
  padding: clamp(0rem, 1vw, 1.5rem);
}
.film-hero--backdrop .film-hero__inner { padding: clamp(1rem, 0.5rem + 2vw, 2rem); }
.film-hero__poster .poster { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7); }
.film-hero__info { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.film-hero__title {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 3.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.film-hero__facts { margin: 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.film-hero__logline { margin: 0; max-width: 36rem; font-size: 1.05rem; font-weight: 300; color: #cfcfcf; }   /* V086: a soft grey, not pure white (Dylan s19) */
.film-hero__buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 0.25rem; }
.film-hero__buttons .film-btn { min-height: 2.9rem; padding: 0.55rem 1.3rem; font-size: 0.95rem; }

@media (max-width: 40rem) {
  .film-hero__inner { grid-template-columns: 1fr; align-items: start; }
  .film-hero__poster { width: min(62%, 15rem); margin: 0 auto; }
  .film-hero__info { text-align: center; align-items: center; }
  .film-hero__buttons { justify-content: center; width: 100%; }
  .film-hero__buttons .film-btn { flex: 1 1 10rem; }
  .film-hero--backdrop::after { background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 70%); }
}

.film-section { display: flex; flex-direction: column; gap: 0.9rem; }
.film-section__heading {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.film-section p { margin: 0; }
.film-synopsis { display: flex; flex-direction: column; gap: 0.8rem; max-width: 42rem; font-weight: 300; font-size: 1.02rem; }

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(48%, 15rem), 1fr));
  gap: 0.6rem;
}
.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery__item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.2s; }
.gallery__item:hover img { transform: scale(1.03); }

.credits-card { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.credits-card + .credits-card { margin-top: 0.25rem; }
.credits-card__heading { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 500; }
.credits {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45rem 1.25rem;
}
.credits__role { margin: 0; color: var(--ink-soft); font-size: 0.9rem; text-align: right; }
.credits__role-line { display: block; }   /* V137: one line per "… by" part */
.credits__prefix { font-weight: 300; color: var(--ink-soft); }
.credits__name { margin: 0; font-weight: 500; }
.credits__char { font-weight: 300; font-style: italic; color: var(--ink-soft); }
@media (max-width: 30rem) {
  .credits { grid-template-columns: 1fr; gap: 0; }
  .credits__role { text-align: left; font-size: 0.8rem; margin-top: 0.55rem; }
}

.festivals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.festival {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius);
  background: var(--surface);
}
.festival__text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
/* V065: festival logo, small, at its own shape (Dylan, s16). */
.festival--logo { flex-direction: row; align-items: center; gap: 0.85rem; }
.festival__logo { flex: none; display: block; max-width: 6rem; max-height: 3rem; width: auto; height: auto; object-fit: contain; }
.festival--won { border-left-color: var(--warn); }
.festival__result { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); }
.festival--won .festival__result { color: var(--warn); }
.festival__name { font-weight: 500; }
.festival__cat { font-size: 0.85rem; color: var(--ink-soft); }

.film-missing { display: flex; flex-direction: column; gap: 1rem; padding: 3rem 0; }

/* ---- Film editor tabs (V019) ---- */
.tabs { margin: -0.25rem 0 0; }
.tabs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__end { margin-left: auto; }
.tabs__tab {
  display: block;
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab--here { color: var(--ink); font-weight: 500; border-bottom-color: var(--action); }
.tabs__tab--view { color: var(--link-hover); }
.people-tabs { margin: 0.25rem 0 0.5rem; }   /* V063: Members | Email list */

/* Replace file on an image (V019) */
.editor__replace { cursor: pointer; }
.editor__replace:focus-within { outline: 2px solid var(--link-hover); outline-offset: 3px; }

/* Admin row on a public film page (V019) */
.film-hero__admin { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.film-btn--small { min-height: 2rem; padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* =============================================================================
   Home page (V020)
   ========================================================================== */

/* The bar floats over the title screen, clear at the top and solid once you
   scroll (home.js sets --bar-alpha from 0 to 1). */
body.home .bar {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, var(--bar-alpha, 0));
  border-bottom-color: rgba(42, 42, 42, var(--bar-alpha, 0));
  transition: background-color 0.2s linear;
}
/* While it's clear, a soft shadow keeps the links readable over a still. */
body.home .bar.bar--clear .bar__link,
body.home .bar.bar--clear .bar__account,
body.home .bar.bar--clear .bar__icon { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
body.home .bar.bar--clear .bar__home img { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6)); }

.home-hero {
  --home-fade: 1.5s;             /* must match FADE_MS in home.js */
  position: relative;
  flex: none;
  height: 100svh;
  min-height: 26rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1a1a1a 0%, #000 70%);
}
.home-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(calc(1.04 * var(--frame-z, 1)));   /* V039: a slide's zoom (image-frame.js) */
  transition: opacity var(--home-fade) ease, transform 6s ease-out;
}
.home-hero__slide.is-on { opacity: 1; transform: scale(var(--frame-z, 1)); }
.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.95) 100%);
}
.home-hero__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--bar-h) 1.25rem 3rem;
  text-align: center;
}
/* Logo and line share the same spot; one fades out as the other fades in. */
.home-hero__logo,
.home-hero__line { grid-area: 1 / 1; }
.home-hero__logo {
  width: min(62vw, 22rem);
  height: auto;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s ease, transform 1.2s ease;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}
.home-hero__logo.is-shown { opacity: 1; transform: none; }
.home-hero__logo.is-gone { opacity: 0; transform: scale(1.03); }
.home-hero__line {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.1rem, 0.6rem + 2.5vw, 2.375rem);   /* V021: half the V020 size */
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 1s ease, transform 1s ease;
}
.home-hero__line.is-shown { opacity: 1; transform: none; }

.home-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  animation: home-bob 2.4s ease-in-out infinite;
}
.home-hero__scroll svg { width: 1.3rem; height: 1.3rem; }
@keyframes home-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide, .home-hero__logo, .home-hero__line { transition: none; }
  .home-hero__scroll { animation: none; }
}

.home-main {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 1rem + 3vw, 3.5rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.home-section { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: calc(var(--bar-h) + 1rem); }
.home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.home-section__heading { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.01em; }
.home-section__more { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }

.home-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; }
.home-teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
/* V022: a teaser whose page exists is a link card. */
a.home-teaser--link { color: inherit; text-decoration: none; transition: border-color 0.15s ease; }
a.home-teaser--link:hover, a.home-teaser--link:focus-visible { border-color: var(--ink-soft); }
a.home-teaser--link .home-teaser__heading::after { content: " →"; color: var(--ink-soft); }
.home-teaser .chip { background: transparent; color: var(--ink-soft); border-color: var(--rule); }
.home-teaser__heading { margin: 0.25rem 0 0; font-size: 1.2rem; font-weight: 500; }
.home-teaser__text { margin: 0; font-size: 0.92rem; font-weight: 300; color: var(--ink-soft); }

.home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}
.home-footer__fine { color: var(--ink-soft); font-size: 0.8rem; }

/* ---- Contact page (V022) ---- */
.contact { justify-content: flex-start; }   /* top-aligned, so the thanks doesn't jump to mid-screen */
.contact__form { max-width: none; width: 100%; }
.contact__form textarea.form__input { min-height: 9rem; }
.contact__captcha { min-height: 65px; }          /* Turnstile's widget height, so the button doesn't jump */
.contact__done { display: flex; flex-direction: column; gap: 0.75rem; }
.contact__done-line { margin: 0; font-size: 1.35rem; font-weight: 500; outline: none; }

/* ---- Portal: Messages (V022) ---- */
.tabs__tab--button { font: inherit; font-size: 0.9rem; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.message--new { border-color: var(--ink-soft); }
.message__email { font-weight: 400; color: var(--ink-soft); word-break: break-all; }
.message__when { margin: 0; padding: 0.6rem 1rem 0; font-size: 0.8rem; color: var(--ink-soft); }
.message__body { margin: 0; padding: 0.5rem 1rem 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 300; }
.message__actions { margin: 0; padding: 0.25rem 1rem 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; }
.message__reply { display: inline-block; padding: 0.45rem 0.9rem; text-decoration: none; }
.message__reply:hover { color: var(--on-action); }
.message__danger { color: var(--bad); }
.message__confirm { font-size: 0.9rem; }

/* ---- Film editor Save bar (V023, js/unsaved-guard.js) ---- */
/* Under the tabs; only there with unsaved changes; stays just below the
   sticky top bar while scrolling. */
.savebar {
  position: sticky;
  top: var(--bar-h);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.savebar[hidden] { display: none; }
.savebar__msg { font-size: 0.92rem; color: var(--warn); }
.savebar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; }
.savebar .form__button { padding: 0.5rem 1.1rem; }
.savebar--alert { border-color: var(--warn); animation: savebar-nudge 0.45s ease 2; }
.savebar--alert .savebar__msg { color: var(--ink); }
.savebar__leave { color: var(--bad); }
@keyframes savebar-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .savebar--alert { animation: none; } }
/* The credits page's selection bar sits at the same height; move it below. */
.has-savebar .editor__bulk { top: calc(var(--bar-h) + 3.6rem); }

/* V117 (Dylan, s27): small pill tabs (Contact us · Apply to work with us). */
.pilltabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.pilltabs__tab { display: inline-flex; align-items: center; padding: 0.3rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.pilltabs__tab:hover { color: var(--ink); border-color: var(--ink-soft); }
.pilltabs__tab[aria-current="page"] { color: var(--ink); background: var(--surface); border-color: var(--action); }

/* Turnstile box on login (V025) and later join: hold its height so the
   button doesn't jump when the check appears. */
.captcha-box { min-height: 65px; }

/* ---- Settings page (V026) ---- */
.settings__section { display: flex; flex-direction: column; gap: 0.75rem; }
.settings__heading { margin: 0.5rem 0 0; font-size: 1.3rem; font-weight: 500; }
.settings__group { display: flex; flex-direction: column; gap: 0; }
.settings__row { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.settings__group .settings__row:first-of-type { border-top: 0; }
.settings__row-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.settings__row-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 1rem; }
.settings__meta { margin-left: auto; }
.settings__problem { color: var(--bad); }
.settings__reset { font-size: 0.8rem; }

/* On/off switch: a real checkbox, drawn as a track. */
.settings__switch { display: inline-flex; align-items: center; gap: 0.65rem; cursor: pointer; width: fit-content; }
.settings__switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.settings__switch-track { position: relative; width: 2.6rem; height: 1.45rem; border-radius: 999px; background: var(--rule); transition: background 0.15s ease; }
.settings__switch-track::after { content: ""; position: absolute; top: 0.18rem; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ink); transition: transform 0.15s ease; }
.settings__switch-input:checked + .settings__switch-track { background: var(--action); }
.settings__switch-input:checked + .settings__switch-track::after { transform: translateX(1.1rem); }
.settings__switch-input:focus-visible + .settings__switch-track { outline: 2px solid var(--link-hover); outline-offset: 3px; }
.settings__switch-text { font-size: 0.9rem; }
.settings__text { resize: vertical; line-height: 1.45; }

/* ---- Join page (V027) ---- */
.join { justify-content: flex-start; }
.join__form { max-width: none; width: 100%; }
.join__consent { margin: 0; font-size: 0.9rem; color: var(--ink); }
/* V065: invitation notice and the "no more invitations" view. */
.join__invite { margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--action); border-radius: var(--radius); font-size: 0.92rem; }
.join__stop { display: flex; flex-direction: column; gap: 0.5rem; }
.join__stop p { margin: 0; }
.join__preview { margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--warn); border-radius: var(--radius); color: var(--warn); font-size: 0.85rem; }

/* ---- Subscribers (V028) ---- */
/* margin: .editor__actions zeroes it, and this section isn't a flex column (V029) */
.subs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1.25rem 0 1rem; }
.subs__email { word-break: break-all; }

/* ---- About editor (V030) ---- */
.about-ed__page-photo { padding: 1rem; }
.about-ed__page-inner { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.about-ed__wide { width: 100%; max-width: 32rem; aspect-ratio: 16 / 9; cursor: pointer; }
.about-ed__headshot { aspect-ratio: 4 / 5; cursor: pointer; }
.about-ed__headshot img { object-fit: cover; }
.about-ed__headshot .frame { width: 100%; height: 100%; border-radius: 0; }
.about-ed__headshot .frame img { width: 100%; height: 100%; }
.about-ed__nophoto { color: var(--ink-soft); cursor: default; }
.about-ed__bio-head { padding: 0; border-bottom: 0; }
.about-ed__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.about-ed__links:empty { display: none; }
.about-ed__link { flex-wrap: nowrap; }
.about-ed__link .form__input { width: auto; min-width: 0; flex: 1 1 10rem; }
.about-ed__link .about-ed__link-label { flex: 0 1 8rem; }
.about-ed__links + .form__link, .about-ed__links ~ .form__link { align-self: flex-start; }
@media (max-width: 40rem) {
  .about-ed__link { flex-wrap: wrap; }
  .about-ed__link .about-ed__link-label { flex: 1 1 100%; }
  .about-ed__headshot { max-width: 10rem; }
}
.about-ed__add-hint { margin: 0; padding: 0 1rem 1rem; }

/* ---- About page (V031) ---- */
.about { display: flex; flex-direction: column; gap: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.about .films__heading { margin-bottom: 0; }
.about__story { max-width: 42rem; display: flex; flex-direction: column; gap: 0.9rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.65; }
.about__story p { margin: 0; }
.about__photo { margin: 0; }
.about__photo img { display: block; width: 100%; max-height: 36rem; object-fit: cover; border-radius: var(--radius); }
.about__section { display: flex; flex-direction: column; gap: 1.25rem; }
.about__team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); }
.about__member { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: start; }
.about__headshot-wrap { position: relative; }
.about__headshot { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.about__headshot--empty { display: grid; place-items: center; font-size: 2rem; color: var(--ink-soft); border: 1px solid var(--rule); }
.about__headshot-wrap .film-card__chips { top: 0.35rem; left: 0.35rem; }
.about__member-text { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.about__name { margin: 0; font-size: 1.15rem; font-weight: 500; }
.about__role { margin: 0; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.about__bio { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; line-height: 1.6; }
.about__bio p { margin: 0; }
.about__films { margin: 0; font-size: 0.9rem; }
.about__films-label { color: var(--ink-soft); }
.about__links { list-style: none; margin: 0.15rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.9rem; }

/* ---- About revamp (V040): team as portrait cards + profile dialog ---- */
.about { gap: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.about > .films__heading { margin-bottom: -0.5rem; }
.about__story { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 300; line-height: 1.6; max-width: 44rem; }
.about__section:not(.about__contact) > .home-section__heading { padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100% / 2 - 0.5rem, 14rem), 1fr)); gap: clamp(1rem, 0.6rem + 1.5vw, 2rem); }
.team-card { min-width: 0; }
.team-card__button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 0.6rem; width: 100%; cursor: pointer; border-radius: var(--radius); }
.team-card__button:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 4px; }
.team-card__photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.team-card__photo .frame { width: 100%; height: 100%; border-radius: 0; }
.team-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: grayscale(0.15); }
.team-card__button:hover .team-card__img, .team-card__button:focus-visible .team-card__img { filter: none; }
.team-card__button:hover .team-card__photo > .team-card__img { transform: scale(1.03); }
.team-card__img--empty { display: grid; place-items: center; font-size: 2.5rem; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: var(--radius); }
.team-card__photo .film-card__chips { top: 0.5rem; left: 0.5rem; }
.team-card__name { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); font-weight: 500; line-height: 1.25; }
.team-card__role { margin-top: -0.35rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.person { width: min(56rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100svh - 2rem); margin: auto; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bar); color: var(--ink); overflow: auto; }
.person::backdrop { background: rgba(0, 0, 0, 0.82); }
.person__box { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.person__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; }
.person__photo { position: relative; aspect-ratio: 1 / 1; align-self: start; background: var(--surface); }   /* V061: square everywhere */
.person__photo .frame { width: 100%; height: 100%; border-radius: 0; }
.person__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person__img--empty { display: grid; place-items: center; font-size: 4rem; color: var(--ink-soft); }
.person__text { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); padding-right: 4rem; min-width: 0; }
.person__name { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.person__roles { margin: -0.5rem 0 0; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.6; }
.person__bio { display: flex; flex-direction: column; gap: 0.75rem; line-height: 1.65; font-weight: 300; }
.person__bio p { margin: 0; }
.person__block { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.person__label { margin: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.person__films, .person__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
@media (max-width: 40rem) {
  .person__box { grid-template-columns: 1fr; }
  .person__text { padding-right: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
}

.about__contact { align-items: flex-start; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.about__contact .scaffold__note { margin: 0; }
@media (max-width: 30rem) {
  .about__member { grid-template-columns: 5.5rem 1fr; }
}
.about__contact .form__button { display: inline-block; text-decoration: none; }
.about__contact .form__button:hover { color: var(--on-action); }

/* ---- V041 (Dylan, s11) ------------------------------------------------- */

/* A very quick fade as each page loads. No fill mode, so nothing is left
   applied afterwards (an opacity left on <body> would change stacking). */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-in 0.18s ease-out; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* Slimmer "About film" / "Watch now" buttons under poster cards. */
.film-card__buttons { gap: 0.4rem; }
.film-card__buttons .film-btn { min-height: 2rem; padding-top: 0.25rem; padding-bottom: 0.25rem; font-size: 0.82rem; }
.film-card__buttons .film-btn__icon svg { width: 0.95rem; height: 0.95rem; }
@media (max-width: 40rem) {
  .film-card__buttons { gap: 0.35rem; }
  .film-card__buttons .film-btn { min-height: 2rem; font-size: 0.8rem; }
}

/* About: the wide photo becomes a short banner at the top of the page. */
.about__photo { margin: 0 0 calc(-0.55 * clamp(2.5rem, 1.8rem + 3vw, 4.5rem)); }
.about > .films__heading { margin-bottom: calc(-0.6 * clamp(2.5rem, 1.8rem + 3vw, 4.5rem)); }
.about__photo img { width: 100%; height: auto; aspect-ratio: 3 / 1; max-height: none; object-fit: cover; }
@media (max-width: 40rem) { .about__photo img { aspect-ratio: 2 / 1; } }

/* About: the story is regular body size, not lead size. */
.about__story { font-size: 0.95rem; font-weight: 300; line-height: 1.7; max-width: 40rem; gap: 0.75rem; }

/* About: up to six team cards across at full width (two on a phone). */
.team { grid-template-columns: repeat(auto-fill, minmax(min(100% / 2 - 0.5rem, 10rem), 1fr)); gap: clamp(0.9rem, 0.6rem + 1vw, 1.5rem); }
.team-card__name { font-size: 0.95rem; }
.team-card__role { font-size: 0.7rem; }

/* Film page: switching films in the rail swaps the page in place (V042).
   The old film dims briefly while the next one loads, then the new one
   fades in. */
.film-main { transition: opacity 0.12s ease-out; }
.film-main--leaving { opacity: 0.35; }
.film-main--entering { animation: page-in 0.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .film-main, .film-main--entering { transition: none; animation: none; } }

/* About: the story's date (V043). */
.about__story .about__stamp { margin-top: 0.15rem; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-soft); }

/* ---- V044 (Dylan, s11) ------------------------------------------------- */

/* Image viewer: step through a gallery. Arrows sit over the picture's edges. */
.player__stage { position: relative; }
.player__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: var(--ink); cursor: pointer;
}
.player__nav:hover { background: rgba(0, 0, 0, 0.8); }
.player__nav:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
.player__nav svg { width: 1.3rem; height: 1.3rem; }
.player__nav--prev { left: 0.75rem; }
.player__nav--next { right: 0.75rem; }

/* Home stills: a steady zoom-out across fade in + hold + fade out
   (1.5 + 3 + 1.5 = 6 s, from home.js). Starts 10% in. */
.home-hero__slide { transform: scale(var(--frame-z, 1)); transition: opacity var(--home-fade) ease; }
.home-hero__slide.is-on { transform: scale(var(--frame-z, 1)); }
.home-hero__slide.is-moving { animation: home-zoom 6s linear both; }
@keyframes home-zoom {
  from { transform: scale(calc(1.1 * var(--frame-z, 1))); }
  to   { transform: scale(var(--frame-z, 1)); }
}
@media (prefers-reduced-motion: reduce) { .home-hero__slide.is-moving { animation: none; } }

/* The top bar: darker once solid (it was #0a0a0a). */
.bar { background: #050505; }
body.home .bar { background: rgba(5, 5, 5, var(--bar-alpha, 0)); }

/* "Watch now": YouTube red. */
.film-btn--watch { background: #ff0000; color: #fff; }
.film-btn--watch:hover { background: #cc0000; color: #fff; }

/* About: team cards lift and zoom a little on hover, like the posters. */
.team-card__photo { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.team-card__photo > .frame, .team-card__photo > .team-card__img { transition: transform 0.5s ease, filter 0.5s ease; }
.team-card__button:hover .team-card__photo, .team-card__button:focus-visible .team-card__photo { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7); }
.team-card__button:hover .team-card__photo > .frame, .team-card__button:hover .team-card__photo > .team-card__img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .team-card__photo, .team-card__photo > .frame, .team-card__photo > .team-card__img { transition: none; }
}

/* Footer: icon links only (YouTube, Instagram). */
.social { display: inline-flex; align-items: center; gap: 1.1rem; }
.social__link { display: inline-grid; place-items: center; color: #fff; line-height: 0; opacity: 0.9; }
.social__link:hover { opacity: 1; color: #fff; }
.social__link img { width: 1.75rem; height: auto; }
.social__link svg { width: 1.5rem; height: 1.5rem; }

/* ---- V045 (Dylan, s11) ------------------------------------------------- */

/* Leaving for another page: a quick fade out (site-bar.js), then the next
   page fades in (body, V041). */
html.page-leaving body { opacity: 0; transition: opacity 0.15s ease-in; }
/* V160 (Dylan s54): inside the Portal (every Portal page's main is .editor) only the
   page fades, in and out; the top bar, the sidebar and the chat bubble stay put. */
body:has(main.editor) { animation: none; }
body:has(main.editor) main.editor, body:has(main.editor) .ptabs { animation: page-in 0.18s ease-out; }
html.page-leaving body:has(main.editor) { opacity: 1; transition: none; }
html.page-leaving body:has(main.editor) main.editor, html.page-leaving body:has(main.editor) .ptabs { opacity: 0; transition: opacity 0.15s ease-in; }
@media (prefers-reduced-motion: reduce) { body:has(main.editor) main.editor, body:has(main.editor) .ptabs { animation: none; } }

/* Home stills zoom out at a quarter of the V044 speed (V086, Dylan s19: half
   again, very subtle): 2.5% over the same 6 s, so they barely start cropped. */
@keyframes home-zoom {
  from { transform: scale(calc(1.025 * var(--frame-z, 1))); }
  to   { transform: scale(var(--frame-z, 1)); }
}

/* "Watch now": a deeper, calmer YouTube red. White on it reads at 6:1. */
.film-btn--watch { background: #c4161c; }
.film-btn--watch:hover { background: #a31217; }

/* Top bar: the LCA mark's letters sat about 2.5 px below the link text
   (measured: the letters' middle vs the capitals' middle). */
.bar__home img { translate: 0 -0.15rem; }

/* ---- V046 (Dylan, s11, 0015): home title screen ------------------------ */

/* Each slide layer: a blurred copy (Theatre only) under the picture. */
.home-hero__pic, .home-hero__blur { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.home-hero__blur { display: none; filter: blur(28px) brightness(0.45) saturate(1.1); transform: scale(1.12); }
.home-hero__slide.is-theatre .home-hero__blur { display: block; }
.home-hero__slide.is-theatre .home-hero__pic { background-size: contain; }

/* Video: one clip at a time; black fades in over the last moment of each. */
.home-hero__slide.is-video { animation: none; transform: none; background: #000; }
.home-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero__black { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.home-hero__black.is-on { opacity: 1; }

/* The logo can stay: it zooms back a little and settles (home.intro_text off). */
.home-hero__logo.is-settled { opacity: 1; transform: scale(0.8); transition: opacity 1s ease, transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .home-hero__logo.is-settled, .home-hero__black { transition: none; } }

/* Home title screen editor (V046). */
.slides-ed__thumb { aspect-ratio: 16 / 9; }
.slides-ed__thumb img, .slides-ed__thumb video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.slides-ed__source { margin: 0; }
.slides-ed__hint { margin: 0; padding: 0 1rem 0.75rem; }
.slides-ed__shapes { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.slides-ed__shape { display: flex; flex-direction: column; gap: 0.5rem; }
.slides-ed__shape .frame-ed { max-width: 15rem; }
.slides-ed__shape .frame-ed__box[style*="9 / 19"] { max-width: 8rem; }
.slides-ed__picker { padding: 0.5rem 1rem 1rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.6rem; }
.slides-ed__film { margin: 0.5rem 0 0; font-size: 0.9rem; font-weight: 500; }
.slides-ed__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.slides-ed__pick { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--surface); }
.slides-ed__pick img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.75; }
.slides-ed__pick:hover img, .slides-ed__pick.is-picked img { opacity: 1; }
.slides-ed__pick.is-picked { border-color: var(--action); }
.slides-ed__pick:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
.slides-ed__kind { position: absolute; left: 0.3rem; bottom: 0.3rem; padding: 0 0.4rem; border-radius: 999px; background: rgba(0, 0, 0, 0.7); font-size: 0.7rem; }
.slides-ed__pickbar { margin-top: 0.5rem; }
/* V063: thumbnail grid, size slider, drag to reorder, detail panel */
.slides-ed__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0.25rem 0 1rem; }
.slides-ed__size { display: inline-flex; align-items: center; gap: 0.6rem; }
.slides-ed__size input { width: 10rem; accent-color: var(--action); }
.slides-ed__tiles { list-style: none; margin: 0; padding: 0.75rem 1rem 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--slides-tile, 140px)), 1fr)); gap: 0.6rem; }
.slides-ed__tiles .editor__empty { grid-column: 1 / -1; padding: 0; }
.slides-ed__tile { position: relative; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.slides-ed__tile-btn { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: grab; background: #000; border: 2px solid transparent; }
.slides-ed__tile-btn img, .slides-ed__tile-btn video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.slides-ed__tile-btn:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
.slides-ed__tile.is-open .slides-ed__tile-btn { border-color: var(--action); }
.slides-ed__tile-missing { display: grid; place-items: center; height: 100%; font-size: 0.75rem; color: var(--ink-soft); }
.slides-ed__tile-num { position: absolute; top: 0.3rem; left: 0.3rem; min-width: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: rgba(0, 0, 0, 0.75); font-size: 0.7rem; line-height: 1.4rem; text-align: center; }
.slides-ed__tile-tags { position: absolute; left: 0.3rem; right: 0.3rem; bottom: 0.3rem; display: flex; flex-wrap: nowrap; gap: 0.2rem; overflow: hidden; }
.slides-ed__tile-tag { padding: 0 0.4rem; border-radius: 999px; background: rgba(0, 0, 0, 0.75); font-size: 0.65rem; line-height: 1.3rem; white-space: nowrap; }
.slides-ed__tile-tag--ok { color: var(--ok); }
.slides-ed__tile-tag--warn { color: var(--warn); }
.slides-ed__tile-tag--bad { color: var(--bad); }
.slides-ed__tile.is-placeholder { opacity: 0.3; }
.slides-ed__ghost { position: fixed; left: 0; top: 0; z-index: 50; margin: 0; pointer-events: none; list-style: none; opacity: 0.9; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); border-radius: var(--radius); }
.slides-ed__ghost .slides-ed__tile-btn { cursor: grabbing; border-color: var(--link-hover); }
html.slides-ed-dragging, html.slides-ed-dragging * { cursor: grabbing !important; }
.slides-ed__detail:empty { display: none; }
.slides-ed__detail { border-top: 1px solid var(--rule); }
.slides-ed__detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; grid-column: 1 / -1; }

/* About banner: three heights (V046), each a little taller on phones. The
   photo fills the strip; its framing (focus point, zoom) picks what shows. */
.about__photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 1; }
.about__photo--short  { aspect-ratio: 4 / 1; }
.about__photo--tall   { aspect-ratio: 2 / 1; }
@media (max-width: 40rem) {
  .about__photo { aspect-ratio: 2 / 1; }
  .about__photo--short { aspect-ratio: 5 / 2; }
  .about__photo--tall  { aspect-ratio: 3 / 2; }
}
.about__photo > img, .about__photo > .frame { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.about__photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }

/* ---- V047 (Dylan, s11, 0016/0017) -------------------------------------- */

/* Round photos beside credits. */
.credits--faces .credits__role { align-self: center; }
.credits--faces .credits__name { display: flex; align-items: center; gap: 0.6rem; }
.credits__face { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; overflow: hidden; background: var(--rule); display: grid; place-items: center; }
.credits__face .frame { width: 100%; height: 100%; border-radius: 50%; }
.credits__face-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credits__face--empty { color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; }
@media (max-width: 30rem) { .credits--faces .credits__name { margin-top: 0.2rem; } }

/* YouTube views and likes under a film's facts. */
.film-hero__yt { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.film-hero__yt-icon { display: inline-grid; color: #c4161c; }
.film-hero__yt-icon svg { width: 1.1rem; height: 1.1rem; }

/* About gallery (V047): a tidy 3:2 grid; the film link sits quietly under. */
.about-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100% / 2 - 0.5rem, 14rem), 1fr)); gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); }
.about-gallery__item { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.about-gallery__open { all: unset; box-sizing: border-box; position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.about-gallery__open:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 3px; }
.about-gallery__open .frame { width: 100%; height: 100%; border-radius: 0; }
.about-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.about-gallery__open:hover .about-gallery__img, .about-gallery__open:hover .frame { transform: scale(1.03); }
.about-gallery__film { align-self: flex-start; font-size: 0.75rem; color: var(--ink-soft); text-decoration: none; letter-spacing: 0.02em; }
.about-gallery__film:hover { color: var(--ink); text-decoration: underline; }
.player__link { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.player__link:hover { color: var(--ink); }
.credits-ed__face { width: 2rem; height: 2rem; }
.credits-ed__face--big { width: 3rem; height: 3rem; }
.credits-ed__photo .frame-ed { max-width: 10rem; }
.credits-ed__photo .frame-ed__box { border-radius: 50%; }

/* Your account (V048). */
.account__block { display: flex; flex-direction: column; gap: 0.6rem; max-width: 28rem; margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.account__label { margin: 0; font-size: 1rem; font-weight: 500; }
.account__block .form__hint { margin: 0; }
.account__block p { margin: 0; }
.account__films { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }   /* V063 */

/* Admin bell (V049): a small count of New messages. */
.bar__bell { position: relative; }
.bar__badge { position: absolute; top: 0.2rem; right: 0.15rem; min-width: 1.1rem; height: 1.1rem; padding: 0 0.3rem; border-radius: 999px; background: #c4161c; color: #fff; font-size: 0.65rem; font-weight: 500; line-height: 1.1rem; text-align: center; pointer-events: none; }

/* ---- V050 (Dylan, s11, 0018): film title fonts ------------------------- */
.film-hero__title { font-size: calc(clamp(2rem, 1.2rem + 3.5vw, 3.75rem) * var(--title-scale, 1)); }
.film-hero__title.has-title-font { letter-spacing: normal; font-weight: 400; }
.poster--empty .has-title-font { font-weight: 400; font-size: 1.25em; color: var(--ink); }

/* Fonts page + the Title font field (V050). */
.fonts-ed__list { list-style: none; margin: 0; padding: 0; }
.fonts-ed__item { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem; }
.fonts-ed__item + .fonts-ed__item { border-top: 1px solid var(--rule); }
.fonts-ed__sample { margin: 0; font-size: 2rem; line-height: 1.15; overflow-wrap: anywhere; }
.fonts-ed__sample--title { font-size: calc(2.25rem * var(--title-scale, 1)); font-weight: 500; padding: 0.4rem 0; }
.fonts-ed__sample--title.has-title-font { font-weight: 400; }
.fonts-ed__meta { margin: 0; }
.fonts-ed__needs { margin: 0; color: var(--warn); }   /* V175: an older Google or Adobe row with no file */
.fonts-ed__add { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem 1rem; align-items: flex-start; }
.fonts-ed__add .form__hint { margin: 0; }
.fonts-ed__add .editor__inline { width: 100%; }
.fonts-ed__add .editor__inline .form__input { flex: 1 1 12rem; }

/* ---- V051 (Dylan, s11, 0019): home banner + smaller logo --------------- */

/* The logo: 75% of its old size on load, and settles smaller still. */
.home-hero__logo { width: min(46vw, 16.5rem); }
.home-hero__logo.is-settled { transform: scale(0.72); }

/* A scheduled banner takes over the title screen. */
.home-hero.has-banner .home-hero__shade { background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.9) 100%); }
.home-banner__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.home-banner { position: absolute; inset: 0; display: flex; padding: calc(var(--bar-h) + 1.5rem) clamp(1.25rem, 5vw, 4rem) 4.5rem;
  background: rgba(0, 0, 0, var(--banner-shade, 0.35)); pointer-events: none; align-items: center; }
.home-banner--center { justify-content: center; text-align: center; }
.home-banner--left { justify-content: flex-start; text-align: left; }
.home-banner--bottom { align-items: flex-end; }
.home-banner__text { display: flex; flex-direction: column; gap: 0.9rem; max-width: 46rem; pointer-events: auto;
  opacity: 0; transform: translateY(0.75rem); transition: opacity 1s ease, transform 1s ease; }
.home-banner--center .home-banner__text { align-items: center; }
.home-banner--left .home-banner__text { align-items: flex-start; }
.home-banner.is-shown .home-banner__text { opacity: 1; transform: none; }
.home-banner__headline { margin: 0; font-size: calc(clamp(2.25rem, 1.2rem + 4.5vw, 4.75rem) * var(--title-scale, 1)); font-weight: 500;
  line-height: 1.02; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); overflow-wrap: anywhere; }
.home-banner__headline.has-title-font { font-weight: 400; letter-spacing: normal; }
.home-banner__subline { margin: 0; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 300; line-height: 1.5; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.home-banner__count { margin: 0; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.home-banner__buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.home-banner--center .home-banner__buttons { justify-content: center; }
.home-banner__btn { min-height: 2.75rem; padding: 0.5rem 1.3rem; background: transparent; color: #fff; border-color: #fff; }
.home-banner__btn:hover { background: #fff; color: #000; }
.home-banner__btn--main { background: #fff; color: #000; }
.home-banner__btn--main:hover { background: #e5e5e5; color: #000; }
@media (prefers-reduced-motion: reduce) { .home-banner__text { transition: none; } }

/* Home banners editor (V051). */
.banners-ed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.banners-ed__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.8rem 1rem; }
.banners-ed__toggle { all: unset; box-sizing: border-box; flex: 1 1 16rem; display: flex; flex-direction: column; gap: 0.15rem; cursor: pointer; }
.banners-ed__toggle:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 3px; border-radius: var(--radius); }
.banners-ed__title { font-weight: 500; }
.banners-ed__chips { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.banners-ed__body { display: flex; flex-direction: column; gap: 1rem; padding: 0.25rem 1rem 1rem; border-top: 1px solid var(--rule); }
.banners-ed__media { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 40rem) { .banners-ed__media { grid-template-columns: 1fr; } }
.banners-ed__chain { align-self: flex-start; }
.home-banner--bottom { padding-bottom: 6rem; }
.account__consent { margin: 0; flex-basis: 100%; font-size: 0.85rem; color: var(--ink-soft); }

/* ---- Work with us: /apply and /portal/applications (V054) ---- */
.apply { justify-content: flex-start; }
.apply__form { max-width: none; width: 100%; }
.apply__form textarea.form__input { min-height: 8rem; }
.apply__existing { margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius); font-size: 0.9rem; }
.apply__group { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.apply__group legend { padding: 0; margin-bottom: 0.5rem; }
.apply__choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.apply__choice, .apply__role { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.apply__choice input, .apply__role input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--action); flex: none; }
.apply__roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 0.55rem 1rem; }
.apply__optional { font-weight: 300; color: var(--ink-soft); }
.apply__login { display: flex; flex-direction: column; gap: 0.75rem; }
.apply__login-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.apply__withdraw { margin: 0; font-size: 0.9rem; }
.app__details { margin: 0; padding: 0.5rem 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 0.4rem 1rem; font-size: 0.9rem; }
.app__detail { min-width: 0; }
.app__detail dt { font-size: 0.75rem; color: var(--ink-soft); }
.app__detail dd { margin: 0; overflow-wrap: anywhere; }
.app__note-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0 1rem 0.5rem; }
.app__note { flex: 1; min-height: 2.6rem; resize: vertical; font-size: 0.9rem; }
.app__move { font-size: 0.9rem; color: var(--ink-soft); }
a.form__button.apply__go { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ---- Productions (V055, 0022) ---- */
.prod-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.editor__group-heading { margin: 0; font-size: 1.05rem; font-weight: 500; }
.prod-add { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.prod-add__heading { flex: none; margin: 0; font-size: 1rem; }
.prod-add__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 0.75rem; }
.prod-add__title { grid-column: 1 / -1; }
.prod-add p { margin: 0; }
.prod-stage { margin: 0 0 1.5rem; }
.prod-stage__heading { margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.prod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.prod-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.prod-item--episode { margin-left: 1.5rem; }
.prod-item__title { font-weight: 500; }
.prod-item__meta { font-size: 0.85rem; color: var(--ink-soft); }
.prod-item__dates { margin-left: auto; font-size: 0.85rem; color: var(--ink-soft); }
.prod-dates { display: flex; flex-direction: column; gap: 0.6rem; }
.prod-date { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.5rem 0.75rem; align-items: center; }
.prod-date__name { font-size: 0.9rem; }
.prod-date__name--here { color: var(--link-hover); font-weight: 500; }
.prod-date .editor__check { font-weight: 400; font-size: 0.85rem; }
.prod-date input[type="date"] { min-width: 0; width: 100%; }
.prod-episodes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
@media (max-width: 40rem) {
  .prod-date { grid-template-columns: 1fr 1fr; }
  .prod-date__name { grid-column: 1 / -1; }
  .prod-item--episode { margin-left: 0.75rem; }
  .prod-item__dates { margin-left: 0; width: 100%; }
}

/* ---- Production people + contacts (V056) ---- */
.prod-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.prod-person { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prod-person__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.prod-person__name { font-weight: 500; }
.prod-person__roles { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.prod-role { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.3rem 0.15rem 0.6rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.8rem; }
.prod-role__x { font: inherit; line-height: 1; padding: 0.1rem 0.35rem; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; }
.prod-role__x:hover { color: var(--bad); }
.prod-person__contact { font-size: 0.85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.prod-person__contact a { color: inherit; }
.prod-contact { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.prod-contact__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; }
.prod-contact p { margin: 0; }
.prod-person-add { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.prod-person-add p, .prod-person-add h3 { margin: 0; }
/* V148 (Dylan s31, s43): the role picker needs more than a narrow grid cell, or its
   "Choose a role" list ran over the Character box until a role was added */
.prod-person-add .editor__grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }
.prod-person-add .editor__grid > * { min-width: 0; }
.prod-sync-note a { color: var(--link-hover); }

/* ---- Join button in the bar (V057) ---- */
.bar__join { margin-right: 0.35rem; display: inline-flex; align-items: center; padding: 0.3rem 0.85rem; border: 1px solid var(--action); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.bar__join:hover, .bar__join:focus-visible { background: var(--action); color: var(--on-action); }

/* ---- Members (V057, 0023; roomier V058) ---- */
.members__tools { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.25rem 0 1rem; }
.members__search { max-width: 24rem; }
.members__card { margin-bottom: 1.25rem; }
.members__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; padding: 0.9rem 1rem 1.25rem; }
.members__col { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.members__label { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.members__tiers { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.members__tier { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; font-size: 0.9rem; }
.members__tier--on { border-color: var(--action); }
.members__tier--locked { border-color: var(--action); cursor: default; }
.members__tier input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--action); }
.members__name { width: 100%; max-width: 22rem; }
.members__new { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.members__new .form__input { flex: 1 1 12rem; }
.members__noname { color: var(--ink-soft); font-style: italic; font-weight: 400; }
.members__you { color: var(--ink-soft); font-weight: 400; }
.members__confirm { margin: 0; padding: 0 1rem 1rem; }
.members__badges { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; justify-content: flex-end; }
.members__foot { padding-top: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.members__del { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; padding: 0 1rem 1rem; max-width: 32rem; }
.members__del p { margin: 0; }
.members__del-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.members__del-row .form__input { flex: 0 1 12rem; }
/* V069 (0032): reports */
.reports__card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; margin-bottom: 0.75rem; }
.reports__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; }
.reports__who { overflow-wrap: anywhere; font-weight: 500; }
.reports__reason { margin: 0; }
.reports__card .message__when { margin: 0; padding: 0; }
.reports__actions { margin: 0.25rem 0 0; }
/* V065 (0029): invitations */
.members__law { border-left: 3px solid var(--warn); padding-left: 0.75rem; }
.members__invite-form { margin: 0.75rem 0 0.5rem; }
.members__invite-form .form__button { flex: 0 0 auto; }
#invite-confirm .members__confirm { padding: 0.25rem 0 1rem; }
/* V060 (0025): blocked emails */
.members__blocks { margin-top: 2.5rem; }
.members__block-form { margin: 0.75rem 0 1rem; }
.members__block-form .form__button { flex: 0 0 auto; }
.members__block-list { list-style: none; margin: 0; padding: 0; }
.members__block { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.members__block-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.members__block-value { overflow-wrap: anywhere; }
.members__block-meta { font-size: 0.8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
@media (max-width: 40rem) { .members__row { grid-template-columns: 1fr; } }
@media (max-width: 26rem) {
  .bar__join { margin-right: 0.15rem; padding: 0.2rem 0.6rem; font-size: 0.85rem; }
  /* V070: room for search beside Join and Log in. */
  .bar__join { padding: 0.2rem 0.5rem; font-size: 0.8rem; }
  .bar__account--login { padding: 0 0.35rem; font-size: 0.85rem; }
  .bar__home img { width: 1.8rem; height: 1.8rem; }
  .bar__links { gap: 0.5rem; }
}

/* V063, link style A: standalone links show no underline until hovered. */
.scaffold__links a, .scaffold__mark a, .scaffold__links .form__link { text-decoration: none; }
.scaffold__links a:hover, .scaffold__mark a:hover, .scaffold__links .form__link:hover { text-decoration: underline; }

/* --- V064 (0028): public profiles (/@handle) and the profile editor ------ */
.credits__link { color: inherit; }
.person__profile { margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.person__profile .form__button { display: inline-block; text-decoration: none; }
.portal__mine { border-top: 0; padding-top: 0; }

.prof { max-width: 56rem; }
.prof__card { display: flex; flex-direction: column; }
.prof__banner { position: relative; aspect-ratio: 16 / 5; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--rule); }
.prof__banner .frame, .prof__banner-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prof__banner--default { display: grid; place-items: center; }
.prof__banner-logo { width: clamp(5rem, 4rem + 6vw, 9rem); height: auto; opacity: 0.9; }
.prof__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.25rem; padding: 0.75rem clamp(0.5rem, 2vw, 1.5rem) 0; position: relative; }
/* Only the photo overlaps the banner; the name sits below it. */
.prof__avatar { width: clamp(5.5rem, 4.5rem + 5vw, 9rem); aspect-ratio: 1 / 1; margin-top: calc(-0.75rem - clamp(2.5rem, 2rem + 3vw, 4.5rem)); border-radius: 50%; overflow: hidden; background: var(--surface); border: 4px solid var(--paper); flex: 0 0 auto; position: relative; }
.prof__avatar .frame, .prof__avatar-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* V068: follows (Dylan, s16). */
.prof__counts { margin: 0.35rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.9rem; }
.prof__count { padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; cursor: pointer; }
.prof__count:hover { color: var(--ink); }
.prof__count:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; border-radius: 4px; }
.prof__count-n { color: var(--ink); font-weight: 500; }
.prof__follow { min-width: 7rem; }
.prof-follows { width: min(26rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100svh - 4rem)); padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); }
.prof-follows::backdrop { background: rgba(0, 0, 0, 0.7); }
.prof-follows__head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--surface); }
.prof-follows__title { margin: 0; font-size: 1rem; font-weight: 500; }
.prof-follows__close { border: 0; background: none; color: var(--ink-soft); font-size: 1rem; cursor: pointer; padding: 0.25rem 0.4rem; }
.prof-follows__close:hover { color: var(--ink); }
.prof-follows__body { padding: 0.75rem 1.1rem 1rem; }
.prof-follows__body p { margin: 0.25rem 0 0.75rem; }
.prof-follows__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.prof-follows__person { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; text-decoration: none; color: var(--ink); }
.prof-follows__person:hover .prof-follows__name { text-decoration: underline; }
.prof-follows__face { width: 2.5rem; height: 2.5rem; }
.prof-follows__face .frame { width: 100%; height: 100%; border-radius: 50%; }
.prof-follows__names { display: flex; flex-direction: column; min-width: 0; }
.prof-follows__name { overflow-wrap: anywhere; }
.prof-follows__handle { font-size: 0.82rem; color: var(--ink-soft); overflow-wrap: anywhere; }

/* V069: block and report (Dylan, s16). */
.prof__more { position: relative; }
.prof__more > summary { list-style: none; cursor: pointer; min-width: 2.75rem; text-align: center; }
.prof__more > summary::-webkit-details-marker { display: none; }
.prof__more-menu { position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 20; min-width: 12rem; padding: 0.35rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; }
.prof__more-item { text-align: left; padding: 0.55rem 0.7rem; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 0.92rem; cursor: pointer; }
.prof__more-item:hover, .prof__more-item:focus-visible { background: rgba(255, 255, 255, 0.07); }
.prof-report__reasons { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.25rem 0 0.9rem; }
.prof-report__reason { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.prof-report__reason input { accent-color: var(--action); width: 1rem; height: 1rem; margin: 0; }
.account__blocked { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.account__blocked li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.account__blocked a { overflow-wrap: anywhere; }

/* V066: a profile photo opens full size (Dylan, s16). */
.prof__avatar-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 50%; }
.prof__avatar-btn:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
.prof__avatar--empty { display: grid; place-items: center; font-size: 2.5rem; color: var(--ink-soft); }
.prof__names { flex: 1 1 12rem; min-width: 0; padding-bottom: 0.4rem; }
.prof__name { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.prof__handle { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.9rem; overflow-wrap: anywhere; }
.prof__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0.4rem; }
.prof__actions .form__button { display: inline-block; text-decoration: none; }
.prof__btn-quiet { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
.prof__btn-quiet:hover { background: var(--surface); color: var(--ink); }
.prof__tips { margin: 1.5rem clamp(0.5rem, 2vw, 1.5rem) 0; padding: 1rem 1.25rem; border: 1px dashed var(--action); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.5rem; }
.prof__tips-title { margin: 0; font-size: 1.05rem; font-weight: 500; }
.prof__search-q { margin: 0; font-size: 0.95rem; }
.prof__tips .form__hint { margin: 0; }
.prof__tips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.92rem; }
.prof__tips-list .is-done { color: var(--ink-soft); text-decoration: line-through; }
.prof__tips-actions { margin: 0.25rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.prof__tips-actions .form__button { display: inline-block; text-decoration: none; }
.prof__body { display: flex; flex-direction: column; gap: 1.75rem; padding: 1.75rem clamp(0.5rem, 2vw, 1.5rem) 0; }
.prof__section { display: flex; flex-direction: column; gap: 0.6rem; }
.prof__bio { max-width: 42rem; line-height: 1.65; font-weight: 300; }
.prof__bio p { margin: 0; }
.prof__label { margin: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.prof__skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.prof__skill { padding: 0.25rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.85rem; }
/* V065: credited films as posters, smaller than /films (Dylan, s16). */
.prof__posters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.75rem; max-width: 46rem; }
@media (max-width: 30rem) { .prof__posters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; } }
.prof__poster { display: block; text-decoration: none; }
.prof__poster-slot { display: block; }
.prof__poster .poster { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.prof__poster:hover .poster { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7); }
.prof__poster .poster--empty { font-size: 0.8rem; padding: 0.5rem; }
.prof__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.prof__host { color: var(--ink-soft); font-size: 0.8rem; }
.prof__gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: 0.5rem; }
.prof__shot { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.prof__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.prof__shot:hover img { transform: scale(1.03); }
.prof__missing { display: flex; flex-direction: column; gap: 1rem; padding: 3rem 0; }

/* V065: Names photos and festival logos in the editors. */
.names-ed__photo { margin-bottom: 0.35rem; }
.names-ed__face { width: 2.75rem; height: 2.75rem; }
.names-ed__frame { max-width: 14rem; margin-bottom: 0.5rem; }
.names-ed__frame .frame-ed__box { border-radius: 50%; }
.fest-ed__logo-cell { min-width: 7rem; }
.fest-ed__logo { display: block; max-width: 6rem; max-height: 3rem; width: auto; height: auto; object-fit: contain; margin-bottom: 0.3rem; }

.prof-ed__wide { max-width: 40rem; }
.prof-ed__sub { margin-top: 0.75rem; }
.prof-ed__preview { width: 100%; max-width: 22rem; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--rule); }
.prof-ed__preview--photo { max-width: 10rem; border-radius: 50%; }
.prof-ed__preview img, .prof-ed__preview .frame { display: block; width: 100%; height: 100%; object-fit: cover; }
.prof-ed__preview--empty { display: grid; place-items: center; color: var(--ink-soft); font-size: 0.85rem; }
.prof-ed__pic-actions { margin-top: 0.5rem; }
.prof-ed__link { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
@media (max-width: 30rem) { .prof-ed__link { grid-template-columns: minmax(0, 1fr) auto; } .prof-ed__link .form__input { grid-column: 1 / -1; } }
.prof-ed__gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 0.75rem; }
.prof-ed__shot { display: flex; flex-direction: column; gap: 0.4rem; }
.prof-ed__shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); display: block; background: var(--surface); }

/* ---- V070 (0033): communities ----------------------------------------- */
.comm__intro { margin-top: -0.5rem; }
.comm-icon { flex: none; width: 3rem; height: 3rem; border-radius: 14px; object-fit: cover; background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center; font-size: 1.2rem; color: var(--ink-soft); }
.comm-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 0.75rem; }
.comm-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; height: 100%; }
.comm-card:hover { border-color: #3a3a3a; }
.comm-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.comm-card__name { font-weight: 500; overflow-wrap: anywhere; }
.comm-card__desc { font-size: 0.88rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comm-card__meta { font-size: 0.78rem; color: var(--ink-soft); }
.comm-card__state { flex: none; font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
.comm-card__join { flex: none; padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.comm-create { max-width: 36rem; margin: 0.5rem 0 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.comm-create__slug { display: flex; align-items: center; gap: 0.35rem; }
.comm-create__slug .form__input { flex: 1; min-width: 0; }
.comm-manage__mode { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.comm-manage__mode input { accent-color: var(--action); }

.comm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; margin: 0.5rem 0 0.5rem; }
.comm-head__icon { width: 4rem; height: 4rem; font-size: 1.6rem; border-radius: 18px; }
.comm-head__names { flex: 1 1 14rem; min-width: 0; }
.comm-head__name { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.comm-head__name a { color: var(--ink); text-decoration: none; }
.comm-head__meta { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.comm-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.comm-head__actions .form__button { display: inline-block; text-decoration: none; }
.comm__status { min-height: 1.2em; margin: 0 0 0.5rem; }
.comm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 1.5rem; align-items: start; }
@media (max-width: 56rem) { .comm-layout { grid-template-columns: minmax(0, 1fr); } .comm-layout--feed .comm-side { order: -1; } }
.comm-side__rules > summary { cursor: pointer; list-style: none; }
.comm-side__rules > summary::-webkit-details-marker { display: none; }
.comm-side__rules > summary::after { content: " ▾"; color: var(--ink-soft); }
.comm-side__rules[open] > summary::after { content: " ▴"; }
.comm-side__rules[open] > summary { margin-bottom: 0.5rem; }
.comm-main { min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.comm-side { display: flex; flex-direction: column; gap: 0.75rem; }
.comm-side__box { padding: 1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.92rem; }
.comm-side__box .form__hint { margin: 0; }
.comm-side__mod { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.comm-hint { margin: 0; }
.comm-sorts { margin: 0.25rem 0 0; }
.comm-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.comm-more { align-self: center; }
.comm-back { margin: 0; font-size: 0.9rem; }
.comm-back a { color: var(--ink-soft); text-decoration: none; }
.comm-back a:hover { color: var(--ink); }

.comm-compose { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.comm-compose__open { width: 100%; text-align: left; padding: 0.9rem 1rem; border: 0; background: none; color: var(--ink-soft); font: inherit; cursor: text; border-radius: var(--radius-lg); }
.comm-compose__open:hover { color: var(--ink); }
.comm-compose__form { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.comm-compose__form p { margin: 0; }
.comm-compose__thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.comm-compose__thumb { position: relative; width: 5.5rem; height: 5.5rem; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.comm-compose__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comm-compose__x { position: absolute; top: 0.2rem; right: 0.2rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.75); color: #fff; cursor: pointer; font-size: 0.75rem; }

.comm-post { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.comm-post--pinned { border-color: #1e3a8a; }
.comm-post__top { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.comm-post__top .comm-author { flex: 1; min-width: 0; }
.comm-post__title { margin: 0; font-size: 1.1rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
h1.comm-post__title { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); }
.comm-post__title a { color: var(--ink); text-decoration: none; }
.comm-post__title a:hover { text-decoration: underline; }
.comm-post__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.15rem; }
.comm-post__count { font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
a.comm-post__count:hover { color: var(--ink); }
.comm-pin { flex: none; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--link-hover); }
.comm-text { font-weight: 300; line-height: 1.6; overflow-wrap: anywhere; }
.comm-text p { margin: 0 0 0.6rem; }
.comm-text p:last-child { margin-bottom: 0; }
.comm-link { font-size: 0.9rem; overflow-wrap: anywhere; }
.comm-images { display: grid; gap: 0.35rem; border-radius: var(--radius); overflow: hidden; max-width: 40rem; }
.comm-images--1 { grid-template-columns: 1fr; }
.comm-images--2, .comm-images--4 { grid-template-columns: 1fr 1fr; }
.comm-images--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.comm-images--3 .comm-images__item:first-child { grid-row: span 2; }
.comm-images__item { display: block; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.comm-images--1 .comm-images__item { aspect-ratio: auto; max-height: 32rem; }
.comm-images--3 .comm-images__item { aspect-ratio: auto; }
.comm-images__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comm-images--1 .comm-images__item img { object-fit: contain; max-height: 32rem; }
.comm-video { position: relative; display: block; width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); cursor: pointer; }
.comm-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.comm-video__play { position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #c4161c; color: #fff; display: grid; place-items: center; font-size: 1.2rem; padding-left: 0.2rem; }

.comm-author { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; min-width: 0; font-size: 0.88rem; }
.comm-author__face { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }
.comm-author__face .frame { width: 100%; height: 100%; border-radius: 50%; }
.comm-author__name { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
a.comm-author__name:hover { text-decoration: underline; }
.comm-author__when { color: var(--ink-soft); white-space: nowrap; }
.comm-author .official-badge { margin-left: 0; }
.comm-gone { color: var(--ink-soft); font-weight: 400; font-style: italic; }

.comm-votes { display: inline-flex; align-items: center; gap: 0.15rem; border: 1px solid var(--rule); border-radius: 999px; padding: 0.1rem; }
.comm-vote { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; padding: 0; }
.comm-vote svg { width: 1.05rem; height: 1.05rem; }
.comm-vote:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.comm-vote--up.is-on { color: var(--ok); }
.comm-vote--down.is-on { color: var(--bad); }
.comm-votes__score { min-width: 1.6rem; text-align: center; font-size: 0.88rem; font-weight: 500; }
.comm-menu { flex: none; }
.comm-menu__btn { list-style: none; cursor: pointer; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.comm-menu__btn::-webkit-details-marker { display: none; }
.comm-menu__btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.comm-menu__danger { color: #f87171; }

.comm-thread { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.comm-comment-form { display: flex; flex-direction: column; gap: 0.5rem; }
.comm-comment-form p { margin: 0; }
.comm-comments { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--rule); display: flex; flex-direction: column; gap: 0.75rem; }
.comm-comments--root { padding-left: 0; border-left: 0; }
.comm-comment { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.comm-comment--pinned > .comm-comment__top .comm-author__name { color: var(--link-hover); }
.comm-comment--flat > .comm-comments { padding-left: 0; border-left: 0; }
.comm-comment__top { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.comm-comment__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.comm-comment__actions .comm-votes { border: 0; padding: 0; }
.comm-comment__actions .comm-vote { width: 1.75rem; height: 1.75rem; }
.comm-replybtn { font-size: 0.85rem; }
.comm-reply:empty { display: none; }

.comm-manage__form { max-width: 40rem; }
.comm-manage__icon { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comm-manage__iconimg { width: 4rem; height: 4rem; }

/* V071 (0034): Be notified, Edited */
.comm-notify > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; padding-left: 0.75rem; padding-right: 0.75rem; }
.comm-notify > summary::-webkit-details-marker { display: none; }
.comm-notify > summary svg { width: 1.15rem; height: 1.15rem; }
.comm-notify > summary.is-on { color: var(--link-hover); border-color: var(--action); }
.comm-notify__menu { min-width: 16rem; padding: 0.75rem; gap: 0.5rem; }
.comm-notify__title { margin: 0 0 0.25rem; font-weight: 500; font-size: 0.92rem; }
.comm-notify__opt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.comm-notify__opt input { accent-color: var(--action); width: 1rem; height: 1rem; margin: 0; }
.comm-notify__st { margin: 0; min-height: 1em; }
.comm-edited { flex: none; font-size: 0.75rem; color: var(--ink-soft); font-style: italic; }
.comm-edit__row { margin: 0 0 0.5rem; }
.comm-edit__row .form__input { width: 100%; }

/* ==========================================================================
   V072 (0035): direct messages - the bar icon, the chat panel, /messages
   ========================================================================== */
.bar__dm { position: relative; }
.bar__dm[hidden] { display: none; }
.bar__caret-person { display: none; }
@media (max-width: 40rem) {
  /* The Profile link gives its room to messages; the menu button shows the
     person icon instead ("Your profile" is the menu's first item). */
  .bar__account:not(.bar__account--login) { display: none; }
  .bar__caret { width: 1.95rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0; border-radius: 999px; }
  .bar__caret-person { display: inline-grid; }
  .bar__caret-person svg { width: 1.25rem; height: 1.25rem; }
  .bar__caret > svg { width: 0.6rem; height: 0.6rem; margin-left: -0.05rem; align-self: flex-end; margin-bottom: 0.55rem; }
}
@media (max-width: 22.5rem) {
  .bar__side .bar__icon { width: 1.9rem; }
  .bar__side .bar__caret { width: 1.6rem; }
  .bar__caret > svg { display: none; }
}

/* The panel: bottom-right on a computer, full screen under the bar on a phone. */
.dm-panel { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; width: 24rem; height: min(38rem, calc(100svh - var(--bar-h) - 2rem));
  display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #0b0b0b; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7); overflow: hidden; }
.dm-panel[hidden] { display: none; }
.dm-panel__head { flex: none; display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.6rem 0.55rem 1rem; border-bottom: 1px solid var(--rule); }
.dm-panel__title { font-weight: 500; margin-right: auto; }
.dm-panel__full { font-size: 0.82rem; color: var(--ink-soft); }
.dm-panel__full:hover { color: var(--link-hover); }
.dm-panel__close { border: 0; background: none; color: var(--ink-soft); font-size: 1rem; cursor: pointer; width: 2rem; height: 2rem; border-radius: 50%; }
.dm-panel__close:hover { background: var(--surface); color: var(--ink); }
.dm-panel__body { flex: 1; min-height: 0; display: flex; }
@media (max-width: 40rem) {
  .dm-panel { inset: var(--bar-h) 0 0 0; width: auto; height: auto; border: 0; border-radius: 0; }
  html.dm-open, html.dm-open body { overflow: hidden; }
}

/* The chat: a list and a main area. */
.dm { display: flex; min-height: 0; width: 100%; }
.dm__list, .dm__main { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.dm__list { overflow-y: auto; }
.dm--panel .dm__list, .dm--panel .dm__main { flex: 1; }
.dm--panel .dm__main { display: none; }
.dm--panel.dm--show-main .dm__list { display: none; }
.dm--panel.dm--show-main .dm__main { display: flex; }

.dm__listhead { position: sticky; top: 0; z-index: 2; background: inherit; padding: 0.35rem 0.75rem 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dm--panel .dm__listhead { background: #0b0b0b; }
.dm__tabs { display: flex; border-bottom: 1px solid var(--rule); }
.dm__tabs .tabs__tab { display: inline-flex; align-items: center; gap: 0.4rem; }
.dm__count { min-width: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: var(--action); color: #fff; font-size: 0.7rem; line-height: 1.15rem; text-align: center; }
.dm__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dm__new { padding: 0.45rem 0.8rem; font-size: 0.88rem; }
.dm__off { margin: 0 0.75rem 0.5rem; }
.dm__empty { margin: 0.5rem 1rem 1rem; color: var(--ink-soft); font-size: 0.9rem; }
.dm__threads { list-style: none; margin: 0; padding: 0 0.35rem 0.5rem; }
.dm__thread { width: 100%; display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.55rem; border: 0; border-radius: var(--radius); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dm__thread:hover { background: var(--surface); }
.dm__thread.is-here { background: #1b1b1b; }
.dm__thread-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.dm__thread-top { display: flex; align-items: baseline; gap: 0.5rem; }
.dm__thread-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.dm__thread.is-unread .dm__thread-name { font-weight: 500; }
.dm__thread-when { flex: none; font-size: 0.75rem; color: var(--ink-soft); }
.dm__thread-last { display: flex; align-items: center; gap: 0.4rem; min-width: 0; font-size: 0.84rem; color: var(--ink-soft); }
.dm__thread.is-unread .dm__thread-last { color: var(--ink); }
.dm__thread-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm__tag { flex: none; padding: 0 0.45rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.7rem; color: var(--ink-soft); line-height: 1.4; white-space: nowrap; }
.dm__unread { flex: none; min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem; border-radius: 999px; background: var(--action); color: #fff; font-size: 0.72rem; line-height: 1.25rem; text-align: center; }

.dm-face { width: 2.6rem; height: 2.6rem; font-size: 0.95rem; }
.dm-face .frame { width: 100%; height: 100%; border-radius: 50%; }
.dm-face--group { background: #1f2a44; color: var(--link-hover); }
.dm-face--pair { position: relative; flex: none; display: block; width: 2.6rem; height: 2.6rem; }
.dm-face--pair .credits__face { position: absolute; width: 1.85rem; height: 1.85rem; font-size: 0.7rem; border: 2px solid #0b0b0b; }
.dm-face__a { left: 0; top: 0; }
.dm-face__b { right: 0; bottom: 0; }

/* One conversation */
.dm-head { flex: none; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); min-width: 0; }
.dm-head__back { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0 0.15rem; }
.dm-head__back:hover { background: var(--surface); }
.dm-head__names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-head__title { font-weight: 500; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dm-head__title:hover { text-decoration: underline; }
.dm-head__sub { font-size: 0.8rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-head .dm-face { width: 2.25rem; height: 2.25rem; }
.dm-head__menu > summary { padding: 0.35rem 0.6rem; min-width: 2.25rem; }
.dm-loading { padding: 1rem; }

.dm-banner { margin: 0.6rem 0.75rem 0; padding: 0.75rem 0.9rem; border: 1px solid var(--action); border-radius: var(--radius); background: rgba(37, 99, 235, 0.08); font-size: 0.9rem; }
.dm-banner p { margin: 0 0 0.6rem; }
.dm-banner p:last-child { margin: 0; }
.dm-banner .form__button { padding: 0.45rem 0.9rem; }

.dm-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0.75rem 0.75rem 0.5rem; overscroll-behavior: contain; }
.dm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.dm-day { align-self: center; margin: 0.75rem 0 0.35rem; font-size: 0.75rem; color: var(--ink-soft); }
/* V148 (Dylan s43): the "New messages" line, and the back-to-the-newest button */
.dm-scrollwrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dm-new { align-self: stretch; display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0.4rem; font-size: 0.72rem; color: var(--link-hover); transition: opacity 1.5s ease; }
.dm-new::before, .dm-new::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.45; }
.dm-new--fade { opacity: 0; }
.dm-tobottom { position: absolute; right: 0.75rem; bottom: 0.6rem; width: 2rem; height: 2rem; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(20, 20, 20, 0.85); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); opacity: 0.85; transition: opacity 0.15s ease; }
.dm-tobottom:hover, .dm-tobottom:focus-visible { opacity: 1; }
.dm-tobottom[hidden] { display: none; }
@supports (backdrop-filter: blur(4px)) { .dm-tobottom { backdrop-filter: blur(6px); } }
.dm-event { align-self: center; margin: 0.35rem 0; text-align: center; font-size: 0.8rem; color: var(--ink-soft); }
.dm-older { align-self: center; margin-bottom: 0.5rem; }
.dm-msg { display: flex; align-items: flex-end; gap: 0.4rem; max-width: 100%; }
.dm-msg--mine { justify-content: flex-end; }
.dm-msg--named { margin-top: 0.45rem; }
.dm-msg__face { flex: none; width: 1.75rem; align-self: flex-start; padding-top: 1.2rem; }
.dm-msg__face .dm-face { width: 1.75rem; height: 1.75rem; font-size: 0.7rem; }
.dm-msg__col { display: flex; flex-direction: column; min-width: 0; max-width: min(80%, 34rem); }
.dm-msg--mine .dm-msg__col { align-items: flex-end; }
.dm-msg__name { font-size: 0.75rem; color: var(--ink-soft); margin: 0 0 0.15rem 0.6rem; }
.dm-msg__row { display: flex; align-items: center; gap: 0.15rem; min-width: 0; max-width: 100%; }
.dm-msg--mine .dm-msg__row { flex-direction: row-reverse; }
.dm-bubble { min-width: 0; padding: 0.5rem 0.8rem; border-radius: 1.1rem; background: #1e1e1e; color: var(--ink); font-size: 0.87rem; }   /* V140: was 0.93rem (Dylan s35: slightly smaller) */
.dm-msg--mine .dm-bubble { background: var(--action); color: #fff; }
.dm-bubble .comm-text { font-weight: 400; line-height: 1.45; }
.dm-bubble .comm-text p { margin: 0 0 0.4rem; }
.dm-bubble .comm-text p:last-child { margin: 0; }
.dm-bubble a { color: inherit; text-decoration: underline; }
.dm-msg--mine .dm-bubble a:hover { color: #dbeafe; }
.dm-bubble--gone, .dm-msg--mine .dm-bubble--gone { background: none; border: 1px solid var(--rule); color: var(--ink-soft); font-style: italic; }
.dm-msg__meta { display: flex; gap: 0.45rem; align-items: center; margin: 0.1rem 0.6rem 0.25rem; font-size: 0.68rem; color: var(--ink-soft); }
.dm-msg__meta .comm-edited { font-size: 0.68rem; }
.dm-seen { color: var(--ink-soft); }
.dm-msg__menu { opacity: 0; transition: opacity 0.12s; position: relative; }
.dm-msg:hover .dm-msg__menu, .dm-msg__menu[open], .dm-msg__menu:focus-within { opacity: 1; }
@media (hover: none) { .dm-msg__menu { opacity: 0.6; } }
.dm-msg__menu .comm-menu__btn { width: 1.75rem; height: 1.75rem; }
.dm-msg__menu .prof__more-menu { top: auto; bottom: calc(100% + 0.2rem); }
.dm-msg--mine .dm-msg__menu .prof__more-menu { right: 0; }
.dm-msg:not(.dm-msg--mine) .dm-msg__menu .prof__more-menu { right: auto; left: 0; }
.dm-edit { display: flex; flex-direction: column; gap: 0.35rem; width: min(30rem, 70vw); }
.dm-edit .editor__inline { flex-wrap: wrap; margin: 0; }
.dm-confirm { margin: 0.2rem 0.6rem; }

.dm-foot { flex: none; border-top: 1px solid var(--rule); padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px)); }
.dm-compose__row { display: flex; align-items: flex-end; gap: 0.5rem; }
.dm-compose__box { flex: 1; min-width: 0; resize: none; max-height: 10rem; line-height: 1.4; padding: 0.55rem 0.8rem; border-radius: 1.2rem; }
.dm-compose__send { flex: none; padding: 0.55rem 1rem; border-radius: 999px; }
.dm-compose__st { min-height: 0; }
.dm-compose__st:empty { display: none; }
.dm-note { margin: 0.25rem 0; font-size: 0.88rem; color: var(--ink-soft); text-align: center; }

.dm-pane { padding: 0.9rem 1rem 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.dm-pane .form__input { width: 100%; }
.dm-pane .editor__inline .form__input { flex: 1; width: auto; }
.dm-pane__gap { margin-top: 0.5rem; }
.dm-pick { display: flex; flex-direction: column; gap: 0.35rem; }
.dm-pick__results { list-style: none; margin: 0; padding: 0; }
.dm-pick__none { padding: 0.4rem 0.2rem; font-size: 0.88rem; color: var(--ink-soft); }
.dm-pick__person { width: 100%; display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.4rem; border: 0; border-radius: var(--radius); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dm-pick__person:hover, .dm-pick__person:focus-visible { background: var(--surface); }
.dm-pick__person .dm-face { width: 2.1rem; height: 2.1rem; }
.dm-pick__names { display: flex; flex-direction: column; min-width: 0; }
.dm-pick__name { overflow-wrap: anywhere; }
.dm-pick__handle { font-size: 0.8rem; color: var(--ink-soft); }
.dm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dm-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.3rem 0.2rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.85rem; }
.dm-chip__x { border: 0; background: none; color: var(--ink-soft); cursor: pointer; width: 1.4rem; height: 1.4rem; border-radius: 50%; font-size: 0.7rem; }
.dm-chip__x:hover { background: var(--surface); color: var(--ink); }
.dm-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dm-people__row { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; }
.dm-people__person { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.dm-people__person:hover span { text-decoration: underline; }
.dm-people__person .dm-face { width: 2.1rem; height: 2.1rem; }
.dm-blank { flex: 1; display: grid; place-items: center; color: var(--ink-soft); padding: 2rem; text-align: center; }

/* The /messages page */
.dm-page-wrap { width: 100%; min-width: 0; max-width: 72rem; margin: 0 auto; padding: 0.5rem var(--gutter) 1.5rem; }
.dm-page-wrap .films__heading { margin-bottom: 0.75rem; }
.dm--page { height: calc(100svh - var(--bar-h) - 10rem); min-height: 26rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #0b0b0b; overflow: hidden; }
.dm--page .dm__list { flex: none; width: 21rem; border-right: 1px solid var(--rule); }
.dm--page .dm__listhead { background: #0b0b0b; padding-top: 0.6rem; }
.dm--page .dm__main { flex: 1; }
.dm--page .dm-head__back { display: none; }
.dm--page .dm-head__back.dm-head__back--always { display: block; }
@media (max-width: 48rem) {
  .dm-page-wrap { padding-bottom: 0.5rem; }
  .dm--page .dm__list { width: auto; flex: 1; border-right: 0; }
  .dm--page .dm__main { display: none; }
  .dm--page.dm--show-main .dm__list { display: none; }
  .dm--page.dm--show-main .dm__main { display: flex; }
  .dm--page .dm-head__back { display: block; }
}

/* Reports: a reported direct message's text, as the reporter shared it */
.reports__snapshot { margin: 0.25rem 0 0.5rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--rule); color: var(--ink); font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* V074 (0036): reactions and "typing..." in direct messages */
.dm-react .comm-menu__btn svg { width: 1.05rem; height: 1.05rem; }
.dm-react__pick { flex-direction: row; min-width: 0; padding: 0.3rem; gap: 0.1rem; }
.dm-react__opt { border: 0; background: none; font-size: 1.25rem; line-height: 1; width: 2.3rem; height: 2.3rem; border-radius: 50%; cursor: pointer; }
.dm-react__opt:hover, .dm-react__opt:focus-visible { background: rgba(255, 255, 255, 0.09); }
.dm-reacts { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.2rem 0.4rem 0; }
.dm-msg--mine .dm-reacts { justify-content: flex-end; }
.dm-reacts__chip { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.05rem 0.45rem; border: 1px solid var(--rule); border-radius: 999px; background: #141414; color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.dm-reacts__chip.is-mine { border-color: var(--action); background: rgba(37, 99, 235, 0.18); }
.dm-reacts__chip:disabled { cursor: default; }
.dm-reacts__n { font-size: 0.72rem; color: var(--ink-soft); }
.dm-typing { flex: none; margin: 0; padding: 0.15rem 1rem 0.3rem; font-size: 0.78rem; color: var(--ink-soft); font-style: italic; }
.dm-typing[hidden] { display: none; }
.comm-side__mods { margin-top: 0.35rem; }
.dm-msg__menu.dm-react .dm-react__pick { top: calc(100% + 0.2rem); bottom: auto; }
/* The picker hangs from the message column, not the small button, so it
   stays inside the conversation on a phone. */
.dm-scroll { overflow-x: clip; }
.dm-msg__col { position: relative; }
.dm-msg__menu.dm-react { position: static; }
.dm-msg:not(.dm-msg--mine) .dm-msg__menu.dm-react .dm-react__pick { left: 0; right: auto; }
.dm-msg--mine .dm-msg__menu.dm-react .dm-react__pick { right: 0; left: auto; }
#mod-note { margin-bottom: 1rem; }

/* V075 (Dylan s17): faces and first names, All / Direct / Groups, resizing,
   and the chat bubble */
.dm-msg__face { width: 1.5rem; padding-top: 1.05rem; }
.dm-msg__face .dm-face { width: 1.5rem; height: 1.5rem; font-size: 0.62rem; }
.dm-msg__name { font-size: 0.7rem; margin: 0 0 0.1rem 0.55rem; }
.dm__kinds { display: flex; gap: 0.35rem; }
.dm__kind { padding: 0.2rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--ink-soft); font: inherit; font-size: 0.8rem; cursor: pointer; }
.dm__kind:hover { color: var(--ink); }
.dm__kind.is-on { border-color: var(--action); color: var(--ink); background: rgba(37, 99, 235, 0.16); }
.dm-panel__close { font-size: 1.15rem; line-height: 1; }
.dm-panel__grip { position: absolute; z-index: 3; }
.dm-panel__grip--top { top: -3px; left: 14px; right: 0; height: 8px; cursor: ns-resize; }
.dm-panel__grip--left { left: -3px; top: 14px; bottom: 0; width: 8px; cursor: ew-resize; }
.dm-panel__grip--corner { left: -3px; top: -3px; width: 16px; height: 16px; cursor: nwse-resize; }
.dm-panel.is-resizing { user-select: none; }
@media (max-width: 40rem) { .dm-panel__grip { display: none; } }
.dm-launch { position: fixed; right: 1rem; bottom: 1rem; z-index: 44; }
.dm-launch[hidden] { display: none; }
.dm-launch__open { position: relative; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%; background: var(--action); color: #fff; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
.dm-launch__open:hover { background: var(--action-hover); }
.dm-launch__open svg { width: 1.45rem; height: 1.45rem; }
.dm-launch__open .bar__badge { top: -0.15rem; right: -0.15rem; }

/* V076 (Dylan s17): outlined chat bubble, default size, pin and mute flags,
   the Join email-list box, a hidden profile's note */
.dm-launch__open { background: rgba(0, 0, 0, 0.35); border: 1.5px solid var(--ink); color: var(--ink); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
.dm-launch__open:hover { background: rgba(255, 255, 255, 0.08); }
.dm-panel__reset { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; padding: 0; }
.dm-panel__reset[hidden] { display: none; }
.dm-panel__reset svg { width: 1rem; height: 1rem; }
.dm-panel__reset:hover { background: var(--surface); color: var(--ink); }
.dm__flag { margin-left: 0.35rem; font-size: 0.75rem; vertical-align: middle; }
.dm__flag--muted { padding: 0 0.4rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); font-size: 0.66rem; }
.join__optin { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; cursor: pointer; }
.join__optin input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--action); }
.join__sender { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--ink-soft); }
.join__age { margin-top: 0.25rem; }   /* V172: the age tick above the search box */
.prof__hidden-note { margin: 0.75rem 1.25rem 0; padding: 0.6rem 0.85rem; border: 1px solid var(--warn); border-radius: var(--radius); font-size: 0.88rem; }

/* V077 (Dylan s17): Members faces; Home shows one row of the newest films */
.members__heading { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; }
.members__face { width: 2rem; height: 2rem; font-size: 0.8rem; }
.members__face-link { line-height: 0; border-radius: 50%; }
.members__profile { color: var(--ink); text-decoration: none; font-weight: 500; }
.members__profile:hover { text-decoration: underline; }
.film-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 40rem) {
  /* One swipeable row on a phone. */
  .film-grid--row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.25rem; }
  .film-grid--row::-webkit-scrollbar { display: none; }
  .film-grid--row > li { flex: 0 0 44%; scroll-snap-align: start; }
}
.home-section__all { margin: 1.25rem 0 0; text-align: center; }

/* V078 (Dylan s18): the Settings frame (js/settings-frame.js), drawn at the
   top of every settings page so they read as tabs on one page. */
/* V100: the Settings frame (V078) became the Portal sidebar; its styles are below (.pnav). */
.has-pnav .people-tabs { display: none; }   /* the sidebar lists Members, Email list and Invitations */

/* V078: the Portal home (/portal/, js/portal-home.js) */
.portal-home__welcome { margin: 0.25rem 0 1rem; font-size: 1.05rem; }
.portal-home .scaffold__links { flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.dash__more { margin: auto 0 0; font-size: 0.88rem; }
.phome__prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; }
.phome__prod { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.85rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.phome__prod-title { margin: 0; font-size: 1rem; font-weight: 500; }
.phome__prod-meta, .phome__mine, .phome__logline { margin: 0; font-size: 0.9rem; }
.phome__logline { font-weight: 300; color: var(--ink-soft); }
.phome__stage { font-weight: 500; }
.phome__stage--production { color: var(--warn); }
.phome__stage--festival_run { color: var(--ok); }
.phome__dates { font-size: 0.88rem; }
.phome__team summary, .phome__past summary { cursor: pointer; font-size: 0.88rem; color: var(--ink-soft); }
.phome__team summary:hover, .phome__past summary:hover { color: var(--ink); }
.phome__team .dash__list { margin-top: 0.4rem; font-size: 0.88rem; }
.phome__past { margin-top: 0.9rem; }
.phome__past > .phome__prods { margin-top: 0.6rem; }
.phome__unread a { font-weight: 500; }
.phome__snip { display: inline; overflow-wrap: anywhere; }

/* V080 (Dylan s18, 0039): scenes and call sheets */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 0.75rem; }
.cs-new { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.cs-new p { margin: 0; }
.cs-publish__state { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
/* V110: the Call sheets page */
.cs-prod-pick { max-width: 28rem; }
/* V109 (0059): email now or later */
.cs-email-choice { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.cs-email-choice .editor__check { font-weight: 400; }
.cs-email-choice input:disabled + span { color: var(--ink-soft); }
.cs-email-later { display: grid; grid-template-columns: repeat(2, minmax(0, 11rem)); gap: 0.75rem; padding-left: 1.6rem; }
.cs-email-later[hidden] { display: none; }
.cs-waiting { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; padding: 0.6rem 0.9rem; border-left: 3px solid var(--accent); background: var(--surface); font-size: 0.92rem; }
.cs-waiting[hidden] { display: none; }
@media (max-width: 30rem) { .cs-email-later { grid-template-columns: minmax(0, 1fr); padding-left: 0; } }
.cs-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.cs-rows__heading { margin: 0.4rem 0 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cs-row { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; }
.cs-row__name { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cs-row__grid { display: grid; gap: 0.6rem 0.75rem; }
.cs-row__grid--loc { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.cs-row__grid--item { grid-template-columns: 8.75rem 11.5rem minmax(0, 1.5fr) minmax(0, 1fr); }
.cs-row__grid--item:has(> :nth-child(5)) { grid-template-columns: 8.75rem 11.5rem minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); }
.cs-row__grid--call { grid-template-columns: 8rem 8.75rem minmax(0, 1fr) minmax(0, 1fr); }
.cs-row__grid .form__field { min-width: 0; }
.cs-row__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.cs-row__tools .editor__danger-link { margin-left: auto; }
.cs-add-scene { width: auto; max-width: 100%; display: inline-block; }
@media (max-width: 48rem) {
  .cs-row__grid--loc, .cs-row__grid--item, .cs-row__grid--item:has(> :nth-child(5)), .cs-row__grid--call { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.scenes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.scene { padding: 0.7rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; overflow-wrap: anywhere; }
.scene--open { border-color: var(--ink-soft); }
.scene__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.scene__num { font-weight: 500; min-width: 2.5rem; }
.scene__set { font-weight: 500; }
.scene__meta { font-size: 0.85rem; color: var(--ink-soft); }
.scene__tools { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; }
.scene__desc, .scene__cast { margin: 0; font-size: 0.9rem; font-weight: 300; }
.scene__cast { color: var(--ink-soft); }
.scene__edit { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.scene__edit p { margin: 0; }
.scene-form { display: flex; flex-direction: column; gap: 0.75rem; }
.scene-form__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); gap: 0.6rem 0.75rem; }
.scene-form__cast { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.scene-form__cast legend { margin-bottom: 0.4rem; }

/* The sheet itself (/portal/call-sheet) */
.cs-view { max-width: 60rem; }
.cs-sheet { display: flex; flex-direction: column; gap: 1.25rem; }
.cs-draft { margin: 0; padding: 0.6rem 0.85rem; border: 1px solid var(--warn); border-radius: var(--radius); font-size: 0.9rem; }
.cs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.cs-head__main { min-width: 0; flex: 1 1 18rem; }
.cs-head__studio { margin: 0 0 0.7rem; display: flex; align-items: center; gap: 0.9rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.cs-head__logo { height: 2.75rem; width: auto; display: block; }   /* V159 (held note 17); V160: larger, with room */
.cs-head__logo--print { display: none; }
.cs-head__title { margin: 0.25rem 0; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; overflow-wrap: anywhere; }
.cs-head__day { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 1.05rem; }
.cs-head__day span:first-child { font-weight: 500; }
.cs-head__version { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.cs-times { margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0.5rem 1.5rem; }
.cs-time { display: flex; flex-direction: column; }
.cs-time dt { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cs-time dd { margin: 0; font-size: 1.1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cs-time--main { grid-column: 1 / -1; }
.cs-time--main dd { font-size: 2.6rem; line-height: 1.05; color: var(--bad); }   /* V159 (held note 17): larger, red */
.cs-time__text { font-size: 0.95rem !important; font-weight: 400 !important; }
.cs-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.cs-headline { margin: 0; font-size: 1.05rem; }
.cs-contact { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.cs-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cs-sec { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.cs-sec__title { margin: 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule); }
.cs-muted { color: var(--ink-soft); font-weight: 300; }
.cs-locs, .cs-order, .cs-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.cs-loc { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; overflow-wrap: anywhere; }
.cs-loc__label { font-weight: 500; min-width: 6rem; }
.cs-order__row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: baseline; overflow-wrap: anywhere; }
.cs-order__time { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.cs-order__row--move .cs-order__what, .cs-order__row--meal .cs-order__what, .cs-order__row--wrap .cs-order__what { font-style: italic; }
.cs-order__loc { font-size: 0.85rem; color: var(--ink-soft); }
.cs-table-wrap { overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cs-table th { text-align: left; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--rule); }
.cs-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cs-table tfoot td { font-weight: 500; border-bottom: 0; }
.cs-table__num { white-space: nowrap; font-weight: 500; }
.cs-table__pgs { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-table__desc { display: block; font-weight: 300; color: var(--ink-soft); }
.cs-calls__time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-calls__time--own { font-weight: 500; color: var(--warn); }
.cs-notes li { position: relative; padding-left: 1rem; }
.cs-notes li::before { content: "\2013"; position: absolute; left: 0; color: var(--ink-soft); }
.cs-foot { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--ink-soft); }
.phome__sheet a { font-weight: 500; }

@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #000 !important; }
  .bar, #site-bar, .back, .cs-view__tools, .scaffold__build, .dm-launch, .dm-panel, .edit-fab { display: none !important; }
  .cs-view { max-width: none; padding: 0 !important; margin: 0 !important; }
  .cs-sheet, .cs-sheet * { color: #000 !important; background: transparent !important; border-color: #999 !important; }
  .cs-sheet a { text-decoration: none; }
  .cs-sec, .cs-table tr { break-inside: avoid; }
  .cs-head__title { font-size: 20pt; }
  .cs-time--main dd { font-size: 28pt; }
  .cs-table { font-size: 9pt; }
  /* V159 (held notes 16-17): the crew call prints red; the logo prints in its black-text
     version (V160); "Past 6 hours" is for the screen only. */
  .cs-sheet .cs-time--main dd { color: #d11 !important; }
  .cs-head__logo--screen { display: none !important; }
  .cs-head__logo--print { display: block; height: 2.4rem; }
  .cs-past6, .shots__past6 { display: none !important; }
}

/* V081 (Dylan s18, 0040): production contact, copy link */
.cs-need { margin: 0; padding: 0.6rem 0.85rem; border: 1px solid var(--warn); border-radius: var(--radius); font-size: 0.9rem; }

/* V082 (Dylan s18): the Portal button, the Portal splash, the shoot calendar */
.bar__portal { margin: 0 0.25rem; display: inline-flex; align-items: center; padding: 0.28rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.bar__portal:hover, .bar__portal:focus-visible { border-color: var(--ink-soft); }
.bar__portal[aria-current="page"] { border-color: var(--action); }
@media (max-width: 24rem) { .bar__portal { padding: 0.25rem 0.55rem; font-size: 0.8rem; margin: 0 0.1rem; } }

.portal-splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--paper); opacity: 1; transition: opacity 0.45s ease; }
.portal-splash__word { margin: 0; display: flex; align-items: center; gap: 0.55rem; font-size: clamp(1.35rem, 4.5vw, 2rem); font-weight: 500; letter-spacing: 0.04em; opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.portal-splash__word img { width: clamp(3rem, 10vw, 4.5rem); height: auto; }
/* V086: the mark's letters fill ~40% of its image height, so the word is sized to
   match them (measured on screen): 4.5rem image -> 2rem word. */
.portal-splash--in .portal-splash__word { opacity: 1; transform: none; }
.portal-splash--out { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .portal-splash, .portal-splash__word { transition: none; }
}
.cal-page { max-width: 72rem; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.5rem; }
.cal-nav__month { margin: 0; min-width: 11rem; text-align: center; font-size: 1.15rem; font-weight: 500; }
.cal-key { margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cal-grid__head { padding: 0.35rem 0.5rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cal-cell { min-height: 6.5rem; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cal-cell--blank { background: var(--surface); opacity: 0.4; }
.cal-cell__num { font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cal-cell--today .cal-cell__num { color: var(--on-action); background: var(--action); border-radius: 999px; padding: 0 0.4rem; align-self: flex-start; }
.cal-cell--shoot { background: color-mix(in srgb, var(--action) 8%, transparent); }
.cal-chip { display: block; padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.75rem; line-height: 1.35; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.cal-key .cal-chip { display: inline-block; }
.cal-chip--day { background: var(--action); color: var(--on-action); }
.cal-chip--day:hover { background: var(--action-hover); color: var(--on-action); }
.cal-chip--draft { background: transparent; color: var(--ink); border: 1px dashed var(--warn); }
.cal-chip--stage { background: var(--surface); border: 1px solid var(--rule); color: var(--ink-soft); }
.cal-chip__time { font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-list { display: none; list-style: none; margin: 0; padding: 0; flex-direction: column; gap: 0.6rem; }
.cal-list__day { padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.cal-list__day--today { border-color: var(--action); }
.cal-list__date { margin: 0 0 0.4rem; font-weight: 500; }
.cal-list__chips { display: flex; flex-direction: column; gap: 0.3rem; }
.cal-list .cal-chip { white-space: normal; font-size: 0.88rem; padding: 0.35rem 0.6rem; }
@media (max-width: 48rem) {
  .cal-grid { display: none; }
  .cal-list { display: flex; }
}

/* V083 (Dylan s18, 0042): Portal announcements */
.ann-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ann { padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.3rem; overflow-wrap: anywhere; }
.ann--pinned { border-color: var(--action); }
.ann__title { margin: 0; font-weight: 500; }
.ann__body { margin: 0; white-space: pre-wrap; font-weight: 300; }
.ann__meta { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.ann__delete { font-size: 0.8rem; }
.ann-form { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.ann-form p { margin: 0; }
.ann-form__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.25rem; }

/* V084 (Dylan s18, 0043): My details */
.phome__todo { margin: 0; color: var(--warn); font-size: 0.92rem; }
.details__list { gap: 0.45rem; }
.details__item { display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; align-items: baseline; overflow-wrap: anywhere; }
.details__mark { width: 1.1rem; color: var(--ink-soft); }
.details__item--done .details__mark { color: var(--ok); }
.details__label { font-weight: 500; }

/* V085 (Dylan s19, 0044): production checklists */
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.task { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.85rem; border: 1px solid var(--rule); border-radius: var(--radius); overflow-wrap: anywhere; }
.task--mine { border-left: 3px solid var(--action); }
.task--done .task__title { color: var(--ink-soft); text-decoration: line-through; }
.task--flash { border-color: var(--link-hover); }
.task__tick { flex: none; display: grid; place-items: center; width: 1.6rem; min-height: 1.6rem; cursor: pointer; }
.task__tick--none { cursor: default; color: var(--ink-soft); font-size: 0.95rem; }
.task__box { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ok); cursor: pointer; }
.task__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.task__title { margin: 0; font-weight: 500; }
.task__title a { color: inherit; }
.task__you { margin-left: 0.4rem; font-size: 0.7rem; }
.task__meta { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.task__due { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.task__due--soon { color: var(--warn); }
.task__due--late { color: var(--accent); }
.task__notes { margin: 0.15rem 0 0; white-space: pre-wrap; font-weight: 300; font-size: 0.92rem; }
.task__tools { margin: 0.15rem 0 0; font-size: 0.8rem; }
.task-list--card .task { padding: 0.5rem 0.7rem; }
.task-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.25rem; }
.task-head__prod { flex: 1 1 16rem; max-width: 28rem; margin: 0; }
.task-head__view { display: flex; gap: 0.4rem; margin: 0; }
.task-view { padding: 0.45rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.88rem; cursor: pointer; }
.task-view[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.task-done { margin: 0.9rem 0 0.4rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.task-done .task-list { align-self: stretch; }
.checklists-page .ann-form { margin-top: 1.25rem; }
.cal-chip--task { background: transparent; border: 1px solid var(--warn); color: var(--ink); }
.cal-chip--task:hover { border-color: var(--link-hover); color: var(--ink); }
.cal-chip--mine { background: color-mix(in srgb, var(--warn) 14%, transparent); }

/* V086 (Dylan s19): the top bar on phones. The three links fold into a
   three-line menu; the bell and messages move into the profile menu, with a
   red dot on your photo when either has something new. Your profile photo
   replaces the person icon at every width. */
.bar__burger-wrap { display: none; position: relative; flex: none; }
.bar__navmenu { left: 0; right: auto; min-width: 12rem; }
.bar__navmenu .bar__menu-item[aria-current="page"] { font-weight: 500; box-shadow: inset 3px 0 0 var(--action); }
.bar__menu-phone { display: none; }
.bar__menu-count { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.bar__menu-badge { min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem; border-radius: 999px; background: #c4161c; color: #fff; font-size: 0.72rem; font-weight: 500; line-height: 1.25rem; text-align: center; }
.bar__menu-badge[hidden] { display: none; }
.bar__face { display: inline-block; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; overflow: hidden; background: var(--surface); }
.bar__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bar__caret-person { position: relative; }
.bar__dot { position: absolute; top: -0.1rem; right: -0.15rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #c4161c; box-shadow: 0 0 0 2px var(--bar); }
.bar__dot[hidden] { display: none; }
@media (max-width: 40rem) {
  .bar__burger-wrap { display: block; }
  .bar__links { display: none; }
  .bar__side { margin-left: auto; }
  .bar__side .bar__dm, .bar__side .bar__bell { display: none; }
  .bar__menu-phone:not([hidden]) { display: block; }
  .bar__caret .bar__face { width: 1.6rem; height: 1.6rem; }
}
/* V086 (Dylan s19): Members cards are accordions, closed by default. */
.members__summary { cursor: pointer; list-style: none; }
.members__summary::-webkit-details-marker { display: none; }
.members__summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-left: 0.25rem; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform 0.15s; }
.members__card[open] > .members__summary::after { transform: rotate(-135deg); }
.members__card:not([open]) > .members__summary { border-bottom: 0; }
.members__card { margin-bottom: 0.6rem; }
.members__card[open] { margin-bottom: 1.25rem; }
.members__sum-text { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.members__sum-name { font-weight: 500; overflow-wrap: anywhere; }
.members__sum-sub { font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); overflow-wrap: anywhere; }
.members__links { padding-top: 0.75rem; }
.members__summary .members__heading { flex-wrap: nowrap; min-width: 0; }

/* V087 (Dylan s19): select several pictures and delete them at once. */
.bulk { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.25rem 0 0.75rem; }
.bulk.is-on { padding: 0.6rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.bulk__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; font-size: 0.9rem; }
.bulk__count { font-weight: 500; }
.bulk__row .form__link:disabled { opacity: 0.4; cursor: default; }
.bulk__confirm { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
.bulk__confirm p { margin: 0; color: var(--accent); font-size: 0.9rem; }
.bulk__confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.bulk__word { width: 6rem; }
.bulk__status { margin: 0; }
.editor__thumb-wrap, .prof-ed__shot { position: relative; }
.bulk__pick { position: absolute; top: 0.4rem; left: 0.4rem; z-index: 3; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(255, 255, 255, 0.35); cursor: pointer; }
.bulk__pick.is-on { background: var(--accent); border-color: var(--accent); }
.bulk__box { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
.slides-ed__tile.is-picked .slides-ed__tile-btn, .prof-ed__shot.is-picked img { outline: 3px solid var(--accent); outline-offset: -3px; }

/* V087 (Dylan s19): back to top, bottom left, once the page has scrolled.
   Sits above the admin "Edit page" button when that's there. */
.to-top { position: fixed; left: 0.75rem; bottom: 0.75rem; z-index: 40; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--rule); border-radius: 50%; background: rgba(10, 10, 10, 0.85); color: var(--ink); cursor: pointer;
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(0.5rem); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.to-top.is-shown { opacity: 0.85; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { opacity: 1; border-color: var(--ink-soft); }
.to-top svg { width: 1.2rem; height: 1.2rem; }
body.has-edit-fab .to-top { bottom: 3.4rem; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none !important; } }

/* V170 (Dylan, s61: "Ideally, it wouldn't load the members (portal) page at
   all"): a Portal page stays blank below the top bar until its access check
   answers. Every Portal page's "Checking..." line carries data-gate; while it
   shows, the sidebar, the Back button and the page are hidden. The page hides
   that line once it knows you may see it (as every page already did), or
   LCA.noAccess() sends you home first. If a check never answers, the page
   shows anyway after 6 seconds, so nothing is ever stuck blank. Nothing here
   is a security measure: the data itself only arrives after the database says
   yes; this just stops the empty frame flashing.
   V171 (Dylan: the sidebar should stay put between pages, decision 382): a
   sidebar this tab has already drawn for you (.pnav--known, js/portal-nav.js)
   and the Back button stay on screen; only the page waits, then fades in. */
body:has(main [data-gate]:not([hidden])) > .pnav:not(.pnav--known),
body:has(main [data-gate]:not([hidden])):not(:has(> .pnav--known)) > .back,
body:has(main [data-gate]:not([hidden])) > main { visibility: hidden; animation: lca-gate-show 0s linear 6s forwards; }
@keyframes lca-gate-show { to { visibility: visible; } }

/* V169 (held note 34): "That page isn't open to your account", bottom right
   for about 2 seconds after LCA.noAccess() brings someone home. Sits above
   the chat bubble (3.25rem at 1rem from the bottom). */
.access-note { position: fixed; right: 1rem; bottom: 5rem; z-index: 60; max-width: min(22rem, calc(100vw - 2rem)); padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: rgba(20, 20, 20, 0.92); color: var(--ink); font-size: 0.875rem; line-height: 1.4;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); opacity: 0; transform: translateY(0.5rem); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease; }
.access-note.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .access-note { transition: opacity 0.2s linear; transform: none; } }
@media print { .access-note { display: none !important; } }

/* V088 (Dylan s19, 0045): credit rows - drag a row's types into order; the
   Line (Automatic or a saved phrase); the Phrases section on Credit types. */
.editor__tag--drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.editor__tag--drag:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
.editor__types.is-dragging .editor__tag--drag { cursor: grabbing; }
.editor__tag.is-dragged { border-color: var(--action); background: color-mix(in srgb, var(--action) 18%, var(--surface)); }
.editor__tag-grip { color: var(--ink-soft); font-size: 0.8rem; line-height: 1; margin-left: -0.25rem; }
.credits-ed__line { color: var(--ink); font-style: italic; }
.phrase { margin-bottom: 0.75rem; }
.phrase__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.9rem 1rem; }
.phrase__body p { margin: 0; }
.phrase--new { border-style: dashed; }
.phrase__types .members__tier { font-size: 0.85rem; padding: 0.3rem 0.7rem; }

/* V089 (Dylan s19): community page - the team as one quiet line, rules a
   small fold-away line, Share beside the other buttons. */
.comm-side__team { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.comm-side__person { color: var(--ink); text-decoration: none; }
.comm-side__person:hover { text-decoration: underline; }
.comm-side__rules--quiet { padding: 0 0.25rem; font-size: 0.85rem; }
.comm-side__rules--quiet > summary { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding: 0.25rem 0; }
.comm-side__rules--quiet[open] { padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.comm-side__rules--quiet .form__hint { margin: 0; }

/* V089 (Dylan s19): the Portal pill's blue ring (on Portal pages) pulses gently. */
.bar__portal[aria-current="page"] { animation: portal-pulse 2.4s ease-in-out infinite; }
@keyframes portal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.28); }
}
@media (prefers-reduced-motion: reduce) { .bar__portal[aria-current="page"] { animation: none; } }

/* V089: icons in the account menu. */
.bar__menu-item .bar__menu-ico { display: inline-grid; place-items: center; width: 1.1rem; margin-right: 0.6rem; color: var(--ink-soft); vertical-align: -0.2rem; }
.bar__menu-item .bar__menu-ico svg { width: 1.05rem; height: 1.05rem; }
.bar__menu-lab { display: inline-flex; align-items: center; }

/* V089 (Dylan s19): phone calendar, Month or List. Wider screens keep the
   full grid; the switch, dots and day panel are phone-only. */
.cal-view { display: none; gap: 0.35rem; margin-left: auto; }
.cal-dots, .cal-day { display: none; }
.cal-dot { width: 0.42rem; height: 0.42rem; border-radius: 50%; display: inline-block; }
.cal-dot--day { background: var(--action); }
.cal-dot--task { background: var(--warn); }
.cal-dot--stage { background: var(--ink-soft); }
.cal-chip--task.cal-key__dot { display: inline-block; }
@media (max-width: 48rem) {
  .cal-view { display: inline-flex; }
  .cal-page[data-view="month"] .cal-grid { display: grid; }
  .cal-page[data-view="month"] .cal-list { display: none; }
  .cal-page[data-view="month"] .cal-day { display: block; margin-top: 0.75rem; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: var(--radius); }
  .cal-page[data-view="month"] .cal-cell { min-height: 3.2rem; padding: 0.3rem 0.2rem; align-items: center; cursor: pointer; }
  .cal-page[data-view="month"] .cal-cell .cal-chip { display: none; }
  .cal-page[data-view="month"] .cal-dots { display: flex; gap: 0.18rem; justify-content: center; }
  .cal-page[data-view="month"] .cal-cell--picked { box-shadow: inset 0 0 0 2px var(--link-hover); }
  .cal-page[data-view="month"] .cal-grid__head { padding: 0.3rem 0; text-align: center; font-size: 0.66rem; letter-spacing: 0.04em; }
  .cal-page[data-view="month"] .cal-cell--today .cal-cell__num { align-self: center; }
  .cal-day .cal-chip { white-space: normal; font-size: 0.88rem; padding: 0.35rem 0.6rem; }
  .cal-day .cal-list__chips { display: flex; flex-direction: column; gap: 0.3rem; }
  .cal-day .form__hint { margin: 0; }
}

/* ---- V091 (0046, Dylan s20): chats ---------------------------------------- */
/* 12 reactions: the first 7 show; "+" shows the other 5. */
.dm-react__pick .dm-react__opt--more { display: none; }
.dm-react__pick.is-all .dm-react__opt--more { display: inline-block; }
.dm-react__pick { flex-wrap: wrap; max-width: 17rem; }
.dm-react__expand { font-size: 1.1rem; color: var(--ink-soft); border: 1px solid var(--rule); }
/* The studio account: a Contact link at the foot, for accounts without a tier. */
.dm-note--studio { padding: 0.5rem 0.75rem; border-top: 1px solid var(--rule); }
.dm-note--studio a { white-space: nowrap; }
/* A clearer minimise button: a chevron in a ring. */
.dm-panel__close { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid var(--rule); color: var(--ink); padding: 0; }
.dm-panel__close svg { width: 1.15rem; height: 1.15rem; }
/* Keyboard open on a phone: the chat fills the part of the screen you can see. */
@media (max-width: 40rem) {
  html.dm-kb .dm-panel { inset: auto 0 auto 0; top: var(--vv-top, 0px); height: var(--vv-h, 100svh); z-index: 70; }
  html.dm-kb .dm--page { position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100svh) !important; min-height: 0; z-index: 70; border: 0; border-radius: 0; }
  html.dm-kb .dm-panel .dm-panel__head { display: none; }
}
.comm-suggest { margin-left: 1rem; }
/* V091 (0046): Communities to join, on Edit profile. */
.comm-sug { margin-bottom: 1.25rem; }
.comm-sug__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.comm-sug__title { margin: 0; }
.comm-sug__list { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; display: grid; gap: 0.5rem; }
.comm-sug__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.6rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.comm-sug__icon { width: 2.4rem; height: 2.4rem; flex: none; }
.comm-sug__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.comm-sug__name { font-weight: 500; }
.comm-sug__meta { font-size: 0.82rem; color: var(--ink-soft); }
.comm-sug__acts { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 30rem) { .comm-sug__row { flex-wrap: wrap; } .comm-sug__acts { width: 100%; justify-content: flex-start; } }
/* V091 (0046): sorting /films, and review scores on cards. */
.film-sort { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: -0.25rem 0 1rem; }
.film-sort[hidden] { display: none; }
.film-sort__label { font-size: 0.82rem; color: var(--ink-soft); margin-right: 0.2rem; }
.film-card__score { display: flex; align-items: center; gap: 0; margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.film-card__score-n { color: var(--ink); font-weight: 500; }
.film-card__star { width: 0.85rem; height: 0.85rem; color: #e8b923; margin-right: 0.3rem; }
/* V091 (0046): reviews on a film page. */
.rev-summary { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.rev-summary__n { color: var(--ink-soft); font-size: 0.9rem; }
.rev-score { display: inline-flex; align-items: baseline; gap: 0.05rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(232, 185, 35, 0.14); color: #f0c94a; font-size: 0.85rem; white-space: nowrap; }
.rev-score__n { font-weight: 600; }
.rev-score__of { font-size: 0.75em; opacity: 0.8; }
.rev-score--big { font-size: 1.15rem; padding: 0.25rem 0.7rem; }
.rev-form { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #0b0b0b; }
.rev-form__title { margin: 0; font-weight: 500; }
.rev-form__row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.rev-form__row .form__label { margin: 0; }
.rev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.rev-item { padding: 0.8rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--bar-h) + 1rem); }
.rev-item.is-target, .rev-reply.is-target { box-shadow: 0 0 0 2px var(--link-hover); }
.rev-item--mine { border-color: rgba(37, 99, 235, 0.45); }
.rev-item__top, .rev-reply__top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rev-item__top .comm-author, .rev-reply__top .comm-author { flex: 1; min-width: 0; }
.rev-item .comm-text { margin-top: 0.45rem; }
.rev-item__acts { margin: 0.4rem 0 0; }
.rev-replies { list-style: none; margin: 0.6rem 0 0 0.9rem; padding: 0 0 0 0.8rem; border-left: 2px solid var(--rule); display: flex; flex-direction: column; gap: 0.55rem; }
.rev-reply .comm-text { margin-top: 0.3rem; font-size: 0.93rem; }
.rev-reply__form { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.rev-held { background: rgba(232, 185, 35, 0.14); color: #f0c94a; }
.rev-flash { color: var(--ink); }
.rev-menu { position: relative; }
/* V091 (0046): a profile's Films sort and Reviews. */
.prof__label-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.prof__label-row .prof__label { margin-bottom: 0; }
.prof__sort { margin: 0; }
.prof__label-row + div { margin-top: 0.6rem; }
.prof__poster-score { justify-content: center; margin-top: 0.25rem; }
.prof__reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.prof__review { padding: 0.7rem 0.85rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.prof__review-top { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.prof__review-film { font-weight: 500; }
.prof__review-when { font-size: 0.82rem; color: var(--ink-soft); }
.prof__review-body p { margin: 0.4rem 0 0; }
.prof__review-replies { display: inline-block; margin-top: 0.35rem; font-size: 0.82rem; }

/* ---- V092 (0047, Dylan s20) ------------------------------------------------ */
/* Group chat pictures. */
.dm-face--icon { overflow: hidden; padding: 0; }
.dm-face--icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dm-grouppic__row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }
/* Pictures that open in the viewer: a tap opens it; iPhone's long-press
   preview ("Open in New Tab"...) is switched off. */
.about-gallery__img, .about-gallery__open img, .gallery img, .comm-images__item img, .prof__avatar-btn img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
/* Community members and Top contributor badges. */
.comm-head__members { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; }
.comm-head__members:hover { color: var(--ink); text-decoration-color: currentColor; }
.comm-top { display: inline-flex; align-items: center; gap: 0.25rem; color: #f0c94a; }
.comm-top svg { width: 0.95rem; height: 0.95rem; flex: none; }
.comm-top--word { padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(232, 185, 35, 0.14); font-size: 0.75rem; white-space: nowrap; }
.comm-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.comm-members__row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.comm-members__person { display: flex; align-items: center; gap: 0.6rem; min-width: 0; color: var(--ink); text-decoration: none; }
.comm-members__person:hover .comm-members__name { text-decoration: underline; }
.comm-members__face { width: 2.2rem; height: 2.2rem; flex: none; }
.comm-members__face .frame { width: 100%; height: 100%; border-radius: 50%; }
.comm-members__names { display: flex; flex-direction: column; min-width: 0; }
.comm-members__name { font-weight: 500; overflow-wrap: anywhere; }
.comm-members__when { font-size: 0.78rem; color: var(--ink-soft); }
.comm-members__tags { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
.comm-members__note { margin-top: 0.75rem; }
/* A post in a dialog over the feed. */
.comm-post--opens { cursor: pointer; }
.comm-postmodal { width: min(46rem, calc(100vw - 2rem)); max-height: calc(100svh - 3rem); padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: #0b0b0b; color: var(--ink); }
.comm-postmodal::backdrop { background: rgba(0, 0, 0, 0.75); }
.comm-postmodal__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem 0.5rem 1rem; background: #0b0b0b; border-bottom: 1px solid var(--rule); }
.comm-postmodal__page { font-size: 0.85rem; }
.comm-postmodal__body { padding: 0.75rem 1rem 1.25rem; }
.comm-main--modal { width: 100%; }
@media (max-width: 40rem) {
  .comm-postmodal { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border: 0; border-radius: 0; }
  .comm-postmodal__body { padding: 0.75rem var(--gutter, 1rem) 1.5rem; }
}

/* ---- V093 (0048, Dylan s20): LCA Financials --------------------------------- */
.fin-page { max-width: 76rem; }
.fin-head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.fin-head__year { margin: 0; }
.fin-year { width: auto; min-width: 10rem; }
.fin-record { margin: 0 0 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(232, 185, 35, 0.14); color: #f0c94a; font-size: 0.85rem; }
.fin-section { margin: 1.75rem 0 0; }
.fin-h { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; margin: 0 0 0.6rem; }
.fin-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); }
.fin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.fin-table th, .fin-table td { padding: 0.3rem 0.45rem; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; vertical-align: middle; }
.fin-table thead th { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; background: #0b0b0b; }
.fin-table tbody tr:last-child td, .fin-table tbody tr:last-child th { border-bottom: 0; }
.fin-table tfoot td { border-top: 1px solid var(--rule); border-bottom: 0; background: #0b0b0b; }
.fin-num, .fin-col--amount, .fin-col--taxamt, .fin-col--tax { text-align: right !important; }
.fin-total, .fin-total-label { font-weight: 500; }
.fin-calc { color: var(--ink-soft); }
.is-neg { color: #ff8a80; }
.fin-empty { color: var(--ink-soft); font-style: italic; }
.fin-in { width: 100%; min-width: 0; padding: 0.3rem 0.4rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; }
.fin-in:hover { border-color: var(--rule); }
.fin-in:focus { border-color: var(--link-hover); outline: none; background: #111; }
.fin-in--amount, .fin-in--tax_rate { text-align: right; }
.fin-col--occurred_on .fin-in, .fin-col--date { min-width: 8.6rem; }
.fin-col--description { min-width: 16rem; }
.fin-col--category, .fin-col--source { min-width: 10rem; }
.fin-col--who { min-width: 9rem; }
.fin-col--tax, .fin-col--tax_rate { width: 5.5rem; }
.fin-col--amount { width: 8rem; }
.fin-col--x { width: 2.5rem; text-align: center; }
td.is-saved .fin-in { border-color: rgba(34, 197, 94, 0.6); }
td.is-bad .fin-in { border-color: #ff8a80; }
/* V135 (0078): an expense waiting for its tax in dollars. */
td.is-wait .fin-in { border-color: var(--warn); border-style: dashed; }
.fin-row--need-tax .fin-in--tax_amount { border-color: var(--warn); }
.fin-row--need-tax .fin-in--tax_amount::placeholder { color: var(--warn); opacity: 0.7; }
.fin-in--tax_amount::placeholder { color: var(--ink-soft); opacity: 0.75; }   /* V139: an older percent line's dollars, greyed */
.claim__tax { display: inline-flex; align-items: center; gap: 0.35rem; }
.claim__tax .form__input { width: 6.5rem; }
.fin-x { border: 0; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; padding: 0.1rem 0.35rem; border-radius: 4px; white-space: nowrap; }
.fin-x:hover { color: #ff8a80; }
.fin-x.is-sure { color: #ff8a80; font-size: 0.75rem; }
.fin-add-row { margin: 0.4rem 0 0; }
.fin-status { margin: 0.25rem 0 0; }
.fin-summary { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; max-width: 36rem; margin: 0; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); font-size: 0.92rem; }
.fin-summary dt { color: var(--ink-soft); }
.fin-summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.fin-summary .is-strong { color: var(--ink); font-weight: 600; border-top: 1px solid var(--rule); padding-top: 0.35rem; }
.fin-table td, .fin-summary dd, .fin-con__nums dd { font-variant-numeric: tabular-nums; }
.fin-new { margin-top: 0.9rem; }
.fin-new > summary { list-style: none; display: inline-block; cursor: pointer; }
.fin-new > summary::-webkit-details-marker { display: none; }
.fin-new__body { display: grid; gap: 0.4rem; max-width: 30rem; margin-top: 0.75rem; }
.fin-details__sum { cursor: pointer; }
.fin-details__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem 1rem; margin-top: 0.5rem; }
.fin-details__wide { grid-column: 1 / -1; }
.fin-danger { margin-top: 1rem; }
.fin-con { padding: 0.8rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); margin-bottom: 0.75rem; }
.fin-con__fields { display: grid; grid-template-columns: minmax(10rem, 2fr) minmax(10rem, 1.6fr) repeat(3, minmax(6rem, 1fr)); gap: 0.5rem 0.75rem; }
.fin-con__fields .form__field { margin: 0; }
.fin-in--short { max-width: 9rem; }
.fin-con__nums { display: grid; grid-template-columns: repeat(6, auto); gap: 0.15rem 1rem; margin: 0.7rem 0 0.3rem; font-size: 0.85rem; justify-content: start; }
.fin-con__nums dt { grid-row: 1; color: var(--ink-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fin-con__nums dd { grid-row: 2; margin: 0; }
.fin-con__foot { margin: 0.4rem 0 0; }
.fin-con__add { margin-top: 0.5rem; }
.fin-pays { margin-top: 0.3rem; }
.fin-pays__list { margin: 0.4rem 0; padding-left: 1.1rem; font-size: 0.88rem; }
.fin-pays__add { flex-wrap: wrap; }
.fin-legend { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; margin: 0; font-size: 0.9rem; }
.fin-legend dt { font-weight: 600; }
.fin-legend dd { margin: 0; color: var(--ink-soft); }
.fin-foot { margin-top: 1.5rem; }
@media (max-width: 48rem) {
  .fin-con__fields { grid-template-columns: 1fr 1fr; }
  .fin-con__name { grid-column: 1 / -1; }
  .fin-con__nums { grid-template-columns: 1fr 1fr; }
  .fin-con__nums dt, .fin-con__nums dd { grid-row: auto; }
  .fin-summary { gap: 0.25rem 0.75rem; }
}
.fin-page, .fin-page #area, .fin-section, .fin-block, .fin-details { min-width: 0; max-width: 100%; }
.fin-table-wrap { max-width: 100%; position: relative; }   /* keeps .sr-only cells inside the scroll box */

/* ---- V094 (0049, Dylan s20): agreements ---------------------------------- */
.agr-page { max-width: 52rem; }
.agr-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.agr-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius); flex-wrap: wrap; }
.agr-row__main { display: flex; flex-direction: column; flex: 1; min-width: 12rem; color: var(--ink); text-decoration: none; }
.agr-row__main:hover .agr-row__kind { text-decoration: underline; }
.agr-row__kind { font-weight: 500; }
.agr-row__proj, .agr-row__when { font-size: 0.82rem; color: var(--ink-soft); }
.agr-status { padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.75rem; white-space: nowrap; border: 1px solid var(--rule); color: var(--ink-soft); }
.agr-status--sent, .agr-status--signed { border-color: rgba(232, 185, 35, 0.5); color: #f0c94a; }
.agr-status--complete { border-color: rgba(34, 197, 94, 0.5); color: #6ee7a0; }
.agr-status--void { border-color: rgba(255, 138, 128, 0.5); color: #ff8a80; }
.agr-group { font-size: 0.9rem; font-weight: 500; margin: 1.1rem 0 0.4rem; }
.agr-list { margin-bottom: 1.5rem; }
.agr-new { margin: 0.5rem 0 1rem; }
.agr-new > summary { list-style: none; display: inline-block; cursor: pointer; }
.agr-new > summary::-webkit-details-marker { display: none; }
.agr-new__body { display: grid; gap: 0.4rem; max-width: 32rem; margin-top: 0.75rem; }
.agr-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.agr-head .form__button { margin-left: auto; }
.agr-editor, .agr-signpanel { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.agr-signpanel { margin-top: 1rem; border-color: rgba(37, 99, 235, 0.5); }
.agr-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.4rem 1rem; }
.agr-terms .form__field { margin: 0; }
/* The document itself: paper-like, so it reads (and prints) as a form. */
.agr-doc { background: #f7f5f0; color: #1a1a1a; padding: 2rem 2.2rem; border-radius: 6px; font-size: 0.95rem; line-height: 1.55; }
.agr-doc .agr-title { font-size: 1.35rem; font-weight: 600; text-align: center; margin: 0 0 0.25rem; letter-spacing: 0.02em; color: #111; }
.agr-trade { text-align: center; font-size: 0.85rem; color: #555; margin: 0 0 1.25rem; }
.agr-h { font-size: 0.95rem; font-weight: 600; margin: 1.1rem 0 0.4rem; color: #111; text-transform: none; letter-spacing: 0; }
.agr-p { margin: 0 0 0.6rem; }
.agr-field { margin: 0.15rem 0; }
.agr-field__label { color: #333; }
.agr-field__value { font-weight: 600; }
.agr-field__blank { color: #999; }
.agr-field__note { color: #666; font-size: 0.85rem; }
.agr-box { font-size: 1.05em; }
.agr-opt { padding-left: 0.25rem; }
.agr-input { display: inline-block; width: auto; min-width: 16rem; max-width: 100%; background: #fff; color: #111; border-color: #bbb; }
.agr-doc .agr-check input { accent-color: #2563eb; }
.agr-sigs { margin-top: 1.4rem; }
.agr-sig { margin: 1rem 0 0; }
.agr-sig__name { margin: 0; min-height: 1.6rem; border-bottom: 1px solid #333; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.35rem; line-height: 1.6rem; }
.agr-sig__label { margin: 0.15rem 0 0; font-size: 0.82rem; color: #444; }
.agr-sig__when { margin: 0.1rem 0 0; font-size: 0.78rem; color: #666; }
.agr-foot { font-size: 0.78rem; color: #666; margin: 1rem 0 0; }
.agr-voidnote { padding: 0.5rem 0.8rem; border: 1px solid rgba(255, 138, 128, 0.5); color: #ff8a80; border-radius: var(--radius); }
.agr-offscreen { position: fixed; left: -10000px; top: 0; width: 46rem; }
.agr-check label { cursor: pointer; }
.agr-void { margin-top: 1rem; }
@media (max-width: 40rem) {
  .agr-doc { padding: 1.25rem 1rem; font-size: 0.9rem; }
  .agr-input { min-width: 0; width: 100%; }
}
@media print {
  .no-print, .agr-editor, .agr-signpanel { display: none !important; }
  body { background: #fff !important; }
  .agr-doc { background: #fff; padding: 0; border-radius: 0; font-size: 11pt; }
  .agr-page { max-width: none; padding: 0; }
}

/* ---------------------------------------------------------------------------
   V095 (0050, Dylan s21): Files and links, Paperwork, Receipts and invoices,
   payouts.
   --------------------------------------------------------------------------- */
.pf-item__icon { flex: none; width: 1.6rem; text-align: center; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6rem; }
.pf-item__title { font-weight: 500; text-align: left; }
.pf-item__who { font-style: italic; }
.pf-kind { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.pf-kind label, .pf-who > label { cursor: pointer; }
.pf-who { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pf-pick { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.5rem 0 0 1.4rem; }
.pf-pick .form__label { margin: 0.3rem 0 0; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.pf-check { cursor: pointer; font-weight: 300; }
.pf-check input { accent-color: var(--action); }

.pw-sec { margin: 0 0 1.75rem; }
.pw-admin { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; padding: 0.75rem 1rem; border: 1px dashed var(--rule); border-radius: var(--radius); }
.pw-admin__who { flex: 1 1 16rem; max-width: 28rem; margin: 0; }
.pw-admin__links { margin: 0; }
.pw-folder { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.55rem 0.85rem; margin: 0 0 0.5rem; }
.pw-folder > summary { cursor: pointer; }
.pw-folder[open] > summary { margin-bottom: 0.6rem; }
.pw-folder__name { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.pw-folder__name > span:first-child::before { content: "▸ "; color: var(--ink-soft); }
.pw-folder[open] .pw-folder__name > span:first-child::before { content: "▾ "; }
.pw-folder > summary { list-style: none; }
.pw-folder > summary::-webkit-details-marker { display: none; }
.pw-folder__count { font-size: 0.75rem; font-weight: 400; color: var(--ink-soft); }
.pw-doc__open { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.pw-doc__note { flex-basis: 100%; font-size: 0.82rem; color: var(--ink-soft); }
.pw-add { margin-top: 0.75rem; }
.pw-add > .ann-form { max-width: 32rem; }

.claim-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.claim { padding: 0.65rem 0.85rem; border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.2rem; overflow-wrap: anywhere; }
.claim__head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.claim__what { flex: 1 1 12rem; font-weight: 500; }
.claim__who { font-weight: 500; color: var(--ink-soft); }
.claim__amount { font-variant-numeric: tabular-nums; font-weight: 500; }
.claim-status--submitted { border-color: rgba(232, 185, 35, 0.5); color: #f0c94a; }
.claim-status--approved { border-color: rgba(124, 179, 255, 0.5); color: var(--link-hover); }
.claim-status--paid { border-color: rgba(34, 197, 94, 0.5); color: #6ee7a0; }
.claim-status--rejected { border-color: rgba(255, 138, 128, 0.5); color: #ff8a80; }
.claim__reply { margin: 0; font-size: 0.88rem; }
.claim__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0.35rem 0 0; }
.claim__note-in { flex: 1 1 14rem; min-width: 0; }
.claim__date-in { width: auto; }
.claim--rejected .claim__what, .claim--paid .claim__what { font-weight: 400; }
.claim-form { max-width: 40rem; }

.payout__big { margin: 0; }
.payout__amount { font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.payout__label { color: var(--ink-soft); }
.payout__when { margin: 0.15rem 0 0.5rem; font-weight: 500; color: var(--warn); }
.payout__list { list-style: none; margin: 0 0 0.4rem; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.payout__row { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; font-size: 0.9rem; }
.payout__proj { font-weight: 500; }
.payout__nums { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.fin-suggest { border-style: dashed; color: var(--warn); }
.fin-con__exp { margin: 0.1rem 0 0.4rem; }
@media (max-width: 40rem) {
  /* V095: a date input's own width pushed the two-column contributor grid past a phone's edge. */
  .fin-con__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fin-con__fields .form__input { min-width: 0; width: 100%; }
}

/* V097 (0052): Portal home, "Productions you run" */
.runs__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.4rem; }
.runs__title { font-weight: 500; }
.runs__links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; font-size: 0.86rem; }

/* V098 (0053): Credits editor, "From the production" */
.credit-suggest { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border: 1px dashed var(--rule); border-radius: var(--radius); font-size: 0.9rem; }
.credit-suggest .form__label { display: inline; }

/* V100 (Dylan s22): the Portal sidebar (js/portal-nav.js). Desktop: fixed
   under the bar on the left. Below 64rem: a drawer opened by "Menu". */
:root { --pnav-w: 15rem; }
/* V161 (Dylan s54): above the production menu button (30) and the screenplay's sticky bar (20), so the folded sidebar's
   hover peek and the phone drawer open over them; still under the chat (44+) and the top bar (50). */
.pnav {
  position: fixed; z-index: 35; top: var(--bar-h); bottom: 0; left: 0; width: var(--pnav-w);
  overflow-y: auto; overscroll-behavior: contain;
  /* V101 (Dylan s23): dark glass. Near-black, see-through with a blur behind,
     a faint top-down sheen and a thin light edge on the right. */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 40%, rgba(255, 255, 255, 0)) , rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03), 6px 0 24px rgba(0, 0, 0, 0.35);
  padding: 0.9rem 0.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem;
}
.pnav__section { display: flex; flex-direction: column; }
.pnav__group {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; color: var(--ink-soft); cursor: pointer; font: inherit;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 0.6rem 0.35rem; border-radius: 6px; text-align: left;
}
.pnav__group:hover { color: var(--ink); }
.pnav__chev { font-size: 0.8rem; transition: transform 0.15s ease; }
.pnav__group[aria-expanded="false"] .pnav__chev { transform: rotate(-90deg); }
.pnav__list, .pnav__sub { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.pnav__item {
  display: flex; align-items: center; justify-content: flex-start; gap: 0.6rem;
  padding: 0.38rem 0.6rem; border-radius: 6px; color: var(--ink-soft); text-decoration: none;
  font-size: 0.9rem; line-height: 1.35; background: none; border: 1px solid transparent; width: 100%; text-align: left; font-family: inherit; cursor: pointer;
}
.pnav__item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.07); }
.pnav__item--here {
  color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 10px rgba(0, 0, 0, 0.35);
}
.pnav__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnav__icon { flex: none; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; opacity: 0.75; }   /* V103 */
.pnav__icon svg { width: 100%; height: 100%; }
.pnav__item:hover .pnav__icon, .pnav__item--here .pnav__icon { opacity: 1; }
.pnav__note { flex: none; font-size: 0.7rem; color: var(--ink-soft); }
.pnav__sub { margin: 2px 0 4px 1.15rem; padding-left: 0.95rem; border-left: 1px solid var(--rule); }   /* V103: lines up under the icons */
.pnav__subitem { display: block; padding: 0.28rem 0.5rem; border-radius: 6px; color: var(--ink-soft); text-decoration: none; font-size: 0.84rem; }
.pnav__subitem:hover { color: var(--ink); }
.pnav__subitem--here { color: var(--ink); box-shadow: inset 2px 0 0 var(--action); }
.pnav__foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pnav__out { color: var(--ink-soft); }

.pnav-crumbs { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.25rem; min-width: 0; }
.pnav-crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0; font-size: 0.85rem; min-width: 0; }
.pnav-crumbs__item { color: var(--ink-soft); display: inline-flex; align-items: center; min-width: 0; }
.pnav-crumbs__item + .pnav-crumbs__item::before { content: "\203A"; margin: 0 0.45rem; color: var(--ink-soft); }
.pnav-crumbs__item a { color: var(--ink-soft); text-decoration: none; }
.pnav-crumbs__item a:hover { color: var(--ink); text-decoration: underline; }
.pnav-crumbs__item [aria-current] { color: var(--ink); }
.pnav-menu {
  display: none; flex: none; align-items: center; gap: 0.4rem; font: inherit; font-size: 0.85rem; cursor: pointer;
  color: var(--ink); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.75rem;
}
.pnav-menu__icon { font-size: 1rem; line-height: 1; }
.pnav-backdrop { position: fixed; inset: var(--bar-h) 0 0 0; z-index: 34; background: rgba(0, 0, 0, 0.55); }
.has-pnav .back, .has-pnav .scaffold__links { display: none; }

@media (min-width: 64rem) {
  body.has-pnav, body:has(main.editor) { padding-left: var(--pnav-w); }   /* V160: reserved from the first paint, before the sidebar is drawn */
  body.has-pnav > .bar, body:has(main.editor) > .bar { margin-left: calc(-1 * var(--pnav-w)); width: calc(100% + var(--pnav-w)); }
  .pnav-backdrop { display: none; }
}
@media (max-width: 63.99rem) {
  .pnav { transform: translateX(-100%); transition: transform 0.2s ease; width: min(18rem, 85vw); box-shadow: none; }
  body.pnav-open .pnav { transform: none; box-shadow: 8px 0 24px rgba(0, 0, 0, 0.5); }
  .pnav-menu { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .pnav, .pnav__chev { transition: none; } }
@media print { .pnav, .pnav-crumbs, .pnav-backdrop { display: none !important; } body.has-pnav, body:has(main.editor) { padding-left: 0 !important; } }

/* V101 (0055, Dylan s23): the Receipt history window (js/claim-history.js). */
.rh.prof-modal { width: min(44rem, calc(100vw - 2rem)); }
.rh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.rh-item { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.7rem 0.85rem; background: var(--surface); }
.rh-item--warn { border-color: var(--bad); }
.rh-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; margin-bottom: 0.45rem; }
.rh-item__title { flex: 1 1 14rem; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.rh-item__amt { color: var(--ink); font-variant-numeric: tabular-nums; }
.rh-chip--gone { color: var(--ink-soft); }
.rh-steps { list-style: none; margin: 0; padding: 0 0 0 0.75rem; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.4rem; }
.rh-step { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.88rem; }
.rh-step__when { color: var(--ink-soft); font-size: 0.78rem; }
.rh-step__what { color: var(--ink); }
.rh-step--warn .rh-step__what { color: #fca5a5; }
.rh-step__note { color: var(--ink-soft); font-size: 0.8rem; }
.rh-open { margin-left: 0.25rem; }
.fin-rh { margin: -0.25rem 0 0.75rem; }

/* V102 (0056, Dylan s23): the Portal home as one dashboard (js/portal-dash.js). */
.editor.portal-home { max-width: 72rem; }
.portal-home__cards { display: flex; flex-direction: column; gap: 1rem; }
.dash--home { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); align-items: start; grid-auto-flow: row dense; }   /* dense: a short card fills a gap next to a wide one */
@media (min-width: 60rem) { .dash--home .dash__tile--w2 { grid-column: span 2; } }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.25rem 0 -0.25rem; min-height: 1.5rem; }
.dash-head .form__status { margin: 0; }
.dash-head__arrange { margin-left: auto; font-size: 0.85rem; }
.dash-head__hint { margin: 0; }

/* When you're needed: the date and your call time are the biggest things on the page. */
.next-call { border-color: rgba(255, 255, 255, 0.22); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--surface); }
.next-call__main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 2.5rem; color: var(--ink); text-decoration: none; }
.next-call__main:hover .next-call__date, .next-call__main:hover .next-call__clock { color: var(--link-hover); }
.next-call__when, .next-call__time { display: flex; flex-direction: column; gap: 0.15rem; }
.next-call__rel, .next-call__label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.next-call__date, .next-call__clock { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.next-call__sub { margin: 0; font-size: 1rem; }
.next-call__headline { margin: 0; font-weight: 300; }
.next-call__note { margin: 0; color: var(--warn); font-size: 0.92rem; }
.next-call__loc, .next-call__contact { margin: 0; font-size: 0.9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; }
.next-call__loc > span:not(.dash__muted), .next-call__contact > span:nth-child(2) { color: var(--ink); }
.next-call__pin { color: var(--ink-soft); }
.next-call__map { font-weight: 500; }
.next-call__later { padding-top: 0.5rem; border-top: 1px solid var(--rule); font-size: 0.88rem; }

/* All caught up: the Needs you card's place when nothing is waiting. */
.dash-caught { margin: 0; padding: 0.6rem 0.9rem; border: 1px solid rgba(34, 197, 94, 0.35); border-radius: var(--radius); background: rgba(5, 46, 22, 0.35); color: var(--ink); font-size: 0.95rem; }
.dash-caught__mark { color: var(--ok); margin-right: 0.35rem; }

/* Needs you: one list; a ticked item is struck through, then slides away. */
.needs { gap: 0.45rem; }
.needs__item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0.65rem; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; max-height: 12rem; }
.needs__mark { flex: none; width: 1.6rem; text-align: center; color: var(--warn); }
.needs__body { display: flex; flex-direction: column; min-width: 0; }
.needs__meta { font-size: 0.8rem; color: var(--ink-soft); }
.needs__task.task { gap: 0.6rem; }
.needs__task .task__title a, .needs__task .task__title span:first-child {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1.5px; transition: background-size 0.22s ease-out;
}
.needs__leaving .task__title a, .needs__leaving .task__title span:first-child { background-size: 100% 1.5px; color: var(--ink-soft); }
.needs__leaving { animation: needs-out 0.3s ease-in 0.24s forwards; }
@keyframes needs-out { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -0.45rem; border-width: 0; } }
@media (prefers-reduced-motion: reduce) { .needs__leaving { animation: none; } .needs__task .task__title a { transition: none; } }

/* Arrange: a handle on each card; empty cards show dimmed so they can be placed too. */
.dash__grip { display: none; }
.dash--arranging > [data-card] { position: relative; outline: 1px dashed rgba(255, 255, 255, 0.18); outline-offset: 3px; }
.dash--arranging > [data-card][hidden] { display: flex !important; opacity: 0.45; }
.dash--arranging > [data-card][hidden]::after { content: "Shows when there's something here"; color: var(--ink-soft); font-size: 0.85rem; }
.dash--arranging .dash__grip {
  display: grid; place-items: center; position: absolute; top: 0.45rem; right: 0.45rem; width: 2.4rem; height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(0, 0, 0, 0.6); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.dash--arranging .dash__grip:active { cursor: grabbing; }
.dash__tile--dragging { opacity: 0.85; outline: 2px solid var(--link-hover) !important; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); }

/* Announcements: Seen. */
.ann__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.2rem; }
.ann__seen { margin: 0; font-size: 0.8rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.2rem; }
.ann__seen-btn { font-size: 0.8rem; text-align: left; }
.ann__seen-all { color: var(--ink); }
.ann__seen-mark { padding: 0.35rem 1.1rem; font-size: 0.85rem; }
.ann__close { font-size: 0.8rem; }
.ann--small { padding: 0; }
.ann__open {
  display: flex; align-items: baseline; gap: 0.6rem; width: 100%; padding: 0.5rem 0.9rem; background: none; border: 0;
  color: var(--ink-soft); font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; border-radius: var(--radius);
}
.ann__open:hover { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.ann__tick { color: var(--ok); flex: none; }
.ann__small-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ann__small-meta { flex: none; font-size: 0.78rem; }

/* V103 (Dylan s23): the dark glass look; V104: site-wide, public pages too. See-through near-black panels with a soft top sheen and a thin
   light edge; a faint glow behind the page so the glass has something to show.
   Blur only on the bar, the sidebar and pop-up windows (blur on every card is
   heavy on phones and shows nothing over black anyway). */
:root { --surface: rgba(255, 255, 255, 0.045); --rule: rgba(255, 255, 255, 0.1); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 12% -8%, rgba(37, 99, 235, 0.13), transparent 70%),
    radial-gradient(48rem 30rem at 105% 30%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(50rem 30rem at 40% 110%, rgba(37, 99, 235, 0.07), transparent 70%);
}
body > .bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)), rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.dash__tile, .editor__card, .claim, .pw-folder, .rh-item,
.ann, .task, .comm-card, .comm-post, .comm-side__box, .comm-compose, .credits-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)), rgba(10, 10, 10, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.dash__tile .ann, .dash__tile .task, .dash__tile .needs__item {
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ann--pinned { border-color: rgba(96, 150, 255, 0.6); }
.next-call { border-color: rgba(255, 255, 255, 0.2); }
.form__input { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.form__input:focus { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 3px rgba(124, 179, 255, 0.15); outline: none; }
/* V107: Windows draws a dropdown's list from the select's own background;
   the glass background is see-through, so the list came out white with
   white text (Dylan s24). Give every list a solid dark background. */
select option, select optgroup { background-color: #141414; color: var(--ink); }
.form__button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%), var(--action);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(37, 99, 235, 0.25);
}
.form__button:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%), var(--action-hover); }
.form__button--danger {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%), #b91c1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(185, 28, 28, 0.25);
}
.form__button:disabled { opacity: 0.55; box-shadow: none; }
.prof-follows {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(14, 14, 14, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.prof-follows__head { background: rgba(14, 14, 14, 0.6); }
.prof-follows::backdrop { background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pnav-menu { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
@media (prefers-reduced-transparency: reduce) {
  body > .bar, .prof-follows, .pnav, .bar__menu, .prof__more-menu, .editor__bulk, .savebar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0b0b0b; }
}

/* V104 (Dylan s23): things that float over the page stay readable. The top
   bar's own menus can't blur what's behind the bar (a blurred bar is their
   backdrop), so they're near-solid; the rest are dark glass with a blur. */
.bar__menu, .bar-notes, .bar-search__results {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(14, 14, 14, 0.98);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.65);
}
.prof__more-menu, .editor__bulk, .savebar, .rail-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(14, 14, 14, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.14);
}
.prof__more-menu { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 32px rgba(0, 0, 0, 0.6); }
.editor__status-fixed { background: rgba(0, 0, 0, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* Film buttons: the same glossy top edge; the outlined ones get a faint glass fill. */
.film-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.film-btn--trailer, .film-btn--bts, .film-btn--secondary { background: rgba(255, 255, 255, 0.05); }
/* The home page's bar is clear over the title screen and fades in as you
   scroll (home.js sets --bar-alpha, 0 to 1): the glass fades in with it, so
   nothing blurs the stills while it's clear. */
body.home > .bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(0.04 * var(--bar-alpha, 0))), rgba(255, 255, 255, 0)), rgba(0, 0, 0, calc(0.6 * var(--bar-alpha, 0)));
  -webkit-backdrop-filter: blur(calc(18px * var(--bar-alpha, 0))) saturate(calc(100% + 40% * var(--bar-alpha, 0)));
  backdrop-filter: blur(calc(18px * var(--bar-alpha, 0))) saturate(calc(100% + 40% * var(--bar-alpha, 0)));
  border-bottom-color: rgba(255, 255, 255, calc(0.1 * var(--bar-alpha, 0)));
}

/* V108 (0058): /email, email preferences. */
.eprefs { max-width: 40rem; }
.eprefs__block { margin: 1.25rem 0; padding: 1.1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)), rgba(10, 10, 10, 0.55); }
.eprefs__block--focus { border-color: rgba(96, 150, 255, 0.7); box-shadow: 0 0 0 3px rgba(96, 150, 255, 0.15); }
.eprefs__h { font-size: 1.05rem; font-weight: 500; margin: 0 0 0.6rem; }
.eprefs__block p { margin: 0 0 0.75rem; }
.eprefs__topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0.9rem; }
.eprefs__switch { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; cursor: pointer; }
.eprefs__switch input { width: 1.1rem; height: 1.1rem; }
.eprefs__list { margin: 0 0 0.5rem; padding-left: 1.1rem; }
.eprefs__list li { margin: 0.25rem 0; }
.join__topics { border: 0; margin: -0.25rem 0 0.75rem; padding: 0 0 0 1.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.join__topics legend { padding: 0; margin-bottom: 0.4rem; }
.subs__topic { width: auto; margin: 0.5rem 0 0.75rem; }

/* V111 (Dylan s25): the production tab strip (js/prod-tabs.js). One row of
   tabs under the breadcrumbs; on a phone it scrolls sideways. */
/* V159 (Dylan s52, held notes 21 and 15): the production menu button, top left of every production page. */
.ptabs { margin: 0; padding: 1rem var(--gutter) 0; min-width: 0; position: relative; z-index: 30; }
.ptabs + main { padding-top: 0.75rem; }
.ptabs__menu { position: relative; display: inline-block; max-width: 100%; }
.ptabs__btn { display: inline-flex; align-items: center; gap: 0.55rem; max-width: 100%; min-width: 0; padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--ink);
  font: inherit; font-size: 0.9rem; cursor: pointer; text-align: left; }
.ptabs__btn:hover, .ptabs__btn:focus-visible, .ptabs--open .ptabs__btn { border-color: var(--ink-soft); background: rgba(255, 255, 255, 0.09); }
.ptabs__burger { flex: none; width: 1rem; height: 0.75rem; background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
  linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat; }
.ptabs__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ptabs__here { flex: none; color: var(--ink-soft); white-space: nowrap; }
.ptabs__here::before { content: "\00B7"; margin-right: 0.55rem; }
.ptabs__caret { flex: none; font-size: 0.75rem; color: var(--ink-soft); }
.ptabs__list { position: absolute; z-index: 40; top: calc(100% + 0.4rem); left: 0; min-width: 15rem; max-width: calc(100vw - 1.5rem);
  max-height: min(70vh, 32rem); overflow-y: auto; padding: 0.35rem; display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(14, 14, 14, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); }
.ptabs__list[hidden] { display: none; }
.ptabs__tab { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--ink); font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.ptabs__tab:hover, .ptabs__tab:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
.ptabs__tab--on { background: rgba(37, 99, 235, 0.18); box-shadow: inset 3px 0 0 var(--action); }
/* A red dot on the button while receipts wait in the menu (V145's count). */
/* V161 (Dylan s54): the red dot sits over the button's top right corner, ringed in the page's black, not squeezed against its border. */
.ptabs__btn { position: relative; }
.ptabs__menu:has(.ptabs__list .wait-count) .ptabs__btn::after { content: ""; position: absolute; top: -0.2rem; right: -0.2rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #c4161c; box-shadow: 0 0 0 2px var(--paper); }
@media (prefers-reduced-transparency: reduce) { .ptabs__list { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0b0b0b; } }
.ptabs-note { margin: 0 0 1rem; padding: 0.55rem 0.9rem; border-left: 3px solid var(--action); background: var(--surface); font-size: 0.9rem; }
@media print { .ptabs, .ptabs-note { display: none !important; } }

/* V112 (0063): crew terms and hours */
.crew-terms { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.crew-terms .form__input { width: auto; min-width: 12rem; max-width: 100%; }
.hours-form .cs-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.hours-total { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.hours-total strong { color: var(--ink); font-weight: 500; }
.hours-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.hours-row { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.7rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.hours-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.hours-row__when { font-weight: 500; }
.hours-row__total { margin-left: auto; font-weight: 500; }
.hours-row__meta { font-size: 0.88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.hours-row__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; }
.hours-sum { margin: 0.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.9rem; color: var(--ink-soft); }
.hours-row__tools .form__button { padding: 0.4rem 0.95rem; font-size: 0.88rem; }
.hours-decline { width: 16rem; max-width: 100%; padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 0.88rem; }
.hours-row p { margin: 0; }

/* ---- V113 (decision 226): the install banner (js/app-install.js) and /app ---- */
.app-banner { position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); z-index: 46;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 0.75rem; align-items: center;
  padding: 0.8rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: rgba(14, 14, 14, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); animation: app-banner-in 0.25s ease-out; }
.app-banner__icon { width: 40px; height: 40px; border-radius: 10px; }
.app-banner__text { min-width: 0; }
.app-banner__title { margin: 0; font-weight: 500; font-size: 0.95rem; }
.app-banner__how { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.45; }
.app-banner__em { color: var(--ink); }
.app-banner__share { width: 1.05em; height: 1.05em; vertical-align: -0.15em; color: var(--link-hover); }
.app-banner__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; }
.app-banner__install { padding: 0.45rem 1rem; border: 0; border-radius: 999px; background: var(--action); color: var(--on-action); font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; }
.app-banner__install:hover { background: var(--action-hover); }
.app-banner__more, .app-banner__later { padding: 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent;
  color: var(--ink); font: inherit; font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.app-banner__later { color: var(--ink-soft); }
.app-banner__install:focus-visible, .app-banner__more:focus-visible, .app-banner__later:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
body.has-app-banner .dm-launch { bottom: calc(1rem + var(--app-banner-h, 7rem) + 0.5rem); }
body.has-app-banner .to-top, body.has-app-banner .edit-fab { bottom: calc(0.75rem + var(--app-banner-h, 7rem) + 0.5rem); }
body.has-app-banner.has-edit-fab .to-top { bottom: calc(3.4rem + var(--app-banner-h, 7rem) + 0.5rem); }
@keyframes app-banner-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .app-banner { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .app-banner { background: #0e0e0e; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media print { .app-banner { display: none !important; } }

.app-page__status { margin: 0; padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.app-page__status[hidden] { display: none; }
.app-page__status .form__button { margin-top: 0.75rem; }
.app-page__steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; line-height: 1.55; }
.app-page__steps strong { font-weight: 500; color: var(--ink); }
.app-page__h { margin: 1.5rem 0 0.6rem; font-size: 1.1rem; font-weight: 500; }
.app-page__icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; color: var(--link-hover); }

/* ---- V114 (decision 227): Notifications (/portal/notifications) ---- */
.push-page__on { color: var(--ok); }
.push-page__group { margin: 1.1rem 0 0.5rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.push-page__group:first-child { margin-top: 0.25rem; }
.push-page__switch { align-items: flex-start; margin: 0 0 0.75rem; }
.push-page__switch input { margin-top: 0.2rem; flex: none; }
.push-page__label { display: block; }
.push-page__hint { display: block; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.4; }
.push-page__remove { margin-left: 0.4rem; }

/* V117 (Dylan, s27): built but switched off for now ("Coming later"). */
.pnav__item--later { opacity: 0.45; cursor: default; }
.pnav__item--later:hover { background: none; }
#terms-area.is-later { opacity: 0.6; }

/* V117 (Dylan, s27): the admin Changelog. */
.changelog #list { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.changelog__entry { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.changelog__head { margin: 0 0 0.4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; font-size: 1rem; font-weight: 500; }
.changelog__when { font-size: 0.82rem; font-weight: 300; color: var(--ink-soft); }
.changelog__items { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
/* V117: when the search box needs the whole bar (phones), the logo and menu button step aside
   instead of showing through it. */
.bar--searching.bar--search-wide .bar__home, .bar--searching.bar--search-wide .bar__burger-wrap { visibility: hidden; }

/* V117 (Dylan, s27): Names as two accordions, linked member accounts. */
.names-search { max-width: 26rem; margin: 0.25rem 0 0.75rem; }
.names-group { border: 1px solid var(--rule); border-radius: var(--radius-lg); margin: 0 0 0.75rem; }
.names-group__head { cursor: pointer; padding: 0.7rem 1rem; font-weight: 500; display: flex; align-items: center; gap: 0.6rem; list-style: none; }
.names-group__head::-webkit-details-marker { display: none; }
.names-group__head::after { content: "\25BE"; margin-left: auto; color: var(--ink-soft); transition: transform 0.15s; }
.names-group[open] > .names-group__head::after { transform: rotate(180deg); }
.names-group__count { font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); padding: 0.05rem 0.5rem; border: 1px solid var(--rule); border-radius: 999px; }
.names-group > .editor__person, .names-group > .form__hint { margin: 0 1rem 1rem; }
.names-ed__linked { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.names-ed__acc { width: 1.6rem; height: 1.6rem; }
.crew-badge { display: inline-block; margin-left: 0.4em; padding: 0.1em 0.5em; border: 1px solid rgba(232, 197, 71, 0.6); border-radius: 999px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.5; color: #e8c547; vertical-align: middle; white-space: nowrap; }   /* V117: Cast & Crew */
/* V118 (Dylan, s27): policy pages. */
.policy__date { margin: -0.4rem 0 1.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.policy__body { max-width: 44rem; font-size: 0.95rem; line-height: 1.65; }
.policy__body p { margin: 0 0 0.9rem; }
.policy__body ul { margin: 0 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.policy__h { margin: 1.6rem 0 0.6rem; font-size: 1.1rem; font-weight: 500; }
.site-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1rem; font-size: 0.8rem; }
.site-legal a { color: var(--ink-soft); text-decoration: none; }
.site-legal a:hover { color: var(--ink); }
.home-footer .site-legal { flex-basis: 100%; justify-content: flex-start; }
.join__terms { margin: 0.2rem 0 0; }
.join__terms a { margin-left: 0.2rem; }

/* V119 (Dylan, s27): chat pictures that disappear at midnight; faces open profiles. */
.dm-msg__face-link { display: inline-flex; border-radius: 50%; }
.dm-msg__face-link:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.dm-compose__pic { flex: none; align-self: flex-end; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.dm-compose__pic:hover { color: var(--ink); border-color: var(--ink-soft); }
.dm-compose__pic:disabled { opacity: 0.5; cursor: progress; }
.dm-compose__pic svg { width: 1.15rem; height: 1.15rem; }
.dm-bubble--pic { padding: 0.3rem; }
.dm-bubble--pic > :not(.dm-pic-wrap):not(.dm-pic) { padding: 0.25rem 0.45rem 0.15rem; display: block; }
.dm-pic-wrap { display: flex; flex-direction: column; gap: 0.15rem; }
.dm-pic { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: calc(var(--radius) - 2px); overflow: hidden; max-width: min(15rem, 60vw); }
.dm-pic__img { display: block; width: 100%; height: auto; max-height: 18rem; object-fit: cover; }
.dm-pic__note { font-size: 0.68rem; color: var(--ink-soft); padding: 0 0.3rem; }
.dm-pic--gone { cursor: default; padding: 0.5rem 0.6rem; font-size: 0.82rem; font-style: italic; color: var(--ink-soft); }
.dm-picview { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.dm-picview::backdrop { background: rgba(0, 0, 0, 0.88); }
.dm-picview__img { display: block; max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: var(--radius); }
.dm-picview__x { position: absolute; top: 0.4rem; right: 0.4rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1rem; cursor: pointer; }
.dm-msg__face-link { text-decoration: none; }

/* ===========================================================================
   V119 (Dylan, s27): the sleeker Portal. Every page with the Portal sidebar
   (body.has-pnav) gets smaller buttons, inputs and blocks, Supabase-style;
   link-style action buttons become small pills (links inside sentences stay
   links); the film editor's many "Visible to" pickers become compact.
   Public pages are unchanged.
   =========================================================================== */
.has-pnav main.editor, .has-pnav main.scaffold { gap: 1rem; }
.has-pnav main .scaffold__line { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
.has-pnav main .scaffold__note { font-size: 0.9rem; }
.has-pnav main .form__field { gap: 0.25rem; }
.has-pnav main .form__label { font-size: 0.82rem; }
.has-pnav main .form__hint { font-size: 0.76rem; }
.has-pnav main .form__input { padding: 0.48rem 0.65rem; font-size: 0.9rem; border-radius: 8px; }
.has-pnav main textarea.form__input { line-height: 1.45; }
.has-pnav main .form__button { padding: 0.48rem 0.9rem; font-size: 0.86rem; border-radius: 8px; line-height: 1.3; }
.has-pnav main .editor__group { padding: 0.95rem 1rem; gap: 0.75rem; border-radius: 10px; }
.has-pnav main .editor__group-heading { font-size: 0.98rem; }
.has-pnav main .dash__tile { padding: 0.85rem 0.95rem; gap: 0.5rem; border-radius: 10px; }
.has-pnav main .dash__title { font-size: 0.74rem; }
.has-pnav main .editor__card { border-radius: 10px; }
.has-pnav main .editor__table { font-size: 0.86rem; }
.has-pnav main .editor__table th, .has-pnav main .editor__table td { padding: 0.42rem 0.6rem 0.42rem 0; }

/* Link-style buttons as small pills. */
.has-pnav main .form__link,
.has-pnav main .runs__links a, .has-pnav main .dash__more a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.16rem 0.62rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); color: var(--ink);
  font-size: 0.78rem; font-weight: 500; line-height: 1.45; text-decoration: none; white-space: nowrap;
}
.has-pnav main .form__link:hover,
.has-pnav main .runs__links a:hover, .has-pnav main .dash__more a:hover {
  color: var(--ink); border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.09);
}
.has-pnav main .form__link.editor__danger-link, .has-pnav main .form__link.comm-menu__danger { color: #f87171; border-color: rgba(248, 113, 113, 0.35); }
.has-pnav main .form__link.editor__danger-link:hover { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.6); }
.has-pnav main .runs__links { gap: 0.35rem; margin-top: 0.2rem; }
.has-pnav main .dash__more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }

/* Compact "Visible to" pickers (film editor sections, images, credits, bios). */
.has-pnav main .editor__pair { grid-template-columns: 1fr 9.5rem; gap: 0.6rem; }
.has-pnav main label.form__field:has(> select[data-vis="section"]) > .form__label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.has-pnav main select[data-vis="section"], .has-pnav main select.editor__vis {
  padding: 0.22rem 0.5rem; font-size: 0.78rem; border-radius: 999px; width: auto !important; min-width: 7.5rem; max-width: 11rem; flex: 0 0 auto;
}
@media (max-width: 40rem) {
  .has-pnav main .editor__pair { grid-template-columns: 1fr; gap: 0.35rem; }
  .has-pnav main label.form__field:has(> select[data-vis="section"]) { flex-direction: row; align-items: center; gap: 0.5rem; }
}

/* ===========================================================================
   V121 (Dylan, s28): slim buttons and link pills across the whole site.
   Buttons are 32px tall (Watch now and the home banner's 36px, the one
   strong button); inputs and dropdowns about 34px. A standalone link gets
   "lnk-pill" from site-bar.js and becomes a pill at the text's own size;
   links inside sentences stay underlined.
   =========================================================================== */
.form__button, .has-pnav main .form__button { padding: 0.42rem 0.95rem; font-size: 0.88rem; line-height: 1.3; border-radius: 8px; }
.form__input { padding: 0.42rem 0.65rem; font-size: 0.92rem; border-radius: 8px; }
.has-pnav main .form__input { padding: 0.4rem 0.6rem; }
.film-btn { min-height: 2rem; padding: 0.3rem 0.85rem; font-size: 0.86rem; border-radius: 8px; }
.film-btn--watch, .home-banner__btn { min-height: 2.25rem; padding: 0.35rem 1.05rem; }
.film-btn--small { min-height: 1.75rem; padding: 0.2rem 0.7rem; font-size: 0.8rem; }
.prof__actions { align-items: center; }
.comm-card__join, .dm__new, .dm-banner .form__button, .editor__bulk .form__button, .savebar .form__button { padding: 0.38rem 0.85rem; }

a.lnk-pill, main .form__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.05em 0.65em; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); color: var(--ink);
  line-height: 1.5; text-decoration: none; white-space: nowrap; vertical-align: baseline;
}
a.lnk-pill:hover, main .form__link:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.1); }
li > a.lnk-pill { margin: 0.1rem 0; }
main .form__link.editor__danger-link, main .form__link.comm-menu__danger { color: #f87171; border-color: rgba(248, 113, 113, 0.35); }
select.form__input, .has-pnav main select.form__input { padding-top: 0.3rem; padding-bottom: 0.3rem; }
a.form__button, a.form__button:hover { text-decoration: none; }
/* V121: the bell's "Notification settings" label. */
.bar-notes__titles { display: flex; flex-direction: column; gap: 0.1rem; }
.bar-notes__settings { font-size: 0.74rem; color: var(--ink-soft); text-decoration: none; }
.bar-notes__settings:hover { color: var(--ink); text-decoration: underline; }
/* V121: the sidebar's arrow for the pages under an item. */
.pnav__has-sub { position: relative; }
.pnav__has-sub > .pnav__item { padding-right: 2rem; }
.pnav__toggle { position: absolute; top: 0.25rem; right: 0.2rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--ink-soft); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.pnav__toggle:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.pnav__toggle span { display: block; transition: transform 0.15s ease; }
.pnav__toggle[aria-expanded="true"] span { transform: rotate(90deg); }
/* V121 (Dylan s28): the title-screen logo starts smaller (80% of V051's) and
   settles at exactly the same final size as before (16.5rem x 0.72). */
.home-hero__logo { width: min(36.8vw, 13.2rem); }
.home-hero__logo.is-settled { transform: scale(0.9); }
/* V121 (Dylan s28): on phones the footer stacks, one item per line, centred. */
@media (max-width: 40rem) {
  .home-footer { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 0.85rem; }
  .home-footer .site-legal { flex-basis: auto; flex-direction: column; align-items: center; gap: 0.55rem; }
}
/* V121: the film page's poster opens larger on click. */
.film-hero__poster-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.film-hero__poster-open img { display: block; transition: transform 0.2s; }
.film-hero__poster-open:hover img { transform: scale(1.015); }
/* V121 (Dylan s28): the bar's menus (account, three-line, bell, search) open
   above the chat window (z-index 45), so the bar sits above it. */
.bar, body > .bar { z-index: 50; }
/* V121: /films heading with "See all on YouTube" beside it. */
.films__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1rem; margin: 0.25rem 0 1.25rem; }
.films__top .films__heading { margin: 0; }
.films__yt img { display: block; width: 20px; height: auto; }
/* V121 (Dylan s28): Cast & Crew a brighter yellow; Co-Founder (0067) a filled gold pill, shown first. */
.crew-badge { color: #ffd60a; border-color: rgba(255, 214, 10, 0.85); background: rgba(255, 214, 10, 0.08); }
.founder-badge { display: inline-block; margin-left: 0.4em; padding: 0.1em 0.55em; border: 1px solid #ffd60a; border-radius: 999px; background: #ffd60a; color: #111;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.founder-badge + .crew-badge { margin-left: 0.3em; }
/* V121 (Dylan s28): a profile's links as icons in the banner's bottom right corner. */
.prof__banner-links { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; margin: 0; padding: 0; list-style: none; max-width: 70%; }
.prof__banner-link { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; text-decoration: none;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.prof__banner-link:hover { background: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.5); }
.prof__banner-link svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 30rem) { .prof__banner-link { width: 1.75rem; height: 1.75rem; } .prof__banner-link svg { width: 0.95rem; height: 0.95rem; } }
/* V121: tick pills (Members access, phrase types) at the slim button height. */
.members__tier { padding: 0.28rem 0.75rem; font-size: 0.86rem; gap: 0.4rem; }
.members__tier input { width: 0.9rem; height: 0.9rem; }

/* ===========================================================================
   V122 (Dylan, s28)
   =========================================================================== */
/* A name's labels stay together on one line (Co-Founder beside Cast & Crew). */
.name-labels { display: inline-flex; align-items: center; gap: 0.3em; margin-left: 0.4em; white-space: nowrap; vertical-align: middle; }
.name-labels > span { margin-left: 0 !important; }
.prof__name .name-labels .founder-badge, .prof__name .name-labels .crew-badge { font-size: 0.72rem; }
.comm-author .name-labels { margin-left: 0; }
/* A pill in a narrow column wraps inside itself instead of running over its neighbours. */
a.lnk-pill { white-space: normal; max-width: 100%; text-align: left; border-radius: 0.9em; overflow-wrap: anywhere; }
/* Review score slider: 1 to 10 in halves, a tick per half, numbers on the whole ones. */
.rev-scale { --thumb: 1.15rem; position: relative; padding-bottom: 1.35rem; max-width: 30rem; }
.rev-scale__input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--thumb); margin: 0; background: transparent; cursor: pointer; }
.rev-scale__input::-webkit-slider-runnable-track { height: 0.3rem; border-radius: 999px;
  background: linear-gradient(90deg, #f0c94a var(--pct, 50%), rgba(255, 255, 255, 0.14) var(--pct, 50%)); }
.rev-scale__input:not(.is-set)::-webkit-slider-runnable-track { background: rgba(255, 255, 255, 0.14); }
.rev-scale__input::-moz-range-track { height: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.rev-scale__input.is-set::-moz-range-progress { height: 0.3rem; border-radius: 999px; background: #f0c94a; }
.rev-scale__input::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: var(--thumb); margin-top: calc((0.3rem - var(--thumb)) / 2);
  border-radius: 50%; background: #fff; border: 2px solid #f0c94a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.rev-scale__input::-moz-range-thumb { width: var(--thumb); height: var(--thumb); border-radius: 50%; background: #fff; border: 2px solid #f0c94a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.rev-scale__input:not(.is-set)::-webkit-slider-thumb { border-color: var(--ink-soft); }
.rev-scale__input:not(.is-set)::-moz-range-thumb { border-color: var(--ink-soft); }
.rev-scale__input:focus-visible { outline: none; }
.rev-scale__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(240, 201, 74, 0.35); }
.rev-scale__ticks { position: absolute; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); top: calc(var(--thumb) + 0.15rem);
  display: flex; justify-content: space-between; pointer-events: none; }
.rev-scale__tick { position: relative; width: 1px; height: 0.3rem; background: rgba(255, 255, 255, 0.25); }
.rev-scale__tick--whole { height: 0.5rem; background: rgba(255, 255, 255, 0.5); }
.rev-scale__num { position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: var(--ink-soft); }
.rev-scale__read { min-width: 4.2rem; justify-content: center; }
/* The chat bubble steps aside while something sits on top of the page:
   any open dialog (pictures, videos, community posts, agreements, lists),
   the phone Portal drawer, the app banner, and typing on a phone. */
html:has(dialog[open]) .dm-launch,
body.pnav-open .dm-launch,
body:has(.app-banner:not([hidden])) .dm-launch { display: none; }
@media (max-width: 40rem) {
  html:has(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):focus, textarea:focus) .dm-launch { display: none; }
}
/* Profile links on the banner: icon and short label (V122). */
.prof__banner-link { display: inline-flex; align-items: center; gap: 0.35rem; width: auto; height: 1.9rem; padding: 0 0.65rem 0 0.5rem; border-radius: 999px; font-size: 0.76rem; font-weight: 500; }
.prof__banner-link-label { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 30rem) {
  .prof__banner-links { max-width: 92%; right: 0.45rem; bottom: 0.45rem; gap: 0.25rem; }
  .prof__banner-link { width: auto; height: 1.6rem; padding: 0 0.5rem 0 0.4rem; font-size: 0.68rem; gap: 0.25rem; }
}
/* Film links (V122): small round icons under the film's buttons; the label shows on hover. */
.film-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.film-links__a { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; color: var(--ink-soft); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }
.film-links__a:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.09); }
.film-links__a svg { width: 1rem; height: 1rem; }
.film-links-ed { margin-top: 1.25rem; }
.film-links-ed__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.film-links-ed__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.film-links-ed__row .editor__narrow { flex: 0 1 9rem; }
.film-links-ed__row input[type="url"] { flex: 1 1 14rem; min-width: 0; }
.film-links-ed__icon { display: grid; place-items: center; width: 1.6rem; color: var(--ink-soft); }
.film-links-ed__icon svg { width: 1rem; height: 1rem; }
/* V123 (Dylan s28): when the labels wrap under a long name they start at the
   name's left edge (no indent); beside a short name they keep their gap. */
.prof__name, h1:has(> .name-labels) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.45em; row-gap: 0.35rem; }
h1 > .name-labels { margin-left: 0; }
/* V124 (Dylan s28): See all on YouTube in the site's quiet glass look (no white fill, even on hover). */
.films__yt { background: rgba(255, 255, 255, 0.05); color: var(--ink); border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.films__yt:hover, .films__yt:focus-visible { background: rgba(255, 255, 255, 0.1); color: var(--ink); border-color: rgba(255, 255, 255, 0.36); }
/* V126 (Dylan s29): the Script box on Scenes: current draft, upload, preview, previous drafts. */
.script-box { display: flex; flex-direction: column; gap: 0.6rem; }
.script-box p { margin: 0; }
.script-box__line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.script-box__pick { position: relative; overflow: hidden; cursor: pointer; }
.script-box__file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.script-box__preview { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.script-box__warn { margin: 0; padding-left: 1.1rem; color: var(--warn); font-size: 0.88rem; }
.script-box__gone { color: var(--warn); font-size: 0.9rem; }
.script-box__older summary { cursor: pointer; font-size: 0.9rem; color: var(--ink-soft); }
.script-box__older ul { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.script-pv__wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.script-pv { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.script-pv th { text-align: left; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); }
.script-pv td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.script-pv tr:last-child td { border-bottom: 0; }
.script-pv__num { font-weight: 500; white-space: nowrap; }
.script-pv__pg { white-space: nowrap; }
.script-pv__desc { min-width: 14rem; font-weight: 300; color: var(--ink-soft); }
.script-pv__row--same { opacity: 0.7; }
.scene__head--out .scene__num, .scene__head--out .scene__set, .scene__head--out .scene__meta { opacity: 0.55; }
.script-box .form__status:empty { display: none; }
@media (max-width: 40rem) { .script-pv th:last-child, .script-pv__desc { display: none; } }
/* V127 (Dylan s29): Characters on Scenes, and the characters found in a draft. */
.chars { display: flex; flex-direction: column; gap: 0.6rem; }
.chars p { margin: 0; }
.chars__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.chars__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.chars__row:last-child { border-bottom: 0; }
.chars__row--out .chars__name { opacity: 0.55; }
.chars__tools { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; }
.chars__who { width: auto; min-width: 12rem; }
.chars__note { max-width: 6rem; }
.chars__ask { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0.3rem 0 0.1rem; }
.chars__ask .form__hint { margin: 0; }
.chars__role { width: auto; min-width: 9rem; }
.chars__add .form__input:first-child { flex: 1 1 14rem; }
.script-box__charlist { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: 0.9rem; }
.script-box__charlist li { display: inline-flex; align-items: center; gap: 0.3rem; }

/* --- Shot list (V129, 0073, decision 269): /portal/shot-list ------------------
   Full width on computers and tablets; a fixed-layout table so every column
   stays on screen and widths share the page in proportion. Phones scroll it
   sideways inside its box (Dylan doesn't use it on phones). */
.shots-page { max-width: none; }
.shots { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.shots__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.shots__views { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.shots__view { background: transparent; color: var(--ink-soft); border: 0; padding: 0.35rem 0.9rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
.shots__view[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.shots__sum { margin: 0; color: var(--ink-soft); font-size: 0.85rem; flex: 1 1 auto; }
.shots__cols { position: relative; }
.shots__cols > summary { list-style: none; cursor: pointer; }   /* V160 (held note 1): a pill, like Refresh (main .form__link) */
.shots__cols > summary::-webkit-details-marker { display: none; }
.shots__cols-menu { position: absolute; right: 0; z-index: 20; margin-top: 0.4rem; padding: 0.7rem 0.9rem; min-width: 12rem;
  display: flex; flex-direction: column; gap: 0.35rem; background: var(--bar); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.shots__colopt { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; cursor: pointer; }
.shots__wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.shots__table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.85rem; }
@media (max-width: 760px) { .shots__table { min-width: 60rem; } }
.shots__h { position: relative; text-align: left; font-weight: 500; color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.5rem 0.45rem; border-bottom: 1px solid var(--rule); background: var(--bar); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shots__resize { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; touch-action: none; }
.shots__resize::after { content: ""; position: absolute; top: 25%; bottom: 25%; right: 3px; width: 1px; background: var(--rule); }
.shots__resize:hover::after, .shots--resizing .shots__resize::after { background: var(--link-hover); }
.shots--resizing { cursor: col-resize; user-select: none; }
.shots__c { padding: 0.3rem 0.45rem; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.06); overflow: hidden; overflow-wrap: break-word; }
.shots__row:hover > td { background: rgba(255,255,255,0.025); }
.shots__row--cut .shots__c:not(.shots__c--cut):not(.shots__c--menu):not(.shots__c--move) { opacity: 0.45; }
.shots__row--cut .shots__shotno, .shots__row--cut .shots__ta, .shots__row--cut .shots__text { text-decoration: line-through; }
.shots__row--done .shots__shotno { color: var(--ok); }
/* V160 (held note 2): a Done row tinted green, a Cut row tinted red (and struck through, above). */
.shots__row--done > td { background: rgba(34, 197, 94, 0.09); }
.shots__row--cut > td { background: rgba(239, 68, 68, 0.09); }
.shots__row--done:hover > td { background: rgba(34, 197, 94, 0.13); }
.shots__row--cut:hover > td { background: rgba(239, 68, 68, 0.13); }
/* V160 (held note 9): a shot with no minutes asks for them; a cut shot's box is greyed. */
.shots__num--need { border-color: var(--warn); }
.shots__num--need::placeholder { color: var(--warn); opacity: 0.8; }
/* V160 (held notes 8, 10): Add pulses once something is typed; × cancels. */
.shots__new-add--ready { animation: shots-pulse 1.2s ease-in-out infinite; color: var(--ink); border-color: var(--action); }
@keyframes shots-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.0); } 50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.45); } }
@media (prefers-reduced-motion: reduce) { .shots__new-add--ready { animation: none; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.6); } }
.shots__new-x { font-size: 1rem; padding: 0 0.25rem; }
.shots__colreset { margin: 0.3rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* V160 (held note 14): the status line fades by itself after good news. */
#status.editor__status-fixed { transition: opacity 0.35s ease; }
#status.shots__say--gone { opacity: 0; }
/* V160 (held note 4): Previs only, big pictures and a big add button for a phone's camera. */
/* V161 (Dylan s54): bigger again, as wide as the column allows (up to 20rem), 16:9. */
.shots--previs .shots__thumb { flex: 0 1 auto; width: min(100%, 20rem, calc(11.25rem * var(--r, 1.7778))); height: auto; aspect-ratio: var(--r, 1.7778); font-size: 1.6rem; }
/* V163 (0093): a framed picture is placed by js (placeIn) inside its box; the guide marks the frame on a Letterbox or Reframe view. */
.shots__thumb img.shots__framed, .shots__vbox img.shots__framed { position: absolute; max-width: none; height: auto; object-fit: fill; }
.shots__guide { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6); outline: 1px solid rgba(255, 255, 255, 0.85); pointer-events: none; }
.shots__guide[hidden] { display: none; }
.shots__thumb { overflow: hidden; }
.shots__vbox { position: relative; overflow: hidden; border-radius: 6px; background: #000; }
.shots__viewer .shots__vbox img { max-height: none; margin: 0; border-radius: 0; }
.shots__viewer--rf .shots__vbox { cursor: grab; touch-action: none; }
.shots__viewer--rf .shots__vbox:active { cursor: grabbing; }
.shots__viewer-tools[hidden], .shots__reframe[hidden] { display: none; }
.shots__reframe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin: 0.7rem 0 0; }
.shots__rf-hint { margin: 0; width: 100%; color: var(--ink-soft); font-size: 0.85rem; }
.shots__rf-field { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; }
.shots__rf-field select { width: auto; }
.shots__rf-field input[type="range"] { width: 9rem; accent-color: var(--action); }
.shots__rf-go { margin: 0 0 0 auto; display: flex; align-items: center; gap: 0.8rem; }
/* On a phone the pictures take most of the row's width; the saved widths are for the wider views. */
@media (max-width: 760px) {
  .shots--previs col.shots__col--scene { width: 11% !important; }
  .shots--previs col.shots__col--shot { width: 12% !important; }
  .shots--previs col.shots__col--desc { width: 25% !important; }
  .shots--previs col.shots__col--previs { width: 52% !important; }
}
.shots--previs .shots__previs { gap: 0.5rem; }
.shots--previs .shots__table { min-width: 0; }
.shots--previs .shots__c--previs { padding: 0.45rem; }
/* V160 (held note 12) */
.shots__readers-dlg.prof-follows { width: min(30rem, calc(100vw - 2rem)); }
.shots__readers-dlg .shots__readers-list { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.6rem; }
/* V160 (held note 13): on a phone the Shot column stays in view while the table scrolls sideways. */
@media (max-width: 760px) {
  .shots__table .shots__c--shot { position: sticky; left: 0; z-index: 2; background: #0d0d0d; box-shadow: 1px 0 0 var(--rule); }
  .shots__table th.shots__c--shot { z-index: 3; }
  .shots__row--done > td.shots__c--shot { background: #0f1d14; }
  .shots__row--cut > td.shots__c--shot { background: #1f1010; }
}
.shots__row--dragging > td { opacity: 0.35; }
.shots__row--block > td { background: rgba(37, 99, 235, 0.07); }
.shots__blockname { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.shots__blockname .shots__ta { flex: 1 1 10rem; }
.shots__in.shots__block-kind { width: auto; flex: 0 0 auto; font-weight: 500; }
.shots__n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shots__shotno { font-weight: 500; }
.shots__in { width: 100%; box-sizing: border-box; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 6px;
  padding: 0.2rem 0.3rem; font: inherit; font-size: 0.85rem; min-width: 0; }
.shots__in:hover { border-color: var(--rule); }
.shots__in:focus { outline: none; border-color: var(--link-hover); background: var(--surface); }
select.shots__in { background: var(--surface); border-color: var(--rule); }
.shots__ta { resize: none; overflow: hidden; line-height: 1.35; display: block; }
.shots__num { text-align: right; }
.shots__in.shots__scenesel { -webkit-appearance: none; appearance: none; background: transparent; border-color: transparent; padding: 0.2rem 0.2rem; font-weight: 500; cursor: pointer; }
.shots__in.shots__scenesel:hover { border-color: var(--rule); }
.shots__c--time { font-size: 0.8rem; }
.shots__fixed, .shots__date { width: auto; }
.shots__c--time .shots__fixed { width: 100%; padding: 0.1rem 0.15rem; font-size: 0.78rem; }
.shots__add-sel { width: auto; max-width: 100%; padding: 0.1rem 0.25rem; font-size: 0.78rem; }
.shots__chips { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.shots__chip { white-space: nowrap; max-width: 100%; overflow: hidden; display: inline-flex; align-items: center; gap: 0.15rem; padding: 0.05rem 0.45rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.78rem; background: var(--surface); }
.shots__actor { color: var(--ink-soft); }
.shots__chip-x { background: none; border: 0; color: var(--ink-soft); cursor: pointer; padding: 0 0.1rem; font: inherit; line-height: 1; }
.shots__chip-x:hover { color: var(--accent); }
.shots__new { display: inline-flex; gap: 0.3rem; align-items: center; width: 100%; }
.shots__previs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.shots__thumb { position: relative; width: min(6.2rem, calc(3.5rem * var(--r, 1.7778))); height: auto; aspect-ratio: var(--r, 1.7778); padding: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); cursor: pointer; font: inherit; }
.shots__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shots__thumb--add:hover { color: var(--ink); border-color: var(--link-hover); }
.shots__time { display: flex; flex-direction: column; gap: 0.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shots__past6 { display: inline-block; white-space: normal; font-size: 0.66rem; line-height: 1.25; color: var(--warn); border: 1px solid currentColor; border-radius: 8px; padding: 0.05rem 0.3rem; max-width: 100%; }
.shots__tick { width: 1rem; height: 1rem; accent-color: var(--action); }
.shots__move { display: flex; align-items: center; gap: 0.1rem; }
.shots__grip { cursor: grab; color: var(--ink-soft); touch-action: none; user-select: none; padding: 0 0.1rem; }
.shots__steps { display: inline-flex; flex-direction: column; }
.shots__step { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: 0.55rem; line-height: 1.1; padding: 0.05rem 0.15rem; }
.shots__step:hover:not(:disabled) { color: var(--ink); }
.shots__step:disabled { opacity: 0.3; cursor: default; }
.shots__icon { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 0.85rem; padding: 0.1rem 0.25rem; white-space: nowrap; }
.shots__icon:hover, .shots__icon--sure { color: var(--accent); }
.shots__day > td { padding: 0.55rem 0.6rem; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.shots__day--un > td { background: transparent; }
.shots__dayline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; }
.shots__daybit { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink-soft); font-size: 0.8rem; }
.shots__daybit select.shots__in { width: auto; max-width: 14rem; }
.shots__daylabel { width: 12rem; }
.shots__daymeta { color: var(--ink-soft); font-size: 0.82rem; }
.shots__daysum { margin-left: auto; }
.shots__daytools { display: inline-flex; align-items: center; gap: 0.3rem; }
.shots__dropline { position: absolute; z-index: 30; height: 2px; background: var(--link-hover); pointer-events: none; box-shadow: 0 0 6px var(--link-hover); }
.shots__add { padding-top: 0.2rem; }
.shots__addrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 1rem; }
.shots__addrow .form__field { margin: 0; min-width: 12rem; }
.shots__readers > summary { cursor: pointer; }
.shots__readers-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.shots__viewer { max-width: min(92vw, 70rem); padding: 0.8rem; background: var(--bar); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.shots__viewer::backdrop { background: rgba(0,0,0,0.75); }
.shots__viewer img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 6px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* V161: the picture sits in a stage the same size as it, with the pen's canvas over it and arrows on its edges. */
.shots__viewer-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; touch-action: pan-y; }
.shots__viewer-ink { position: absolute; left: 0; top: 0; pointer-events: none; border-radius: 6px; }
.shots__viewer-ink--on { pointer-events: auto; cursor: crosshair; touch-action: none; }
.shots__viewer .player__nav[hidden] { display: none; }
.shots__viewer-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem 0.8rem; align-items: center; margin: 0.7rem 0 0; }
.shots__viewer-cap { margin-right: auto; color: var(--ink-soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.shots__viewer-pen, .shots__viewer-pens, .shots__viewer-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; }
.shots__viewer-pens[hidden] { display: none; }
.shots__viewer-btn { padding: 0.3rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.shots__viewer-btn:hover { border-color: var(--ink-soft); }
.shots__viewer-btn[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.shots__swatch { width: 1.5rem; height: 1.5rem; padding: 0; border-radius: 50%; border: 2px solid transparent; background: var(--sw); box-shadow: 0 0 0 1px var(--rule); cursor: pointer; }
.shots__swatch[aria-pressed="true"] { border-color: var(--bar); box-shadow: 0 0 0 2px var(--ink); }

/* V162 (decision 381): the export dialog. */
.shots__export-dlg.prof-follows { width: min(36rem, calc(100vw - 2rem)); }
.shots__export { display: flex; flex-direction: column; gap: 0.9rem; }
.shots__xset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.55rem 0.8rem 0.7rem; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.shots__xset legend { padding: 0 0.3rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.shots__xopt { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; line-height: 1.35; cursor: pointer; }
.shots__xopt input { margin-top: 0.2rem; accent-color: var(--action); flex: none; }
.shots__xlist { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; padding: 0.2rem 0 0.2rem 1.6rem; max-height: 10rem; overflow-y: auto; }
.shots__xlist[hidden], .shots__xrange[hidden] { display: none; }
.shots__xlist .shots__xopt { font-size: 0.85rem; }
.shots__xrange { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding-left: 1.6rem; font-size: 0.88rem; }
.shots__xrange label { display: inline-flex; align-items: center; gap: 0.4rem; }
.shots__xrange select { width: auto; min-width: 6rem; }
.shots__xlabel { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.shots__xlabel strong { color: var(--ink); font-weight: 500; }
.shots__xgo { margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* V130 (0074): a call sheet that follows a shot list day. */
.cs-live { margin: 0; padding: 0.5rem 0.75rem; border: 1px solid rgba(37, 99, 235, 0.45); border-radius: var(--radius); background: rgba(37, 99, 235, 0.08); font-size: 0.88rem; }
.cs-live--frozen { border-color: var(--rule); background: var(--surface); }
.cs-past6 { margin-left: 0.4rem; vertical-align: middle; }
.cs-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.cs-follow .form__field { flex: 1 1 16rem; min-width: 0; max-width: 30rem; margin: 0; }
.cs-follow .form__input { width: 100%; min-width: 0; }
.cs-preview { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
.cs-preview li { display: flex; gap: 0.8rem; }
.cs-preview__time { min-width: 3.2rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.shots__flag { display: inline-block; margin-top: 0.2rem; font-size: 0.68rem; color: var(--warn); border: 1px solid currentColor; border-radius: 8px; padding: 0 0.3rem; background: none; cursor: pointer; font-family: inherit; }
.shots__flag--static { cursor: default; }
.shots__sheet { font-size: 0.8rem; }
@media print { .cs-live { display: none; } }

/* V134 (Dylan s30): a table that turns into cards on a phone (Films list).
   Each cell is a line with its column's heading before it; the first cell
   (the title) is the card's heading. */
@media (max-width: 640px) {
  .editor__table--cards, .editor__table--cards tbody, .editor__table--cards tr, .editor__table--cards td { display: block; width: 100%; }
  .editor__table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .editor__table--cards tr { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .has-pnav main .editor__table--cards td, .editor__table--cards td { padding: 0.15rem 0; border: 0; display: flex; gap: 0.75rem; align-items: baseline; }
  .editor__table--cards td::before { content: attr(data-label); flex: 0 0 7.5rem; color: var(--ink-soft); font-size: 0.8rem; }
  .editor__table--cards td.editor__mono::before { font-family: "Poppins", system-ui, sans-serif; font-size: 0.89em; }
  .editor__table--cards td:first-child { font-size: 1rem; padding-bottom: 0.35rem; }
  .editor__table--cards td:first-child::before { content: none; }
  .editor__table--cards td.editor__mono { word-break: break-all; }
}

/* V134 (Dylan s30): the sidebar folds to icons on a computer, and its
   scrollbar stays out of the way (thin, visible only while hovering). */
.pnav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.pnav:hover, .pnav:focus-within { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.pnav::-webkit-scrollbar { width: 6px; }
.pnav::-webkit-scrollbar-track { background: transparent; }
.pnav::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.pnav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
.pnav__fold {
  display: none; align-self: flex-end; width: 1.8rem; height: 1.8rem; place-items: center; flex: none;
  background: none; border: 1px solid transparent; border-radius: 6px; color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 1rem; line-height: 1;
}
.pnav__fold:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.pnav__foldicon, .pnav__foldicon svg { display: block; width: 1.15rem; height: 1.15rem; }
@media (min-width: 64rem) {
  .pnav__fold { display: grid; }
  :root.pnav-mini { --pnav-w: 3.6rem; }
  .pnav-mini .pnav { padding-left: 0.45rem; padding-right: 0.45rem; }
  .pnav-mini .pnav__fold { align-self: center; }
  .pnav-mini .pnav__group { display: none; }
  .pnav-mini .pnav__list[hidden] { display: flex; }
  .pnav-mini .pnav__section + .pnav__section { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 0.3rem; padding-top: 0.3rem; }
  .pnav-mini .pnav__label, .pnav-mini .pnav__note, .pnav-mini .pnav__sub, .pnav-mini .pnav__toggle { display: none; }
  .pnav-mini .pnav__item { justify-content: center; padding: 0.45rem 0; position: relative; }
  /* V145 (Dylan s39): the folded sidebar opens over the page while the mouse
     is on it (js/portal-nav.js adds .pnav--peek). Same rows in the same
     places, the names beside the icons; nothing on the page moves. */
  .pnav-mini .pnav { overflow-x: hidden; transition: width 0.15s ease, box-shadow 0.15s ease; }
  .pnav-mini .pnav.pnav--peek { width: 15rem; box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03), 14px 0 36px rgba(0, 0, 0, 0.6); }
  .pnav-mini .pnav--peek .pnav__label, .pnav-mini .pnav--peek .pnav__note { display: block; animation: pnav-peek-in 0.18s ease; }
  .pnav-mini .pnav--peek .pnav__item { justify-content: flex-start; padding: 0.45rem 0.6rem 0.45rem 0.7125rem; }   /* the icon stays where it was */
  .pnav-mini .pnav--peek .pnav__fold { align-self: flex-end; }
}
@keyframes pnav-peek-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pnav-mini .pnav { transition: none; } .pnav-mini .pnav--peek .pnav__label, .pnav-mini .pnav--peek .pnav__note { animation: none; } }

/* V145 (0081, Dylan s39): receipts waiting for your decision, a red count
   like the bell's, on the sidebar's Receipts and invoices and a production's
   Approve receipts tab (js/portal-nav.js, js/prod-tabs.js). */
.wait-count { display: inline-block; flex: none; min-width: 1.1rem; height: 1.1rem; margin-left: 0.4rem; padding: 0 0.3rem; border-radius: 999px;
  background: #c4161c; color: #fff; font-size: 0.65rem; font-weight: 500; line-height: 1.1rem; text-align: center; font-variant-numeric: tabular-nums; vertical-align: 0.1em; }
@media (min-width: 64rem) {
  .pnav-mini .pnav:not(.pnav--peek) .pnav__item .wait-count { position: absolute; top: 0.05rem; right: 0.1rem; margin: 0;
    min-width: 0.95rem; height: 0.95rem; padding: 0 0.22rem; font-size: 0.58rem; line-height: 0.95rem; pointer-events: none; }
}

/* V134 (Dylan s30): several roles at once on a production, and Edit roles. */
.prod-pick { display: flex; flex-direction: column; gap: 0.45rem; }
.prod-pick__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 1.6rem; align-items: center; }
.prod-pick__add { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.prod-pick__add select { flex: 1 1 12rem; max-width: 20rem; }
.prod-pick__add input { flex: 1 1 10rem; max-width: 16rem; }
.prod-pick__chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; }
.prod-pick__chars:empty { display: none; }
.prod-role-edit { margin-top: 0.5rem; }
.prod-role-ticks { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.prod-role-ticks .editor__check { white-space: nowrap; }

/* V135 (0078, Dylan s30): who reacted, under the reaction you tapped. */
.dm-reacts { position: relative; }
.dm-who { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 11rem; max-width: 16rem; max-height: 12rem; overflow-y: auto;
  background: #111; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); padding: 0.35rem 0.5rem; }
.dm-msg--mine .dm-who { left: auto; right: 0; }
.dm-who__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.82rem; }
.dm-who__row { display: flex; align-items: center; gap: 0.45rem; padding: 0.15rem 0; }
.dm-who__row a { color: var(--ink); text-decoration: none; }
.dm-who__row a:hover { text-decoration: underline; }
.dm-who__emoji { flex: none; }
.dm-who__undo { margin-left: auto; font-size: 0.75rem; }
.dm-who__muted { color: var(--ink-soft); }

/* V135 (0078, Dylan s30): Portal tooltips (js/tooltips.js) and their switch. */
.tip { position: fixed; z-index: 200; pointer-events: none; background: #141414; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55); padding: 0.4rem 0.6rem; font-size: 0.8rem; line-height: 1.4; }
.tip[hidden] { display: none; }
.tips-on [data-tip] { text-decoration-style: dotted; }
/* V139 (s34): press and hold shows the tip, so the iPhone's link preview and text selection stay off while tips are on. */
.tips-on [data-tip] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.tips-on .form__label[data-tip], .tips-on th[data-tip] { cursor: help; text-decoration: underline dotted rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.bar__menu-tips { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.bar__menu-switch { font-size: 0.75rem; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.75rem; }
.bar__menu-tips[aria-checked="true"] .bar__menu-switch { color: var(--ink); border-color: var(--action); }

/* V136 (0079, Dylan s30): the Cast and Crew list. */
.ccl__search { max-width: 26rem; }
.ccl__side { border: 1px solid var(--rule); border-radius: 12px; margin: 0 0 0.75rem; background: rgba(255, 255, 255, 0.02); }
.ccl__side-head, .ccl__group-head { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; list-style: none; }
.ccl__side-head::-webkit-details-marker, .ccl__group-head::-webkit-details-marker { display: none; }
.ccl__side-head { padding: 0.8rem 1rem; font-size: 1.05rem; font-weight: 500; }
.ccl__side-head::before, .ccl__group-head::before { content: "\203A"; display: inline-block; width: 0.8rem; color: var(--ink-soft); transition: transform 0.15s ease; }
.ccl__side[open] > .ccl__side-head::before, .ccl__group[open] > .ccl__group-head::before { transform: rotate(90deg); }
.ccl__count { margin-left: auto; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); }
.ccl__groups { padding: 0 0.75rem 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.ccl__group { border-top: 1px solid var(--rule); }
.ccl__group-head { padding: 0.6rem 0.25rem; font-size: 0.92rem; }
.ccl__people { list-style: none; margin: 0 0 0.5rem; padding: 0 0 0 1.05rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ccl__person { display: grid; grid-template-columns: auto minmax(8rem, 14rem) 1fr; align-items: center; gap: 0.4rem 0.75rem; }
.ccl__who { display: flex; flex-direction: column; min-width: 0; }
.ccl__name { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
a.ccl__name:hover { text-decoration: underline; }
.ccl__sub { font-size: 0.76rem; color: var(--ink-soft); }
.ccl__face { width: 2.2rem; height: 2.2rem; flex: none; }
.ccl__role--other { opacity: 0.55; }
.ccl__role--hit { border-color: var(--action); }
@media (max-width: 640px) {
  .ccl__person { grid-template-columns: auto 1fr; }
  .ccl__person > .prod-person__roles, .ccl__person > .form__hint { grid-column: 2; }
  .ccl__people { padding-left: 0.25rem; }
}

/* V138 (Dylan s33): a field you can't change looks it, e.g. a production's
   details for its 1st ADs and Directors (they were disabled but looked editable). */
.form__input:disabled { opacity: 0.55; cursor: not-allowed; }
.editor__check input:disabled, .editor__check input:disabled + span { opacity: 0.55; cursor: not-allowed; }

/* V138 (Dylan s33): Financials. Tax $ and Paid by get fixed widths, so the
   spare room goes to the description (Tax $ took it before); a description's
   full text shows on hover; Tax $ lines up with its heading. */
.fin-col--who { width: 10rem; }
.fin-col--amount { min-width: 7rem; }
.fin-col--taxamt { width: 6.5rem; min-width: 6.5rem; }
.fin-in--tax_amount { text-align: right; }

/* V151 (Dylan s46, decision 349): the back-to-newest button in a chat is
   bigger and sits at the bottom centre, so it's easy to spot. */
.dm-tobottom { left: 50%; right: auto; bottom: 0.75rem; width: 2.6rem; height: 2.6rem; transform: translateX(-50%); opacity: 0.92; }
.dm-tobottom svg { width: 1.3rem; height: 1.3rem; }

/* V151 (decision 350): Take a photo or choose a file (js/photo-pick.js). */
.photo-pick__choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-pick__choices .form__button { flex: 1 1 12rem; }
.photo-pick__choices [hidden] { display: none; }
.photo-pick__frame { margin: 0 0 0.6rem; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.photo-pick__video, .photo-pick__still { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-pick__video[hidden], .photo-pick__still[hidden] { display: none; }
.photo-pick.prof-follows { width: min(34rem, calc(100vw - 2rem)); }
.photo-pick .prof__btn-quiet { background: transparent; border: 1px solid var(--rule); color: var(--ink); box-shadow: none; }
.photo-pick .prof__btn-quiet:hover { background: var(--surface-2, rgba(255, 255, 255, 0.06)); }
.photo-pick .form__status:empty { display: none; }

/* V152 (decision 355): explainers behind an ⓘ beside their heading (js/explainers.js).
   Hidden only once the script has run (html.has-explain), so a failed load hides nothing. */
.has-explain [data-explain]:not(.explain-orphan) { display: none; }
.explain-i {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 1.15rem; height: 1.15rem; margin: -0.15em 0 0 0.45rem; padding: 0;
  border: 1.5px solid currentColor; border-radius: 50%;
  background: transparent; color: var(--ink-soft); opacity: 0.8;
  font: italic 600 0.72rem/1 Georgia, "Times New Roman", serif; letter-spacing: 0; text-transform: none;
  cursor: pointer; flex: 0 0 auto;
}
.explain-i:hover, .explain-i:focus-visible { color: var(--ink); opacity: 1; }
.explain-i:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.scaffold__line > .explain-i { width: 1.35rem; height: 1.35rem; font-size: 0.85rem; margin-left: 0.6rem; }
.fin-h > .explain-i { width: 1.05rem; height: 1.05rem; font-size: 0.7rem; }
.explain-dlg.prof-follows { width: min(32rem, calc(100vw - 2rem)); }
.explain-dlg .prof-follows__body { overflow-y: auto; max-height: calc(min(36rem, 100svh - 4rem) - 3.5rem); }
.explain-dlg__text { color: var(--ink); font-size: 0.95rem; line-height: 1.55; margin: 0.25rem 0 0.75rem; }
.explain-dlg__text a { color: inherit; }
@media print { .explain-i { display: none; } }

/* V153 (0086, decisions 356-358): the Screenplay page (js/screenplay.js).
   The tool is dark like the rest of the Portal; the page itself is white with
   black Courier Prime at the industry indents (js/screenplay-layout.js). At
   16px a character is 9.6px, so 85 columns is 816px: 8.5 inches at 96 dpi. */
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime/CourierPrime-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime/CourierPrime-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime/CourierPrime-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
.sp-page { max-width: 60rem; }
.sp-page.sp-page--edit { max-width: none; padding-top: 0.75rem; }
.sp-new { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sp-new .form__input { flex: 1 1 16rem; }
.sp-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.sp-list__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.sp-list__title { font-weight: 500; color: var(--ink); text-decoration: none; }
.sp-list__title:hover { color: var(--link-hover); }
.sp-list__meta { color: var(--ink-soft); font-size: 0.85rem; flex: 1 1 auto; }
.sp-list__tools { margin: 0; font-size: 0.88rem; }

.sp-edit { display: flex; flex-direction: column; gap: 0.6rem; }
.sp-phone-note { margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--warn); border-radius: var(--radius); color: var(--ink); font-size: 0.9rem; }
.sp-bar { position: sticky; top: var(--bar-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem;
  padding: 0.55rem 0.75rem; border: 1px solid var(--rule); border-radius: var(--radius); background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sp-bar__title { flex: 1 1 14rem; min-width: 10rem; font-weight: 500; }
.sp-bar__type select { min-width: 12rem; }
.sp-bar__views { display: inline-flex; gap: 0.3rem; }
.sp-bar__check { margin: 0; white-space: nowrap; }
.sp-bar__state { color: var(--ink-soft); font-size: 0.82rem; white-space: nowrap; margin-left: auto; }
.sp-bar__state--bad { color: var(--bad); }
.sp-bar .form__link[disabled] { opacity: 0.4; cursor: default; }
.sp-keys { margin: 0; color: var(--ink-soft); font-size: 0.8rem; }
.sp-readonly { margin: 0; }

.sp-desk { position: relative; --sp-s: 1; display: flex; justify-content: safe center; padding: 0.5rem 0 3rem; overflow-x: auto; }
.sp-desk--zoomed .sp-paper { max-width: none; flex: none; }   /* V160: bigger than the window scrolls sideways instead of rewrapping */
/* V160 (Dylan s54): − 100% + page size on screen */
.sp-zoom { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; flex: none; }
.sp-zoom__btn, .sp-zoom__val { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0.22rem 0.6rem; line-height: 1.2; }
.sp-zoom__val { min-width: 3.4rem; font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.sp-zoom__btn:hover, .sp-zoom__val:hover { background: rgba(255, 255, 255, 0.08); }
.sp-zoom__btn:disabled { opacity: 0.35; cursor: default; }
.sp-paper {
  font-family: "Courier Prime", "Courier New", Courier, monospace; font-size: calc(16px * var(--sp-s)); line-height: 1.25;
  width: 85ch; max-width: 100%; min-height: 60vh; padding: 4em 10ch 8em 15ch;
  background: #fff; color: #000; caret-color: #000; border-radius: 3px; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
  outline: none;
}
.sp-paper:focus-visible { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--link-hover); }
.sp-paper ::selection { background: #b4d5fe; color: #000; }
.sp-el { position: relative; width: 60ch; margin: 1.25em 0 0; white-space: pre-wrap; overflow-wrap: break-word; min-height: 1.25em; }
.sp-el:first-child { margin-top: 0; }
.sp-el--scene, .sp-el--shot, .sp-el--character, .sp-el--transition { text-transform: uppercase; }
.sp-el--character { margin-left: 22ch; width: 38ch; }
.sp-el--paren { margin: 0 0 0 16ch; width: 23ch; padding-left: 1ch; text-indent: -1ch; }
.sp-el--dialogue { margin: 0 0 0 10ch; width: 35ch; }
.sp-el--transition { text-align: right; }
.sp-el--centered { text-align: center; }
.sp-el.is-empty::after { content: attr(data-ph); position: absolute; left: 0; top: 0; color: #9a9a9a; pointer-events: none; text-transform: none; }
.sp-el--transition.is-empty::after { left: auto; right: 0; }
.sp-el--centered.is-empty::after { left: 0; right: 0; text-align: center; }
.sp-el--paren.is-empty::after { left: 1ch; }
/* A page break: a dashed line with the new page's number, above the element it starts at. */
.sp-el[data-page]::before { content: "Page " attr(data-page); display: block; margin: 0.4em -10ch 0.9em -15ch; padding: 0.15em 10ch 0 0; border-top: 1px dashed #b5b5b5;
  color: #8a8a8a; font: 11px/1.4 Poppins, system-ui, sans-serif; text-align: right; text-transform: none; text-indent: 0; }
.sp-el--character[data-page]::before { margin-left: -37ch; }
.sp-el--dialogue[data-page]::before { margin-left: -25ch; margin-right: -25ch; }
.sp-el--paren[data-page]::before { margin-left: -32ch; margin-right: -31ch; }
.sp-el[data-split]:not(.is-empty)::after { content: "continues on page " attr(data-split); position: absolute; right: -9.5ch; bottom: 0; width: 9ch;
  color: #8a8a8a; font: 10px/1.2 Poppins, system-ui, sans-serif; text-transform: none; text-indent: 0; text-align: left; }
.sp-el--scene[data-num]:not(.is-empty)::after { content: attr(data-num); position: absolute; left: -6ch; top: 0; color: #000; }
.sp-suggest { position: absolute; z-index: 25; margin: 0; padding: 0.25rem; list-style: none; min-width: 14rem; max-width: 30rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.sp-suggest__item { padding: 0.35rem 0.6rem; border-radius: 6px; cursor: pointer; font-family: "Courier Prime", "Courier New", monospace; font-size: 0.9rem; }
.sp-suggest__item.is-picked, .sp-suggest__item:hover { background: var(--action); color: var(--on-action); }

/* Pages: the exact pages of the PDF, 85 columns by 66 rows each. */
.sp-pages { --sp-s: 1; --sp-lh: calc(16px * var(--sp-s)); display: flex; flex-direction: column; align-items: safe center; overflow-x: auto; gap: 1.25rem; padding: 0.5rem 0 3rem; }
.sp-sheet { position: relative; width: calc(816px * var(--sp-s)); height: calc(1056px * var(--sp-s)); background: #fff; color: #000;
  font-family: "Courier Prime", "Courier New", Courier, monospace; font-size: calc(16px * var(--sp-s)); line-height: var(--sp-lh);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6); border-radius: 2px; overflow: hidden; }
.sp-line { position: absolute; white-space: pre; }
.sp-line[data-el] { cursor: text; }
.sp-line[data-el]:hover { background: rgba(37, 99, 235, 0.08); }

.sp-tp-dlg.prof-follows { width: min(34rem, calc(100vw - 2rem)); }
.sp-tp { display: flex; flex-direction: column; gap: 0.7rem; }

@media (max-width: 48rem) {
  .sp-bar { position: static; }
  .sp-bar__state { margin-left: 0; }
  .sp-desk { padding-top: 0; }
  .sp-paper { width: 100%; padding: 1.25em 1em 4em; font-size: calc(15px * var(--sp-z, 1)); }   /* V162: − + sizes the text on a phone (it rewraps) */
  .sp-desk--zoomed .sp-paper { max-width: 100%; flex: 1 1 auto; }
  .sp-el { width: auto; }
  .sp-el--character { margin-left: 10ch; width: auto; }
  .sp-el--paren { margin-left: 6ch; width: auto; }
  .sp-el--dialogue { margin-left: 3ch; margin-right: 2ch; width: auto; }
  .sp-el[data-page]::before { margin-left: -1em; margin-right: -1em; padding-right: 1em; }
  .sp-el--character[data-page]::before { margin-left: calc(-10ch - 1em); }
  .sp-el--paren[data-page]::before { margin-left: calc(-6ch - 1em); }
  .sp-el--dialogue[data-page]::before { margin-left: calc(-3ch - 1em); margin-right: calc(-2ch - 1em); }
  .sp-el[data-split]:not(.is-empty)::after, .sp-el--scene[data-num]:not(.is-empty)::after { display: none; }
}

/* V154 (0087, decisions 359-361): revision colours, drafts, * marks, co-writers. */
.sp-bar__rev { display: inline-flex; align-items: center; gap: 0.4rem; }
.sp-bar__rev select { min-width: 9rem; }
.sp-swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); flex: 0 0 auto; }
.sp-marks { position: absolute; inset: 0; pointer-events: none; }
.sp-mark { position: absolute; color: #000; font-family: "Courier Prime", "Courier New", monospace; white-space: pre; }
.sp-line--revmark, .sp-line--revlabel { color: #000; }
.sp-pen-note, .sp-draft-note { margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); font-size: 0.9rem; }
.sp-draft-note { border-color: var(--action); }
.sp-dlg.prof-follows { width: min(36rem, calc(100vw - 2rem)); }
.sp-dlg__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0.5rem 0 0; }
.sp-draft-form { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
.sp-draft-form[hidden] { display: none; }
.sp-drafts, .sp-writers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sp-drafts__row { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0.6rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.sp-drafts__row--base { border-color: var(--action); }
.sp-drafts__row .sp-swatch { margin-top: 0.25rem; }
.sp-drafts__main { flex: 1 1 auto; min-width: 0; }
.sp-drafts__title { margin: 0; font-weight: 500; }
.sp-drafts__meta { margin: 0.1rem 0 0.25rem; color: var(--ink-soft); font-size: 0.82rem; }
.sp-drafts__tools { margin: 0; font-size: 0.85rem; }
.sp-writers__row { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; }
.sp-writers__role { color: var(--ink-soft); font-size: 0.82rem; }
/* V182 (0105): editors' copies, margin notes, the review */
.sp-cw-role { width: auto; flex: 0 0 auto; }
.sp-edits-note { margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--action); border-radius: var(--radius); background: var(--surface); font-size: 0.9rem; }
.sp-edits-note__text { margin: 0; }
.sp-edits__who { display: inline-flex; gap: 0.5rem; align-items: center; }
.sp-edit--staged #sp-drafts, .sp-edit--staged #sp-tp, .sp-edit--staged #sp-import-wrap, .sp-edit--staged #sp-cw,
.sp-edit--staged #sp-send, .sp-edit--staged #sp-lock, .sp-edit--staged .sp-bar__rev { display: none; }
.sp-el--noted::after { content: ""; position: absolute; right: -1.6rem; top: 0.15em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #f5b400; box-shadow: 0 0 0 2px rgba(245, 180, 0, 0.25); }
.sp-el--noted { background: rgba(245, 180, 0, 0.12); }
.sp-note-line { font-family: "Courier Prime", "Courier New", monospace; }
.sp-rv-dlg.prof-follows { width: min(52rem, calc(100vw - 2rem)); }
.sp-rv { display: flex; flex-direction: column; gap: 1rem; max-height: 55vh; overflow-y: auto; padding-right: 0.25rem; }
.sp-rv__cover { margin: 0; font-style: italic; }
.sp-rv__count { color: var(--ink-soft); font-size: 0.85rem; }
.sp-rv__scene { display: flex; flex-direction: column; gap: 0.5rem; }
.sp-rv__scene-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 0.25rem; }
.sp-rv__scene-title { margin: 0; font-family: "Courier Prime", "Courier New", monospace; font-size: 0.95rem; text-transform: uppercase; }
.sp-rv__hunk { display: flex; flex-direction: column; gap: 0.4rem; }
.sp-rv__hunk--clash { opacity: 0.85; border-left: 3px solid #d98b00; padding-left: 0.6rem; }
.sp-rv__clash { margin: 0; font-size: 0.85rem; color: #f0b44a; }
.sp-rv__pair { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.sp-rv__pair input { margin-top: 0.35rem; flex: 0 0 auto; }
.sp-rv__lines { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; flex: 1; }
.sp-rv__line { display: flex; gap: 0.6rem; padding: 0.25rem 0.5rem; border-radius: 0.35rem; font-family: "Courier Prime", "Courier New", monospace; font-size: 0.9rem; overflow-wrap: anywhere; }
.sp-rv__line--del { background: rgba(220, 70, 70, 0.14); color: var(--ink-soft); }
.sp-rv__line--del .sp-rv__text { text-decoration: line-through; }
.sp-rv__line--ins { background: rgba(60, 170, 90, 0.18); }
.sp-rv__type { flex: 0 0 6.5rem; font-family: inherit; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); padding-top: 0.15rem; }
.sp-rv__text { min-width: 0; }
.sp-rv__note, .sp-rv__noteline { margin: 0; font-size: 0.85rem; }
.sp-rv__note { padding: 0.25rem 0.5rem; border-left: 3px solid #f5b400; background: rgba(245, 180, 0, 0.1); }
.sp-rv__notebox { display: flex; flex-direction: column; gap: 0.2rem; }
@media (max-width: 40rem) { .sp-rv__type { flex-basis: 4.5rem; } .sp-el--noted::after { right: -0.9rem; } }
.sp-cw-add { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.sp-cw-add .form__input { flex: 1 1 auto; }
@media (max-width: 48rem) { .sp-marks { display: none; } }

/* V155 (decision 362): importing a script. */
.sp-import { cursor: pointer; }
.sp-import:focus-within, .sp-bar__import:focus-within { outline: 2px solid var(--link-hover); outline-offset: 3px; }
.sp-bar__import { cursor: pointer; }
.sp-bar__import[hidden] { display: none; }
.sp-undo-note { padding: 0.6rem 0.8rem; border: 1px solid var(--action); border-radius: var(--radius); background: rgba(37, 99, 235, 0.08); }
.sp-imp-warn { margin: 0 0 0.5rem; padding-left: 1.1rem; }

/* V156 (0088, decision 358): Submit to production. */
.sp-sent__row { flex-direction: column; gap: 0.15rem; }
.sp-sent__status { font-size: 0.86rem; color: var(--ink-soft); }
.sp-sent__status--waiting { color: var(--warn); }
.sp-sent__status--accepted { color: var(--ok); }
.sp-send-form { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.6rem; }
.script-subs__box { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.script-subs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.script-subs__row { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0.6rem; border: 1px solid var(--warn); border-radius: var(--radius); }
.script-subs__what { font-size: 0.92rem; }
.script-subs__tools { flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; }
.script-subs__tools .form__input { flex: 1 1 14rem; min-width: 0; }

/* V157 (0089, decision 363): Lock. */
.sp-bar__locked { color: var(--warn); }
.sp-lock h3 { margin: 0.8rem 0 0.2rem; }
.sp-lock p { margin: 0 0 0.4rem; }
.sp-lock__confirm { margin-top: 0.6rem; padding: 0.6rem 0.7rem; border: 1px solid var(--warn); border-radius: var(--radius); }

/* V158 (held note 25): the Show password eye (js/site-bar.js). */
.pwd-wrap { position: relative; display: block; }
.pwd-wrap .form__input { width: 100%; padding-right: 2.6rem; }
.pwd-eye { position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%); width: 2rem; height: 2rem; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.pwd-eye:hover, .pwd-eye:focus-visible { color: var(--ink); background: rgba(255,255,255,0.08); }
.pwd-eye svg { width: 1.15rem; height: 1.15rem; }
/* V158 (held note 28): the page a lost login turns into (js/auth.js). */
.logged-out { max-width: 34rem; margin: 2rem 0; }
.logged-out .form__button { display: inline-flex; width: auto; margin-top: 0.5rem; text-decoration: none; }

/* V160 (held note 11): the search list for long dropdowns (js/select-search.js). */
.selsearch { position: fixed; z-index: 1200; display: flex; flex-direction: column; max-width: calc(100vw - 16px); padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(14, 14, 14, 0.96); }
.selsearch__input { flex: none; width: 100%; box-sizing: border-box; margin: 0 0 0.3rem; padding: 0.4rem 0.55rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 0.85rem; }
.selsearch__input:focus { outline: none; border-color: var(--link-hover); }
.selsearch__list { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.selsearch__item { padding: 0.35rem 0.55rem; border-radius: 6px; font-size: 0.85rem; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selsearch__item--on { font-weight: 500; }
.selsearch__item--at { background: var(--action); color: var(--on-action); }
.selsearch__item--off { color: var(--ink-soft); opacity: 0.5; cursor: default; }
.selsearch__group { padding: 0.45rem 0.55rem 0.15rem; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.selsearch__none { padding: 0.45rem 0.55rem; font-size: 0.82rem; color: var(--ink-soft); }

/* V164 (0094, held note 22): Report a bug (js/bug-report.js) and /portal/bug-reports. */
.bugr-dlg.prof-follows { width: min(34rem, calc(100vw - 2rem)); }
.bugr-dlg .prof-follows__body { overflow-y: auto; max-height: calc(min(36rem, 100svh - 4rem) - 3.5rem); }
.bugr { display: flex; flex-direction: column; gap: 0.35rem; }
.bugr .form__label { margin-top: 0.45rem; }
.bugr .form__hint { margin: 0; }
.bugr__text { min-height: 7rem; resize: vertical; }
.bugr__file { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.bugr__file-input { display: none; }
.bugr__file-line { margin: 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.bugr__file-line[hidden] { display: none; }
.bugr__with { margin-top: 0.5rem !important; font-size: 0.78rem; overflow-wrap: anywhere; }
.bugr__go { margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bugr__thanks { margin: 0.25rem 0 0.5rem; }
.bugr .form__status:empty { display: none; }
.bugr-dlg .prof__btn-quiet, .bugs__tools .prof__btn-quiet { background: transparent; border: 1px solid var(--rule); color: var(--ink); box-shadow: none; }
.bugr-dlg .prof__btn-quiet:hover, .bugs__tools .prof__btn-quiet:hover { background: var(--surface-2, rgba(255, 255, 255, 0.06)); }
.bugs__tools { margin: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bugs__tools[hidden] { display: none; }
.bugs__page { margin: 0; padding: 0.35rem 1rem 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.bugs__details { margin: 0; padding: 0 1rem 0.5rem; font-size: 0.78rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.bugs__shot { padding: 0 1rem 0.4rem; }
.bugs__thumbs:empty { display: none; }
.bugs__thumb { display: block; max-width: min(100%, 22rem); max-height: 14rem; border: 1px solid var(--rule); border-radius: var(--radius); cursor: zoom-in; object-fit: contain; background: #000; }
.bugs__shot-links { margin: 0.35rem 0 0; font-size: 0.85rem; }

/* V165 (held note 29): Receipt history fills most of the screen, with filters and a CSV. */
.rh--big.prof-follows { width: min(72rem, calc(100vw - 2rem)); max-width: none; height: calc(100svh - 3rem); max-height: none; }
.rh--big[open] { display: flex; flex-direction: column; }
.rh--big .rh__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
.rh-intro { margin: 0 0 0.6rem !important; }
.rh-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.8rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.rh-f { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.rh-f .form__label { font-size: 0.78rem; margin: 0; }
.rh-f .form__input { width: auto; min-width: 9.5rem; }
.rh-tools .form__input { height: 2.5rem; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.rh-f--q { flex: 1 1 14rem; }
.rh-f--q .form__input { width: 100%; }
.rh-f--go { flex-direction: row; align-items: center; gap: 0.8rem; }
.rh-clear[hidden] { display: none; }
.rh-count { margin: 0.5rem 0 0.5rem !important; font-size: 0.82rem; color: var(--ink-soft); }
.rh-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 1rem; overscroll-behavior: contain; }
.rh-item__prod { margin: -0.2rem 0 0.4rem !important; font-size: 0.8rem; color: var(--ink-soft); }
.rh-item__more { margin: 0.45rem 0 0 !important; font-size: 0.78rem; color: var(--ink-soft); }
.rh--big .prof__btn-quiet { background: transparent; border: 1px solid var(--rule); color: var(--ink); box-shadow: none; }
@media (max-width: 40rem) {
  .rh--big.prof-follows { width: 100vw; height: 100svh; margin: 0; border-radius: 0; border: 0; }
  .rh-f { flex: 1 1 calc(50% - 0.4rem); }
  .rh-f--prod { flex-basis: 100%; }
  .rh-f .form__input { min-width: 0; width: 100%; }
  .rh-f--q { flex-basis: 100%; }
}

/* V166 (0095, held note 23): Financials categories and exports. */
.fin-exports { margin: 0.4rem 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fin-exports .prof__btn-quiet, .finx-dlg .prof__btn-quiet, .fin-cats .prof__btn-quiet { background: transparent; border: 1px solid var(--rule); color: var(--ink); box-shadow: none; }
.fin-head .fin-exports { margin: 0; align-self: flex-end; }
.fin-con__foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; }
.fin-in--cat { min-width: 9rem; max-width: 100%; }
.fin-in--uncat { color: #fbbf24; border-color: rgba(251, 191, 36, 0.55); }
.fin-in--uncat option { color: var(--ink); }
.finx-dlg.prof-follows { width: min(32rem, calc(100vw - 2rem)); }
.finx { display: flex; flex-direction: column; gap: 0.7rem; }
.finx .form__hint { margin: 0; }
.finx__field { display: flex; flex-direction: column; gap: 0.25rem; }
.finx__field .form__input { width: auto; }
.finx__opt { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.finx__opt input { margin-top: 0.2rem; accent-color: var(--action); }
.finx__opt strong { font-weight: 500; }
.finx__hint { color: var(--ink-soft); font-size: 0.82rem; }
.finx__go { margin: 0.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fin-cats__table { table-layout: fixed; width: 100%; min-width: 40rem; }
.fin-cats__table .form__input { min-width: 0; width: 100%; box-sizing: border-box; }
.fin-cats__table th:nth-child(1) { width: 30%; } .fin-cats__table th:nth-child(2) { width: 27%; } .fin-cats__table th:nth-child(3) { width: 23%; }
.fin-cats__table th:nth-child(4) { width: 7%; } .fin-cats__table th:nth-child(5) { width: 13%; }
.fin-cats__cra .fin-cats__table th:nth-child(1) { width: 12%; } .fin-cats__cra .fin-cats__table th:nth-child(2) { width: 60%; }
.fin-cats__cra .fin-cats__table th:nth-child(3) { width: 12%; } .fin-cats__cra .fin-cats__table th:nth-child(4) { width: 16%; }
.fin-cats__cra .fin-cats__table { min-width: 24rem; }
.fin-cats__table td { vertical-align: top; white-space: normal; }
.fin-cats__add .form__input, .fin-cats__add select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.fin-cats__note { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: #fbbf24; }
.fin-cats__archived td { opacity: 0.55; }
.fin-cats__acts { white-space: nowrap; }
.fin-cats__acts .form__link + .form__link { margin-left: 0.8rem; }
.fin-cats__add { flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.fin-cats__add .form__input { width: auto; flex: 1 1 14rem; }
.fin-cats__cra { margin-top: 0.9rem; }

/* V167 (0096): GST/HST small supplier check, LCA revenue. */
.fin-gst { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.8rem 1rem 0.9rem; background: rgba(255, 255, 255, 0.02); }
.fin-gst--warn { border-color: rgba(251, 191, 36, 0.6); }
.fin-gst--alert { border-color: var(--bad, #ef4444); }
.fin-gst .fin-h { margin-top: 0; }
.fin-gst__row { margin-top: 0.6rem; }
.fin-gst__lab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; font-size: 0.88rem; }
.fin-gst__lab strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.fin-gst__bar { height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 0.3rem; }
.fin-gst__bar span { display: block; height: 100%; border-radius: 999px; background: #4ade80; }
.fin-gst--near .fin-gst__bar span { background: #fbbf24; }
.fin-gst--over .fin-gst__bar span { background: #ef4444; }
.fin-gst__sub { margin: 0.3rem 0 0; font-size: 0.75rem; color: var(--ink-soft); }
.fin-gst__alert { margin: 0.7rem 0 0; color: #fca5a5; font-size: 0.88rem; }
.fin-col--counts { text-align: center; width: 4.5rem; }
.fin-col--counts input { accent-color: var(--action); width: 1.05rem; height: 1.05rem; }
.fin-col--invoice_no .fin-in { min-width: 6rem; }
.fin-col--client .fin-in { min-width: 8rem; }
.fin-lcarev .fin-col--description { min-width: 9rem; }
.fin-lcarev .fin-col--category { min-width: 6.5rem; }
.fin-lcarev .fin-col--client .fin-in, .fin-lcarev .fin-col--client { min-width: 6.5rem; }
.fin-lcarev .fin-col--invoice_no .fin-in, .fin-lcarev .fin-col--invoice_no { min-width: 4.5rem; }
.fin-lcarev .fin-col--occurred_on .fin-in, .fin-lcarev .fin-col--date { min-width: 8.2rem; }
.fin-lcarev .fin-col--taxamt { width: 5.5rem; min-width: 5.5rem; }
.fin-lcarev .fin-col--amount { min-width: 6.5rem; }

/* V173 (0100, decision 451): two-step login (js/two-step.js, /portal/two-step) and the audit log (/portal/audit). */
.twostep-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 1rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule); border-left: 3px solid #e0a100; border-radius: var(--radius); background: var(--surface); }
.twostep-strip__text { margin: 0; flex: 1 1 16rem; font-size: 0.9rem; }
.twostep-strip__go { margin: 0; white-space: nowrap; }
.twostep-dlg.prof-follows { width: min(26rem, calc(100vw - 2rem)); }
.twostep__form { display: flex; flex-direction: column; gap: 0.35rem; }
.twostep__form .form__hint { margin: 0; }
.twostep__form .form__status:empty { display: none; }
.twostep__code { font-size: 1.4rem; letter-spacing: 0.35em; text-align: center; max-width: 11rem; font-variant-numeric: tabular-nums; }
.twostep__go { margin: 0.5rem 0 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.twostep__list, .twostep__people { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; }
.twostep__item, .twostep__person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.8rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.twostep__name { font-weight: 500; overflow-wrap: anywhere; }
.twostep__when { color: var(--ink-soft); font-size: 0.85rem; flex: 1 1 auto; }
.twostep__qr { margin: 0.5rem 0; }
.twostep__qr img { display: block; width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: var(--radius); }
.twostep__secret code { font-size: 0.95rem; letter-spacing: 0.08em; overflow-wrap: anywhere; user-select: all; }
.audit__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 1rem; margin: 0.75rem 0 0.25rem; }
.audit__search { flex: 1 1 18rem; margin: 0; }
.audit__count { margin: 0.25rem 0 0.5rem; font-size: 0.82rem; color: var(--ink-soft); }
.audit__list { list-style: none; margin: 0; padding: 0; }
.audit__item { padding: 0.55rem 0.2rem 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; }
.audit__item--alarm { border-left-color: #e0a100; }
.audit__what { margin: 0; overflow-wrap: anywhere; }
.audit__meta { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
@media print { .twostep-strip { display: none !important; } }

/* V183 (0106, decisions 495-498): the outline (js/outline.js). The same cards in two views,
   plus the loose pile beside them. */
.sp-views { margin: 0 0 0.6rem; }
.ol { display: flex; flex-direction: column; gap: 0.6rem; }
.ol-bar__pick select { min-width: 12rem; max-width: 22rem; }
.ol-modes .sp-zoom__btn[aria-pressed="true"] { background: rgba(37, 99, 235, 0.28); color: var(--ink); }
.ol-modes .sp-zoom__btn + .sp-zoom__btn { border-left: 1px solid var(--rule); }
.ol-official-note { margin: 0; }
.ol-desk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; padding-bottom: 3rem; }
.ol-desk--pile { grid-template-columns: minmax(0, 1fr) 17rem; }
.ol-main { min-width: 0; }
.ol-board { display: flex; flex-direction: column; gap: 0.9rem; }

/* Cards */
.ol-c--red { --oc: #ef4444; } .ol-c--orange { --oc: #f97316; } .ol-c--yellow { --oc: #eab308; } .ol-c--green { --oc: #22c55e; }
.ol-c--blue { --oc: #3b82f6; } .ol-c--purple { --oc: #a855f7; } .ol-c--grey { --oc: #9ca3af; }
/* V184: cards are white paper with black text (Dylan s66); a colour tints them and edges them. */
.ol-card { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.45rem 0.55rem 0.5rem; border: 1px solid #d9d9d6; border-left: 4px solid #d9d9d6;
  border-radius: var(--radius); background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.ol-card[class*="ol-c--"] { border-left-color: var(--oc); background: color-mix(in srgb, var(--oc) 13%, #fff); }
.ol-card--band { padding: 0.6rem 0.75rem 0.7rem; border-left-width: 5px; background: #fbfbf9; }
.ol-card.is-selected, .ol-line.is-selected { outline: 3px solid var(--action); outline-offset: 1px; }
.ol-card__top { display: flex; align-items: center; gap: 0.35rem; min-height: 1.3rem; color: #6b6b6b; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ol-card__under { color: #8a8a8a; letter-spacing: 0.02em; text-transform: none; }
.ol-fold { padding: 0 0.2rem; border: 0; border-radius: 4px; background: none; color: #555; font-size: 0.8rem; line-height: 1.2; cursor: pointer; }
.ol-fold:hover, .ol-fold:focus-visible { background: rgba(0, 0, 0, 0.08); color: #111; }
.ol-tick { width: 1rem; height: 1rem; margin: 0; accent-color: var(--action); pointer-events: none; }
.ol--selecting .ol-card, .ol--selecting .ol-line { cursor: pointer; }
.ol--selecting textarea { cursor: pointer; }
.ol-card__grip { cursor: grab; font-size: 0.95rem; letter-spacing: 0; line-height: 1; user-select: none; }
.ol-card__grip:active { cursor: grabbing; }
.ol-card__more { margin-left: auto; padding: 0 0.35rem; border: 0; border-radius: 6px; background: none; color: #555; font-size: 1.05rem; line-height: 1.2; cursor: pointer; }
.ol-card__more:hover, .ol-card__more:focus-visible { background: rgba(0, 0, 0, 0.08); color: #111; }
.ol-card__h, .ol-card__d, .ol-line__h, .ol-line__d { display: block; width: 100%; margin: 0; padding: 0.1rem 0.2rem; border: 0; border-radius: 4px; background: transparent;
  color: #111; font: inherit; resize: none; overflow: hidden; }
.ol-card__h:focus, .ol-card__d:focus, .ol-line__h:focus, .ol-line__d:focus { outline: 1px solid #2563eb; background: rgba(37, 99, 235, 0.05); }
.ol-card__h[readonly]:focus, .ol-card__d[readonly]:focus, .ol-line__h[readonly]:focus, .ol-line__d[readonly]:focus { outline: none; background: transparent; }
.ol-card__h { font-weight: 600; font-size: 0.93rem; line-height: 1.3; }
.ol-card__d { color: #3d3d3d; font-size: 0.83rem; line-height: 1.4; }
.ol-card--band > .ol-card__h { font-size: 1.05rem; }
.ol-card--d3, .ol-card--d4 { padding: 0.3rem 0.45rem 0.35rem; }
.ol-card--d4 { background: #f7f7f5; box-shadow: none; }
.ol-card--d3 .ol-card__h, .ol-card--d4 .ol-card__h { font-size: 0.86rem; }
.ol-card--d3 .ol-card__d, .ol-card--d4 .ol-card__d { font-size: 0.8rem; }
.ol-card__d::placeholder, .ol-card__h::placeholder, .ol-line__h::placeholder, .ol-line__d::placeholder { color: #a3a3a3; }

/* Lists of cards */
.ol-list { position: relative; }
.ol-list--bands { display: flex; flex-direction: column; gap: 0.9rem; }
/* V184: rows wrap to the screen's width (no sideways scroll); the + button ends the row. */
.ol-list--row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.7rem; }
.ol-card--band > .ol-list--row { margin-top: 0.5rem; }
.ol-col { flex: 0 0 14.5rem; width: 14.5rem; }
.ol-list--stack { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.4rem; }
.ol-card--d3 > .ol-list--stack, .ol-card--d4 > .ol-list--stack, .ol-list--pile .ol-card > .ol-list--stack { padding-left: 0.35rem; }
.ol-list--empty { min-height: 0; margin-top: 0; }
.ol-card--dragging { opacity: 0.35; }
/* While dragging nothing changes size: the marker floats over the gap, and the + buttons and the pile light up as targets. */
.ol-marker { position: absolute; z-index: 5; pointer-events: none; background: var(--action); border-radius: 2px; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
.ol-marker--x { width: 3px; }
.ol-marker--y { left: 0; right: 0; height: 3px; }
.ol--dragging .ol-add { border-color: #5a5a5a; }
.ol-add.ol-add--drop { border-style: solid; border-color: var(--action); color: var(--ink); background: rgba(37, 99, 235, 0.15); }
.ol--dragging .ol-pile { border-color: #5a5a5a; }
.ol-add { padding: 0.35rem 0.7rem; border: 1px dashed #3d3d3d; border-radius: var(--radius); background: none; color: var(--ink-soft); font: inherit; font-size: 0.82rem; cursor: pointer; text-align: left; }
.ol-add:hover, .ol-add:focus-visible { color: var(--ink); border-color: var(--ink-soft); }
.ol-card .ol-add { border-color: #c8c8c4; color: #666; }
.ol-card .ol-add:hover, .ol-card .ol-add:focus-visible { border-color: #888; color: #111; }
.ol-add--across { flex: 0 0 auto; align-self: flex-start; white-space: nowrap; }
.ol-add--small { margin-top: 0.35rem; padding: 0.15rem 0.5rem; font-size: 0.74rem; }
.ol-add--top { align-self: flex-start; }

/* A card's menu */
.ol-menu { position: absolute; z-index: 60; display: flex; flex-direction: column; min-width: 15rem; padding: 0.3rem; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: #161616; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.ol-menu__item { padding: 0.42rem 0.65rem; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 0.88rem; text-align: left; cursor: pointer; }
.ol-menu__item:hover:not([disabled]), .ol-menu__item:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
.ol-menu__item[disabled] { opacity: 0.4; cursor: default; }
.ol-menu__colours { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.45rem 0.65rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0.2rem 0; }
.ol-swatch { width: 1.35rem; height: 1.35rem; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--oc); cursor: pointer; }
.ol-swatch.is-on, .ol-swatch:focus-visible { border-color: #fff; outline: none; }
.ol-swatch--none { background: linear-gradient(135deg, transparent 45%, var(--ink-soft) 46%, var(--ink-soft) 54%, transparent 55%); border-color: var(--rule); }

/* The document view */
.ol-doc { display: flex; flex-direction: column; gap: 0.1rem; max-width: 54rem; padding: 1.25rem 1.5rem 1.75rem; border: 1px solid #d9d9d6; border-radius: var(--radius); background: #fff; color: #111; }
.ol-doc .ol-add { border-color: #c8c8c4; color: #666; }
.ol-line { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: 0.5rem; padding-left: calc(var(--d, 0) * 1.6rem); }
.ol-line--d1:not(:first-child) { margin-top: 0.7rem; }
.ol-line__lvl { display: flex; align-items: center; justify-content: flex-end; gap: 0.2rem; grid-row: 1; padding-top: 0.3rem; color: #7a7a7a; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ol-line__h { grid-column: 2; font-weight: 600; line-height: 1.35; }
.ol-line--d1 .ol-line__h { font-size: 1.22rem; }
.ol-line--d2 .ol-line__h { font-size: 1.04rem; }
.ol-line--d3 .ol-line__h { font-size: 0.95rem; }
.ol-line--d4 .ol-line__h { font-size: 0.9rem; font-weight: 500; }
.ol-line__d { grid-column: 2; color: #3d3d3d; font-size: 0.9rem; line-height: 1.45; }
.ol-line--nodetail:not(.ol-line--focus) .ol-line__d { display: none; }
.ol-line[class*="ol-c--"] .ol-line__h { box-shadow: inset 3px 0 0 var(--oc); padding-left: 0.5rem; background: color-mix(in srgb, var(--oc) 10%, #fff); }

/* The loose pile */
.ol-pile { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.7rem 0.75rem 0.8rem; border: 1px dashed #3d3d3d; border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.ol-pile[hidden] { display: none; }
.ol-pile__title { margin: 0; color: var(--ink-soft); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.ol-pile__empty { margin: 0; }
.ol-list--pile { margin-top: 0; }

@media (max-width: 48rem) {
  .ol-desk, .ol-desk--pile { grid-template-columns: minmax(0, 1fr); }
  .ol-bar__pick { flex: 1 1 100%; }
  .ol-bar__pick select { max-width: none; width: 100%; }
  .ol-line { grid-template-columns: minmax(0, 1fr); padding-left: calc(var(--d, 0) * 0.9rem); }
  .ol-line__lvl { grid-row: auto; padding-top: 0; justify-content: flex-start; }
  .ol-line__h, .ol-line__d { grid-column: 1; }
  .ol-doc { padding: 0.75rem 0.8rem 1rem; }
}
.ol--phone .ol-list--tree { display: flex; flex-direction: column; gap: 0.6rem; }
.ol--phone .ol-col { flex: none; width: auto; }
.ol--phone .ol-list--stack { padding-left: 0.6rem; border-left: 1px solid var(--rule); }

/* V184: the selection bar, the Show menu's ticks, suggestions, the Levels capitals tick */
.ol-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; padding: 0.5rem 0.8rem; border: 1px solid var(--action); border-radius: var(--radius); background: rgba(37, 99, 235, 0.12); }
.ol-selbar[hidden] { display: none; }
.ol-selbar__count { font-weight: 500; }
.ol-selbar__swatches { display: inline-flex; gap: 0.3rem; }
.ol-menu__head { margin: 0; padding: 0.35rem 0.65rem 0.15rem; color: var(--ink-soft); font-size: 0.75rem; }
.ol-menu__note { max-width: 17rem; padding-top: 0.45rem; line-height: 1.4; }   /* V185: the export menu's note */
.ol-menu__check { display: flex; align-items: center; gap: 0.45rem; }
.ol-menu__check input { accent-color: var(--action); }
.ol-suggest { position: absolute; z-index: 70; margin: 0; padding: 0.25rem; list-style: none; max-width: 30rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #161616; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.ol-suggest[hidden] { display: none; }
.ol-suggest__item { padding: 0.35rem 0.6rem; border-radius: 6px; cursor: pointer; font-size: 0.88rem; }
.ol-suggest__item.is-picked, .ol-suggest__item:hover { background: var(--action); color: var(--on-action); }
.ol-levels__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.3rem 1rem; }
.ol-levels__row[hidden] { display: none; }
.ol-levels__row .form__field { flex: 1 1 12rem; margin: 0; }
.ol-levels__caps { margin: 0 0 0.55rem; white-space: nowrap; }
