/* Shared collection geometry, matched to the established Moorhouse directories. */
.collection-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.collection-tools > input[type="search"] {
  flex: 1 1 260px;
  max-width: none;
}
.collection-tools > select {
  width: auto;
  min-width: 160px;
}
.collection-tools .check {
  margin: 0;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
}
.collection-tools .check input {
  flex: none;
}
.directory-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.directory-table .person strong {
  font-size: 14px;
  font-weight: 600;
}
.directory-table td {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px 20px;
  vertical-align: middle;
}
.directory-table th {
  padding: 10px 20px;
}
.directory-table .actions {
  flex-wrap: nowrap;
  min-width: max-content;
  justify-content: flex-end;
}
.directory-table .actions .button,
.directory-table .actions button {
  white-space: nowrap;
  flex: none;
}
.directory-table td:last-child {
  text-align: right;
}
.profile-form {
  max-width: 1000px;
}
.profile-form .form-grid {
  margin-bottom: 24px;
}
.profile-form > h2 {
  margin-top: 28px;
}
.access-tools,
.profile-support-panel {
  margin-top: 24px;
  max-width: 1000px;
}
.access-tools .actions {
  justify-content: flex-start;
}
[data-toggle-member],
.danger {
  color: #ff9f91;
  border-color: #ff9f9155;
}
.profile-form .form-actions {
  justify-content: flex-end;
}
@media (max-width: 1000px) {
  .directory-table thead {
    display: none;
  }
  .directory-table table,
  .directory-table tbody,
  .directory-table tr,
  .directory-table td {
    display: block;
  }
  .directory-table tr {
    padding: 18px 20px;
    border-top: 1px solid var(--line);
  }
  .directory-table tr:first-child {
    border-top: 0;
  }
  .directory-table td {
    padding: 5px 0;
    border: 0;
    text-align: left;
  }
  .directory-table td::before {
    content: attr(data-label);
    display: block;
    font: 10px/1.5 var(--mono);
    text-transform: uppercase;
    color: var(--muted);
  }
  .directory-table td:first-child::before,
  .directory-table td:last-child::before {
    display: none;
  }
  .directory-table .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .collection-tools {
    gap: 12px;
  }
  .collection-tools > input[type="search"] {
    max-width: none;
    flex-basis: 100%;
  }
  .client-history-table .actions {
    flex-wrap: wrap;
  }
}

.dashboard-today {
  padding: 16px 20px;
  margin-bottom: 28px;
}
.today-heading,
.today-heading > div,
.today-alerts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.today-heading {
  justify-content: space-between;
}
.today-heading .eyebrow {
  margin: 0;
}
.today-heading > div {
  color: var(--muted);
  font-size: 13px;
}
.today-alerts button {
  border: 0;
  padding: 6px 0;
  min-height: 32px;
  color: var(--warning);
  background: none;
}
.today-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 10px;
}
.today-jobs:has(> .today-job:only-child) {
  grid-template-columns: 1fr;
}
.today-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0 2px;
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
}
.today-job strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.today-job small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}
.project-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 20px;
}
.project-toolbar > input {
  flex: 1;
  max-width: 250px;
  margin-left: auto;
}
.project-sort {
  flex-direction: row;
  align-items: center;
  text-transform: uppercase;
  font: 11px/1.5 var(--mono);
}
.project-sort select {
  width: 220px;
  text-transform: none;
}
.project-directory-table th:first-child {
  width: 32%;
}
.project-directory-table th:nth-child(2) {
  width: 16%;
}
.project-directory-table th:nth-child(3) {
  width: 33%;
}
.project-directory-table th:nth-child(4) {
  width: 14%;
}
.project-directory-table th:last-child {
  width: 5%;
}
.project-directory-table td {
  padding: 16px 20px;
  vertical-align: middle;
}
.project-directory-table td:first-child .badge {
  margin-bottom: 8px;
}
.project-directory-table td:first-child small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 12px;
}
.project-directory-table .row-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.crew-status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dot.pending {
  background: var(--warning);
}
.status-dot.ready {
  background: var(--accent);
}
.project-open-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  min-height: 44px;
  min-width: 24px;
  text-decoration: none;
  font-size: 20px;
}
.filter-caption {
  font-size: 13px;
}
@media (max-width: 800px) {
  .project-directory-table td {
    padding: 5px 0;
  }
  .crew-status {
    justify-content: flex-start;
  }
  .project-directory-table td:last-child {
    margin: 0;
  }
  .project-open-arrow {
    justify-content: flex-end;
  }
  .today-jobs {
    grid-template-columns: 1fr;
  }
  .project-toolbar > input {
    max-width: none;
    margin: 0;
    min-width: 180px;
  }
  .project-filters {
    flex-basis: 100%;
  }
  .project-sort {
    width: 100%;
  }
  .project-sort select {
    flex: 1;
  }
}

.locker-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
}
.locker-nav {
  border-right: 1px solid var(--line);
  padding-right: 24px;
  align-self: start;
}
.locker-nav button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-color: transparent;
  min-height: 48px;
}
.locker-nav button[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.locker-nav .eyebrow {
  margin: 24px 12px 8px;
  color: var(--muted);
}
.locker-content {
  min-width: 0;
}
.locker-content .section-heading {
  margin-top: 0;
}
.locker-content h2 small {
  font:
    400 12px/1.5 Manrope,
    sans-serif;
  color: var(--muted);
  margin-left: 12px;
}
.locker-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  margin-bottom: 16px;
}
.locker-selection-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 56px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.locker-selection-bar .actions {
  margin-left: auto;
}
.locker-mobile-collection,
.locker-mobile-category {
  display: none;
}
.locker-table-wrap {
  overflow: hidden;
}
.locker-table-wrap th:first-child {
  width: 48px;
}
.locker-table-wrap th:nth-child(2) {
  width: auto;
}
.locker-table-wrap th:nth-child(3) {
  width: 25%;
}
.locker-table-wrap th:nth-child(4) {
  width: 80px;
}
.locker-table-wrap :is(td, th):first-child {
  padding: 0 12px;
}
.locker-table-wrap .check {
  margin: 0;
}
.text-action {
  padding: 0;
  min-height: 32px;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  justify-content: flex-start;
}
@media (max-width: 800px) {
  .locker-layout {
    display: block;
  }
  .locker-nav {
    display: none;
  }
  .locker-mobile-collection {
    display: flex;
    margin-bottom: 20px;
  }
  .locker-filters {
    grid-template-columns: minmax(0, 1fr) 140px;
  }
  .locker-table-wrap table {
    display: table;
  }
  .locker-table-wrap thead {
    display: table-header-group;
  }
  .locker-table-wrap tbody {
    display: table-row-group;
  }
  .locker-table-wrap tr {
    display: table-row;
  }
  .locker-table-wrap :is(th, td) {
    display: table-cell;
    border-top: 1px solid var(--line);
    padding: 14px 12px;
  }
  .locker-table-wrap :is(th, td):nth-child(n + 3) {
    display: none;
  }
  .locker-table-wrap thead th {
    border-top: 0;
  }
  .locker-table-wrap th:first-child {
    width: 44px;
  }
  .locker-table-wrap td::before {
    display: none;
  }
  .locker-table-wrap td:last-child {
    margin: 0;
  }
  .locker-mobile-category {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }
  .locker-selection-bar .actions {
    width: 100%;
    margin: 0;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f6;
  --surface: #fff;
  --ink: #202326;
  --muted: #555b61;
  --line: #8c949b;
  --accent: #34383c;
  --warning: #8a4b00;
}
:root[data-theme="light"] .company-logo[src="/assets/moorhouse-logo.svg"] {
  content: url("/assets/moorhouse-logo-light.svg");
}
:root[data-theme="light"] :is(.primary, .segments button[aria-pressed="true"]) {
  background: #202326;
  border-color: #202326;
  color: #ffffff;
}
:root[data-theme="light"] :is(.error, [data-delete], [data-toggle-member]) {
  color: #ad3124;
}
[data-delete] {
  color: #ff9f91;
  border-color: #ff9f9155;
}
main > .panel + .panel,
main > form.panel + section.panel {
  margin-top: 24px;
}
#profile .reward-row {
  align-items: end;
}
.post-summary {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  margin: 20px 0;
  color: var(--muted);
  font: 400 10px/1.5 var(--mono);
  text-transform: uppercase;
}
.post-summary strong {
  font: 500 26px/1.2 var(--font-body);
  color: var(--accent);
  margin-right: 8px;
}
.post-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.post-list-head,
.post-row > summary {
  display: grid;
  grid-template-columns:
    minmax(0, 2.4fr) minmax(100px, 1fr) minmax(100px, 0.8fr)
    125px 130px 18px;
  gap: 16px;
  padding: 16px 20px;
  align-items: center;
}
.post-list-head {
  background: var(--surface);
  padding-block: 10px;
  color: var(--muted);
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-list-head { padding-block: 4px; }
.post-list-head .post-column-sort { min-height: 44px; width: 100%; text-align: left; justify-content: flex-start; }
.post-list-head .post-column-sort[aria-pressed="true"] { color: var(--accent); }
.post-mobile-sort { display: none; }
@media (max-width: 1000px) {
  .post-mobile-sort { display: flex; justify-content: flex-end; margin: 12px 0; }
  .post-mobile-sort > label { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0; color: var(--muted); font: 400 12px/1.4 var(--font-body); }
  .post-mobile-sort select { width: auto; min-height: 44px; margin: 0; padding: 8px 32px 8px 12px; font: 400 12px/1.4 var(--font-body); }
}
.post-row {
  border-top: 1px solid var(--line);
}
.post-row > summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.post-row > summary::-webkit-details-marker {
  display: none;
}
.post-row strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.post-row small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.post-row-body {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 20px;
}
.post-row-body p {
  margin: 0;
  font-size: 14px;
}
@media (max-width: 1000px) {
  .post-list-head {
    display: none;
  }
  .post-row > summary {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    gap: 8px 12px;
  }
  .post-row > summary > span:first-child {
    grid-column: 1;
  }
  .post-row > summary > span:nth-child(2),
  .post-row > summary > span:nth-child(3),
  .post-row > summary > span:nth-child(4) {
    grid-column: 1;
  }
  .post-row > summary > span:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .post-row > summary > .toggle {
    grid-column: 3;
    grid-row: 1/5;
  }
}
[data-remove-selected] {
  color: #ff9f91;
  border-color: #ff9f9155;
}
.work-filters {
  display: flex;
  width: 100%;
  background: var(--surface);
}
/* Keep native keyboard/voice controls, with the existing plus affordance. */
select:not([multiple]) {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 3v8M3 7h8' fill='none' stroke='%23969da2' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.workspace-tabs {
  width: 100%;
  background: var(--surface);
  max-width: 100%;
  margin: 20px 0 24px;
}
.workspace-tabs .button {
  border: 0;
  flex: 1;
  white-space: nowrap;
}
.workspace-tabs .selected {
  background: var(--brand-accent);
  color: #17201c;
}
@media (max-width: 650px) {
  .workspace-tabs {
    width: 100%;
  }
  .workspace-tabs .button {
    padding: 10px 8px;
    white-space: normal;
  }
}

.project-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.project-filters button {
  min-width: 0;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
}
.project-filters [aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #101310;
}
.project-create-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 18px;
  background: var(--accent);
  color: #101310;
  border-color: var(--accent);
  font: 700 11px/1.35 var(--mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.project-create-menu .menu-panel > button:last-child {
  margin: 0;
  border: 0;
  border-radius: 8px;
}
@media (max-width: 650px) {
  .project-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .project-filters {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  .project-filters button {
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
  }
  .project-toolbar > input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
  }
  .project-sort {
    width: 100%;
  }
  .project-sort > span {
    display: none;
  }
  .project-sort select {
    width: 100%;
    min-width: 0;
    font: 13px/1.4 var(--font-body);
    padding-inline: 8px 22px;
  }
  .directory-table .actions {
    min-width: 0;
  }
}

.column-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-height: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.column-sort span {
  font-size: 10px;
}
[aria-sort="ascending"] .column-sort,
[aria-sort="descending"] .column-sort {
  color: var(--accent);
}
.crew-photo-editor {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.crew-photo-editor > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.crew-photo-preview img,
.crew-photo-preview .avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
  font-size: 28px;
}
.crew-photo-editor small {
  display: block;
  margin: 8px 0;
  font-size: 12px;
  color: var(--muted);
}
.crew-photo-editor button {
  font-size: 11px;
  min-height: 32px;
  padding: 6px 10px;
}
body[data-surface="member-profile"] .page-heading > div > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.5;
  max-width: 620px;
  margin: 0;
}
body[data-surface="member-profile"] .page-heading .page-title-row h1 {
  margin: 8px 0 12px;
}
body[data-surface="member-profile"] .profile-form {
  padding: 30px;
}
@media (max-width: 650px) {
  body[data-surface="member-profile"] .profile-form {
    padding: 20px;
  }
}
@media (max-width: 550px) {
  .crew-photo-editor {
    align-items: flex-start;
    gap: 14px;
  }
  .crew-photo-preview img,
  .crew-photo-preview .avatar {
    width: 64px;
    height: 64px;
  }
}

.next-assignment {
  display: block;
  padding: 18px;
  margin-bottom: 32px;
}
.crew-summary-stack {
  display: grid;
  margin-bottom: 20px;
}
.crew-summary-face {
  grid-area: 1 / 1;
  min-width: 0;
}
.crew-summary-face[aria-hidden="true"] {
  display: none;
}
.crew-summary-face > .next-assignment {
  margin-bottom: 0;
}
.crew-summary-stack .next-assignment-body > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .crew-summary-stack .next-assignment-body {
    flex-wrap: wrap;
    gap: 16px;
  }
  .crew-summary-stack .next-assignment-body > div,
  .crew-summary-stack .next-assignment-body > a {
    width: 100%;
  }
}
.next-assignment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.next-assignment-heading .eyebrow { margin: 0; }
.next-assignment-heading .eyebrow span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 400 12px/1.4 var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.next-assignment-heading .job-company { margin: 0; }
.next-assignment-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.next-assignment-info { min-width: 0; }
.next-call-label {
  margin: 0 0 2px;
  color: var(--muted);
  font: 500 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.next-call-time {
  margin: 0 0 14px;
  font: 400 clamp(32px, 7vw, 36px)/1.15 var(--font-body);
  letter-spacing: -1.5px;
  color: var(--ink);
}
.next-assignment-body h2 {
  margin: 0;
  font: 400 18px/1.4 var(--font-body);
  letter-spacing: -.4px;
}
.next-location { margin: 10px 0 0; font-size: 15px; }
.next-assignment-body small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.next-assignment-body > a { flex-shrink: 0; min-height: 48px; }
.my-work .section-heading {
  margin-bottom: 28px;
}
main:has(.my-work) > .page-heading {
  margin-top: 34px;
}
.my-work-projects {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.my-work-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.my-work-table th {
  padding: 12px 18px;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
.my-work-table th:nth-child(1) {
  width: 23%;
}
.my-work-table th:nth-child(2) {
  width: 14%;
}
.my-work-table th:nth-child(3) {
  width: 20%;
}
.my-work-table th:nth-child(4) {
  width: 12%;
}
.my-work-table th:nth-child(5) {
  width: 13%;
}
.my-work-table th:nth-child(6) {
  width: 18%;
}
.my-work-table td {
  padding: 18px;
  vertical-align: middle;
  overflow-wrap: anywhere;
  font-size: 13px;
  border: 0;
  background: var(--bg);
}
.my-work-table .my-work-project + .my-work-project td {
  border-top: 1px solid var(--line);
}
.my-work-project h3 {
  font-size: 14px;
  margin: 4px 0;
  font-weight: 600;
}
.my-work-project small {
  color: var(--muted);
  font-size: 12px;
}
.my-work-project .badge {
  white-space: normal;
}
.my-work-project [data-booking-status="held"],
.my-work-project [data-booking-status="availability_requested"] {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 47%, transparent);
}
.my-work-project [data-booking-status="booked"] {
  color: var(--accent);
  border-color: var(--accent);
}
.my-work-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.my-work-table .work-open-cell {
  padding-inline: 12px;
}
.my-work-actions .button {
  white-space: nowrap;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
}
.my-work-actions .work-open-arrow {
  flex: 0 0 auto;
  line-height: 1;
}
.work-edit-progress {
  display: block;
  margin-top: 8px;
}
.work-mobile-label {
  display: none;
}
@media (max-width: 1000px) {
  .my-work-table,
  .my-work-table tbody {
    display: block;
  }
  .my-work-table thead {
    display: none;
  }
  .my-work-table .my-work-project {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 16px;
    padding: 16px 18px;
    align-items: start;
  }
  .my-work-table .my-work-project + .my-work-project {
    border-top: 1px solid var(--line);
  }
  .my-work-table tbody .my-work-project td {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .my-work-table .work-project-name,
  .my-work-table .work-open-cell {
    grid-column: 1/-1;
  }
  .my-work-table .my-work-project + .my-work-project td {
    border-top: 0;
  }
  .my-work-table .my-work-project td::before {
    display: none;
  }
  .my-work-table .work-project-name h3 {
    margin: 8px 0 0;
    line-height: 1.45;
  }
  .my-work-table .work-project-heading > small:empty {
    display: none;
  }
  .my-work-table .work-open-cell {
    margin-top: 4px;
  }
  .my-work-table .my-work-actions {
    margin: 0;
    align-items: stretch;
  }
  .work-mobile-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
  }
}
.my-edit-queue {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.my-edit-queue > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.my-edit-queue small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 650px) {
  .next-assignment {
    flex-direction: column;
    align-items: stretch;
  }
  .my-work-actions .button {
    flex: 1;
  }
}

.locker-add {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.locker-add .error {
  grid-column: 1/-1;
  margin: 0;
}
@media (max-width: 650px) {
  .locker-add {
    grid-template-columns: 1fr 1fr;
  }
  .locker-add > label:first-child {
    grid-column: 1/-1;
  }
}

.directory-table .badge {
  white-space: nowrap;
  overflow-wrap: normal;
}
.directory-table td a[href^="mailto:"],
.directory-table td a[href^="tel:"] {
  color: var(--muted);
  text-decoration: none;
}
.directory-active-count {
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The original directories keep compact contact rows on phones. */
@media (max-width: 1000px) {
  .crew-directory-table thead {
    display: block;
    background: var(--surface);
  }
  .crew-directory-table thead tr {
    display: block;
    padding: 0;
  }
  .crew-directory-table thead th {
    display: none;
  }
  .crew-directory-table thead th:first-child {
    width: 100%;
    display: block;
    padding: 10px 16px;
  }
  .crew-directory-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 16px;
  }
  .crew-directory-table td {
    padding: 0;
  }
  .crew-directory-table td::before {
    display: none;
  }
  .crew-directory-table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .crew-directory-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    margin-left: 40px;
    font-size: 12px;
  }
  .crew-directory-table td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    margin-left: 40px;
    font-size: 12px;
  }
  .crew-directory-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .crew-directory-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  .crew-directory-table td:last-child {
    grid-column: 1/-1;
    grid-row: 4;
    margin-top: 4px;
  }
  .crew-directory-table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .crew-directory-table .actions > .button {
    flex: 1;
    min-width: 0;
  }
  .crew-directory-table .person {
    gap: 10px;
  }
  .crew-directory-table .avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }
  main:has(.crew-directory-table) .page-heading > div:first-child {
    flex-basis: 100%;
  }
  main:has(.crew-directory-table) .page-heading .actions {
    margin-left: auto;
  }
}
.travel-summary-icons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.travel-summary-icons svg {
  width: 16px;
  height: 16px;
}

.crew-directory-table .column-sort {
  white-space: nowrap;
}

.post-filters {
  background: var(--surface);
  margin-bottom: 20px;
}
.post-agenda-import {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0 16px;
}
.post-agenda-import > summary {
  list-style: none;
  display: flex;
  gap: 12px;
  cursor: pointer;
  font: 400 11px/1.5 var(--mono);
}
.post-agenda-import > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.post-agenda-import select {
  flex: 1;
  min-width: 0;
}
.post-agenda-import small {
  flex-basis: 100%;
  color: var(--muted);
}
.post-row > summary .badge {
  font: 400 11px/1.4 var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  padding: 6px 8px;
}
.page-title-row:not(:has(.badge)) + p {
  margin-top: 12px;
}

.locker-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.locker-nav button small {
  font: 400 11px/1.5 var(--mono);
  color: var(--muted);
}
.locker-table-wrap th {
  white-space: nowrap;
}
main:has(.locker-layout) {
  padding-top: 34px;
}
main:has(.locker-layout) .page-heading p:not(.eyebrow) {
  font-size: 12px;
}
main:has(.locker-layout) .page-heading h1 {
  margin-top: 4px;
}

.kit-equipment-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 650px) {
  .kit-equipment-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .client-directory-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 18px;
  }
  .client-directory-table td {
    padding: 0;
  }
  .client-directory-table td::before {
    display: none;
  }
  .client-directory-table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .client-directory-table td:nth-child(2),
  .client-directory-table td:nth-child(3) {
    grid-column: 1;
    margin-left: 40px;
    font-size: 12px;
    color: var(--muted);
  }
  .client-directory-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .client-directory-table td:last-child {
    grid-column: 1/-1;
  }
  .client-history-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 18px;
  }
  .client-history-table td {
    padding: 0;
  }
  .client-history-table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .client-history-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
  }
  .client-history-table td:nth-child(4)::before {
    display: none;
  }
  .client-history-table td:nth-child(2),
  .client-history-table td:nth-child(3),
  .client-history-table td:last-child {
    grid-column: 1/-1;
  }
}

.project-mobile-type,
.project-mobile-status {
  display: none;
}
.status-dot.completed {
  background: #48a7ff;
}
.status-dot.missing,
.status-dot.due {
  background: #ff5252;
}
.today-alerts button::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
@media (max-width: 650px) {
  .project-directory-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
    padding: 18px 16px;
    gap: 6px 10px;
  }
  .project-directory-table td {
    display: block;
    padding: 0;
    font-size: 13px;
    margin: 0;
  }
  .project-directory-table td::before {
    display: none;
  }
  .project-directory-table td:first-child {
    display: contents;
  }
  .project-directory-table td:first-child > .badge {
    display: none;
  }
  .project-directory-table td:first-child > .row-title {
    grid-row: 1;
    grid-column: 1/-1;
    font-size: 16px;
    font-weight: 600;
    margin-right: 28px;
  }
  .project-directory-table td:first-child > small {
    grid-row: 2;
    grid-column: 1/-1;
    margin: 0 28px 6px 0;
    font-weight: 400;
  }
  .project-directory-table td:nth-child(2) {
    grid-row: 3;
    grid-column: 1/-1;
  }
  .project-directory-table td:nth-child(3) {
    grid-row: 4;
    grid-column: 1/-1;
    color: var(--muted);
  }
  .project-directory-table td:nth-child(4) {
    grid-row: 5;
    grid-column: 1/-1;
    padding-top: 12px;
  }
  .project-directory-table td:last-child {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
  }
  .project-directory-table .project-open-arrow {
    min-height: 28px;
    height: 28px;
    font-size: 18px;
  }
  .project-mobile-type {
    display: inline;
    color: var(--muted);
  }
  .crew-status {
    justify-content: space-between;
    font-size: 12px;
  }
  .project-directory-table .status-dot {
    display: none;
  }
  .project-mobile-status {
    display: inline;
    font-size: 11px;
  }
  .project-mobile-status.completed {
    color: #b6c9de;
  }
  .project-mobile-status.missing,
  .project-mobile-status.due {
    color: #e5aaa3;
  }
  .project-mobile-status.ready {
    color: var(--accent);
  }
  .project-toolbar > input {
    min-width: 0;
    width: 100%;
    flex: 1;
  }
  .project-toolbar .project-sort {
    position: relative;
    flex: 0 0 84px;
    width: 84px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font: 13px var(--font-body);
  }
  .project-sort > span {
    display: none;
  }
  .project-sort::before {
    content: "Sort";
  }
  .project-sort::after {
    content: "≡";
    margin-left: auto;
    color: var(--muted);
  }
  .project-sort select {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 650px) {
  .project-toolbar {
    grid-template-columns: minmax(0, 1fr) 84px;
  }
  .project-toolbar > input {
    width: 100%;
  }
  .today-heading {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .today-heading > div {
    font-size: 11px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .today-alerts button {
    font-size: 11px;
    gap: 0;
    white-space: nowrap;
  }
}

.crew-directory-table .column-sort {
  color: var(--muted);
}

.locker-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 24px;
}
@media (max-width: 650px) {
  .locker-dialog {
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
}

@media (max-width: 650px) {
  .locker-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  body[data-surface="client-history"] .page-heading .actions {
    justify-content: flex-end;
    align-self: flex-end;
    width: 100%;
  }
  .client-history-table .actions > * {
    flex: 1;
  }
}

@media (max-width: 650px) {
  body:has(.post-list) .page-heading > .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }
  .post-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
  }
  .post-list {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .post-row {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0;
  }
  .post-row > summary {
    background: var(--surface);
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
  }
  .post-row > summary > .toggle {
    grid-column: 1;
    grid-row: 5;
    justify-self: start;
  }
  .post-row > summary > span:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
  }
  .post-row-body {
    padding: 16px;
    gap: 16px;
  }
  .post-update-section h4 {
    font-size: 20px;
  }
}

.client-mobile-label {
  display: none;
}
@media (min-width: 851px) {
  :is(.client-directory-table, .client-history-table) :is(table, thead, tbody) {
    display: block;
    width: 100%;
  }
  :is(.client-directory-table, .client-history-table) tr {
    display: grid;
    gap: 20px;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
  }
  .client-directory-table tr {
    grid-template-columns:
      minmax(180px, 1.5fr) minmax(180px, 1.5fr)
      60px 80px 210px;
  }
  .client-history-table tr {
    grid-template-columns:
      minmax(180px, 1.4fr) minmax(130px, 0.8fr) minmax(140px, 1fr)
      90px 230px;
  }
  :is(.client-directory-table, .client-history-table) :is(td, th) {
    width: auto !important;
    padding: 0;
    border: 0;
  }
  :is(.client-directory-table, .client-history-table) thead tr {
    padding-block: 10px;
  }
  :is(.client-directory-table, .client-history-table) tbody tr:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 850px) {
  .client-mobile-label {
    display: inline;
  }
}
body[data-surface="directory"] .page-title-row h1 {
  margin-top: 8px;
}
@media (min-width: 1001px) {
  .crew-directory-table :is(table, thead, tbody) {
    display: block;
    width: 100%;
  }
  .crew-directory-table tr {
    display: grid;
    grid-template-columns:
      minmax(150px, 1.3fr) minmax(100px, 0.8fr) minmax(160px, 1.3fr)
      75px 165px 260px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .crew-directory-table :is(td, th) {
    width: auto !important;
    padding: 0;
    border: 0;
  }
  .crew-directory-table thead tr {
    padding-block: 10px;
  }
  .crew-directory-table tbody tr:last-child {
    border-bottom: 0;
  }
  .crew-directory-table .actions > .button {
    flex: 1;
  }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  .crew-directory-table tr {
    grid-template-columns:
      minmax(120px, 1.2fr) minmax(75px, 0.8fr) minmax(125px, 1fr)
      65px 165px 200px;
    gap: 10px;
    padding-inline: 16px;
  }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .client-directory-table tr {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 45px 65px 200px;
    gap: 12px;
    padding-inline: 16px;
  }
  .client-history-table tr {
    grid-template-columns: minmax(100px, 1fr) 115px minmax(80px, 1fr) 75px 220px;
    gap: 12px;
    padding-inline: 16px;
  }
}

.post-due-prefix {
  display: none;
}
@media (max-width: 800px) {
  .post-due-prefix {
    display: inline;
  }
}
@media (min-width: 851px) {
  :is(.client-directory-table, .client-history-table, .crew-directory-table)
    thead {
    background: var(--surface);
  }
  :is(.client-directory-table, .client-history-table, .crew-directory-table)
    th {
    background: transparent;
  }
}
.crew-photo-editor.photo-picker {
  margin-top: 0;
}
.crew-photo-editor input[type="file"] {
  font-size: 12px;
}

.profile-permissions {
  min-width: 0;
  margin: 4px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.profile-permissions legend {
  font: 650 18px/1.3 var(--font-heading);
}
.profile-permissions p {
  font: 400 13px/1.6 var(--font-body);
  margin: 12px 0 0;
}

.custom-map-dialog {
  width: min(1100px, calc(100vw - 24px));
  max-width: none;
  max-height: 92dvh;
  overflow: auto;
}
.custom-map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.custom-map-tools button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.custom-map-scroll {
  max-width: 100%;
  overflow: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.custom-map-stage {
  position: relative;
  width: 100%;
  min-width: 100%;
  line-height: 0;
}
.custom-map-stage > img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100px;
}
.custom-map-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.custom-map-overlay {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.custom-map-overlay .map-label {
  font:
    600 24px Arial,
    sans-serif;
  fill: #fff;
  stroke: #0d1011;
  stroke-width: 5px;
  paint-order: stroke;
  stroke-linejoin: round;
}
[data-map-edit] .custom-map-stage {
  cursor: crosshair;
}
.custom-map-annotations {
  max-height: 240px;
  overflow: auto;
}
.custom-map-annotations > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.custom-map-annotations > div span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.custom-map-legend {
  padding-left: 22px;
}
@media (max-width: 600px) {
  .custom-map-dialog {
    padding: 16px;
  }
  .custom-map-dialog .form-grid {
    grid-template-columns: 1fr;
  }
  .custom-map-tools button {
    font-size: 12px;
    padding: 8px 10px;
  }
}
.custom-map-annotations > div label {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.w9-dialog > form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.w9-dialog > form > p,
.w9-dialog > form > label,
.w9-dialog > form > fieldset,
.w9-dialog > form > .modal-head,
.w9-dialog [data-w9-status] p {
  margin: 0;
}
.w9-dialog [data-w9-status] {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.w9-dialog > form > fieldset {
  padding: 16px;
}
.w9-dialog > form > .form-actions {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.w9-dialog > form > .error:empty {
  display: none;
}

.payment-import-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
}
.payment-import-file-actions {
  margin: 16px 0;
}
.payment-import-rows {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
.payment-import-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.payment-import-row p {
  margin: 0;
}
.payment-import-row label {
  margin: 0;
}
.payment-import-meta {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.payment-import-row select {
  width: 100%;
  min-width: 0;
}

/* Crew shell stays neutral; each assignment carries its hiring company's accent. */
.job-brand-scope {
  --brand-accent: var(--job-accent);
  --accent: var(--brand-accent);
}
:root[data-theme="light"] .job-brand-scope {
  --accent: #34383c;
}
.job-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.job-company img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.job-company span {
  overflow-wrap: anywhere;
}
:root[data-theme="light"] .company-logo[src="/assets/crew-logo.svg"] {
  filter: brightness(0.25);
}
.company-logo[src="/assets/crew-logo.svg"] {
  width: 150px;
  height: 44px;
}
:root[data-theme="light"] .company-logo[src="/assets/crew-logo.svg"] {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.crew-company-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 16px 0 24px;
}
.crew-company-toolbar label {
  min-width: 0;
  flex: 1;
  max-width: 320px;
  margin: 0;
}
.crew-company-toolbar select {
  width: 100%;
  min-width: 0;
}
@media (max-width: 650px) {
  .crew-company-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
  }
  .crew-company-toolbar label { max-width: none; }
  .crew-company-toolbar select { padding-inline: 10px; font-size: 12px; }

}

/* Shared Crew chrome echoes Moorhouse's monospaced production labels. */
#header button,
#header summary,
#header .menu-panel > a,
body[data-crew-home="true"] .work-filters button,
body[data-crew-home="true"] .my-work-actions .button,
body[data-crew-home="true"] .next-assignment .button,
body[data-crew-home="true"] .my-edit-queue > a,
body[data-crew-home="true"] .crew-profile-dialog button {
  font-family: var(--mono);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.035em;
}
body[data-crew-home="true"] .my-work > .section-heading h2 {
  font: 400 20px/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
body[data-crew-home="true"] .work-mobile-label,
body[data-crew-home="true"] .crew-company-toolbar label,
body[data-crew-home="true"] .my-work-table th {
  font-family: var(--mono);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body[data-crew-home="true"] .my-work-actions .button {
  white-space: normal;
}
body[data-crew-home="true"] .work-filters button {
  font-size: 11px;
  padding-inline: 6px;
  white-space: nowrap;
}

/* Shared Crew Sheet identity; company jobs keep their hiring brand. */
.company-logo[src="/assets/crew-sheet-logo.svg"] {
  width: 190px;
  height: 66px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
:root[data-theme="light"] .company-logo[src="/assets/crew-sheet-logo.svg"] {
  content: url("/assets/crew-sheet-logo-light.svg");
  filter: none;
  background: transparent;
  padding: 0;
}

.session-floor-plans button,
.event-task-room [data-custom-map] {
  white-space: nowrap;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: 44px;
}
@media (max-width: 650px) {
  .session-floor-plans button {
    width: 100%;
  }
}

.crew-work-section {
  margin-top: 28px;
}
.my-work .crew-work-section > .section-heading {
  margin-bottom: 12px;
  align-items: baseline;
}
.crew-work-section h3 {
  margin: 0;
}
.crew-work-section .section-heading small {
  color: var(--muted);
}
.crew-edit-projects {
  display: grid;
  gap: 16px;
}
.crew-edit-project {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
}
.crew-edit-project-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.crew-edit-project-heading h3 {
  font-size: 18px;
  margin-top: 10px;
}
.crew-edit-label {
  flex-shrink: 0;
  border-color: var(--job-accent);
  color: var(--job-accent);
}
.crew-edit-deliverables {
  padding: 0;
  margin: 20px 0;
  list-style: none;
}
.crew-edit-deliverables li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.crew-edit-deliverables h4 {
  margin: 0 0 5px;
  font-size: 14px;
}
.crew-edit-deliverables small,
.crew-edit-project-footer small {
  color: var(--muted);
  font-size: 12px;
}
.crew-edit-project-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.crew-edit-project-footer .button {
  font: 400 12px var(--mono);
  min-height: 44px;
}
@media (max-width: 650px) {
  .crew-edit-project-heading {
    flex-direction: column;
    gap: 12px;
  }
  .crew-edit-deliverables li {
    flex-wrap: wrap;
    gap: 10px;
  }
  .crew-edit-project-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .crew-edit-project-footer .button {
    width: 100%;
    white-space: normal;
  }
}

/* View labels remain clear within the shared monospaced account menu. */
#header .view-switch button {
  font-weight: 700;
}

#header .account-menu-divider {
  width: auto;
  height: 0;
  margin: 8px 12px;
  border: 0;
  border-top: 1px solid var(--line);
}

:root[data-theme="light"] input[type="checkbox"]:is(:checked, :indeterminate) {
  background-color: #202326;
  border-color: #202326;
}
:root[data-theme="light"] input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="light"] input[type="checkbox"]:indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

:root[data-theme="light"]
  :is(
    .workspace-tabs .selected,
    .project-filters [aria-pressed="true"],
    .project-create-menu > summary
  ) {
  background: #202326;
  border-color: #202326;
  color: #fff;
}
:root[data-theme="light"] #header .view-switch::before {
  background: #202326;
}
:root[data-theme="light"] #header .view-switch button[aria-pressed="true"] {
  color: #fff;
}

.directory-invite-status {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.directory-invite-button {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 47%, transparent);
  min-height: 0;
}
.directory-invite-status small {
  max-width: 240px;
  overflow-wrap: anywhere;
}
.directory-invite-status small:empty {
  display: none;
}
@media (max-width: 1000px) {
  .crew-directory-table td:nth-child(5):has(.directory-invite-status) {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: stretch;
  }
  .crew-directory-table tr:has(.directory-invite-status) td:last-child {
    grid-row: 5;
  }
  .directory-invite-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
}

.company-switch-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.company-switch-list .button {
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 16px;
}
.company-switch-list .button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.company-switch-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.company-switch-list strong {
  font: 700 12px/1.5 var(--mono);
  flex-shrink: 0;
}
.company-switch-list [aria-current="true"] {
  border-color: var(--accent);
}

#header .header-view-switch {
  width: 220px;
  flex: 0 0 auto;
}
#header .header-view-switch button {
  flex: 1;
  min-height: 40px;
  padding: 8px 12px;
}
@media (max-width: 650px) {
  #header:has(.header-view-switch) {
    flex-wrap: wrap;
    gap: 16px;
  }
  #header:has(.header-view-switch) .brand {
    margin-right: auto;
  }
  #header:has(.header-view-switch) .header-controls {
    display: contents;
  }
  #header .header-view-switch {
    order: 3;
    width: 100%;
  }
}

.producer-dashboard-company {
  margin-bottom: 24px;
  max-width: 320px;
}
.project-directory-table .job-company {
  margin-bottom: 10px;
}

/* Align the header controls and keep project actions on the filter row. */
#header .header-view-switch {
  height: 50px;
}
#header .header-view-switch button {
  height: 40px;
}
#header .header-controls > .menu > summary {
  height: 50px;
  min-height: 50px;
  align-items: center;
}
.project-toolbar > .project-create-menu {
  flex: 0 0 auto;
}
.project-toolbar > .project-create-menu > summary {
  min-height: 48px;
  align-items: center;
}
@media (max-width: 650px) {
  .project-toolbar > .project-create-menu {
    grid-column: 1 / -1;
  }
  .project-toolbar > .project-create-menu > summary {
    justify-content: center;
  }
}

/* Project directories share a compact identity row across company pilots. */
.project-directory-table th { padding: 12px 16px; }
.project-directory-table td { padding: 14px 16px; }
.project-row-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-row-copy { min-width: 0; flex: 1; }
.project-row-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.project-directory-table .project-row-heading .row-title { font-weight: 600; line-height: 1.4; }
.project-directory-table .project-row-heading .badge { margin: 0; font-size: 9px; padding: 4px 6px; }
.project-directory-table .project-row-copy > small { margin: 4px 0 0; line-height: 1.4; }
.project-directory-table .project-row-info > .job-company { display: flex; align-items: center; justify-content: flex-start; flex: 0 0 80px; width: 80px; height: 30px; margin: 0; }
.project-directory-table .project-row-info > .job-company:not(.job-company-axiom-wordmark) img { width: 30px; height: 30px; object-fit: contain; }
.project-directory-table .crew-status { justify-content: flex-start; gap: 8px; }
@media (min-width: 801px) {
  .project-directory-table th:first-child { width: calc(58% - 180px); }
  .project-directory-table th:nth-child(2) { width: 18%; }
  .project-directory-table th:nth-child(3) { width: 24%; }
  .project-directory-table th:nth-child(4) { width: 120px; }
  .project-directory-table th:last-child { width: 60px; }
  .project-directory-table td:last-child { padding-inline: 4px 12px; }
  .project-directory-table .project-open-arrow { width: 44px; min-width: 44px; }
}
@media (max-width: 800px) {
  .project-directory-table td { padding: 5px 0; }
}
@media (max-width: 650px) {
  .project-directory-table td:first-child { display: block; grid-column: 1 / -1; grid-row: 1; margin-right: 28px; }
  .project-directory-table .project-row-info { align-items: flex-start; gap: 10px; }
  .project-directory-table .project-row-info > .job-company { flex-basis: 56px; width: 56px; }
  .project-directory-table .project-row-heading .row-title { font-size: 16px; }
  .project-directory-table .project-row-heading > .badge { display: none; }
  .project-directory-table .project-row-copy > small { font-size: 12px; }
  .project-directory-table .crew-status { justify-content: space-between; }
}

.today-call-time {
  white-space: nowrap;
  font: 12px/1.5 var(--mono);
}
@media (max-width: 650px) {
  .today-job {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 8px 12px;
    padding-block: 14px 4px;
  }
  .today-job > span:first-child {
    grid-column: 1;
  }
  .today-job .today-call-time {
    grid-column: 1;
    grid-row: 2;
  }
  .today-job > span:last-child {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* The crew greeting starts immediately after the header, without section spacing. */
body[data-crew-home="true"] #app > .page-heading:first-child { margin-top: 0; }
@media (max-width: 650px) {
  body[data-crew-home="true"] #app { padding-top: 16px; }
}

.job-company.job-company-axiom-wordmark {
  display: inline-block;
  position: relative;
  width: 90px;
  height: 34px;
  overflow: hidden;
  flex-shrink: 0;
}
.job-company.job-company-axiom-wordmark img {
  position: absolute;
  left: -36px;
  top: 0;
  width: 126px;
  max-width: none;
  height: 34px;
  object-fit: contain;
}

.project-directory-table .project-row-info > .job-company-axiom-wordmark img { left: -32px; width: 112px; height: 30px; }
@media (max-width: 650px) {
  .project-directory-table .project-row-info > .job-company-axiom-wordmark { height: 22px; }
  .project-directory-table .project-row-info > .job-company-axiom-wordmark img { left: -22.4px; width: 78.4px; height: 21px; }
}

body[data-crew-home="true"] #app > .page-heading p {
  font: 400 12px/1.5 var(--mono);
  letter-spacing: 0;
}

.next-assignment-body { align-items: stretch; flex-direction: column; gap: 18px; }
.next-assignment-body small { margin-top: 14px; }
.next-assignment-body > a { display: flex; justify-content: space-between; width: 100%; }
.next-assignment-heading .eyebrow {
  font: 700 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--job-accent, var(--brand-accent));
}
.next-assignment-body > a { font: 600 13px/1.4 var(--mono); }
.work-project-heading { display: grid; grid-template-columns: 40px minmax(0,1fr); column-gap: 12px; align-items: center; }
.work-project-heading > .work-card-top { grid-column: 1; grid-row: 1 / 3; }
.work-project-heading > h3 { grid-column: 2; grid-row: 1; margin: 0 0 4px; }
.work-project-heading > small { grid-column: 2; grid-row: 2; }
.work-project-heading > small:empty { display: none; }
.work-card-top { display: flex; align-items: center; justify-content: center; gap: 12px; }
.work-card-top .job-company-logo-only { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; }
.work-card-top .job-company-logo-only img { display: block; width: 40px; height: 40px; object-fit: contain; }
.work-card-top .job-company { margin: 0; }
.work-card-booking { display: none; }
.my-work-project [data-booking-status="booked"] { color: var(--status-booked); border-color: var(--status-booked); }
:root[data-theme="light"] .my-work-project [data-booking-status="booked"] { color: var(--status-booked); border-color: var(--status-booked); }
@media (max-width: 1000px) {
  .work-project-heading { display: block; }
  .work-card-top { justify-content: space-between; margin-bottom: 8px; }
  .work-card-booking { display: inline-flex; }
  .my-work-table tbody .my-work-project .work-status-cell { display: none; }
  .my-work-table .work-project-name h3 { font-size: 23px; line-height: 1.25; margin: 0 0 6px; }
  .my-work-table .work-project-heading > small { font-size: 12px; }
  .my-work-table .work-dates-cell { grid-column: 1; grid-row: 2; font-size: 14px; }
  .my-work-table .work-role-cell { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--muted); }
  .my-work-table .work-role-cell .work-mobile-label { display: none; }
  .my-work-table .work-location-cell { grid-column: 1 / -1; grid-row: 3; font-size: 14px; }
  .my-work-table .work-open-cell { grid-row: 4; margin-top: 2px; }
  .my-work-table .work-dates-cell,
  .my-work-table .work-role-cell,
  .my-work-table .work-location-cell { line-height: 1.5; overflow-wrap: break-word; }

}

@media (max-width: 800px) {
  body[data-surface="dashboard"] {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
  body[data-surface="dashboard"] #app,
  body[data-surface="dashboard"] #header,
  body[data-surface="dashboard"] .dashboard-projects,
  body[data-surface="dashboard"] .project-toolbar,
  body[data-surface="dashboard"] .producer-dashboard-company,
  body[data-surface="dashboard"] [data-project-list] {
    min-width: 0;
    max-width: 100%;
  }
  body[data-surface="dashboard"] .project-toolbar > input { min-width: 0; }
  body[data-surface="dashboard"] .today-job > span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .crew-company-toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .project-directory-table .project-open-arrow { min-width: 44px; min-height: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .project-directory-table td:first-child { margin-right: 40px; }
  .project-directory-table .project-row-info > small { margin-bottom: 0; }
  .dashboard-today { margin-bottom: 20px; padding: 16px; }
  .today-job { padding-top: 12px; }
  .producer-dashboard-company { margin-bottom: 20px; max-width: none; }
}

/* Editor fees share the crew payment ledger; keep the accounting summary compact. */
.editor-compensation-panel { border:1px solid var(--line); border-radius:10px; margin:0 0 20px; background:var(--surface); }
.editor-compensation-panel > summary { display:flex; align-items:center; gap:12px; padding:12px 16px; min-height:48px; cursor:pointer; list-style:none; }
.editor-compensation-panel > summary > strong { font:650 15px/1.3 var(--font-heading); }
.editor-compensation-panel > summary > span:not(.toggle) { margin-left:auto; color:var(--muted); font:400 12px/1.4 var(--font-body); }
.editor-compensation-body { border-top:1px solid var(--line); padding:16px; }
.editor-compensation-body > p { font-size:12px; margin:0 0 12px; }
.editor-fee-group { margin-top:16px; }
.editor-fee-group > .section-heading { margin:0 0 8px; }
.editor-fee-group h3 { font-size:15px; margin:0; }
.editing-fee-card,.deliverable-compensation { border-top:1px solid var(--line); padding:12px 0; }
.editing-fee-card > .section-heading,.deliverable-compensation > .section-heading { margin:0 0 12px; gap:8px; }
.deliverable-compensation h4 { font:650 15px/1.3 var(--font-heading); margin:0; }
.editing-pay-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 12px; }
.editing-pay-metrics small { display:block; font-size:11px; color:var(--muted); margin:0 0 4px; }
.editing-pay-metrics strong { font:500 16px/1.3 var(--font-body); }
.editing-fee-actions { margin-top:12px; gap:8px; }
.editing-fee-actions button,.editing-pay-empty button,.editing-payment-line button { font:500 12px/1.4 var(--font-body); min-height:44px; padding:8px 12px; }
.editing-pay-empty { display:flex; gap:12px; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding-top:12px; color:var(--muted); font-size:12px; }
.editing-fee-history { margin-top:12px; }
.editing-fee-history > summary { display:flex; align-items:center; gap:12px; min-height:40px; cursor:pointer; font-size:12px; list-style:none; }
.editing-payment-line { display:flex; gap:12px; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding:8px 0; font-size:12px; }
.editing-payment-line small { display:block; color:var(--muted); }
@media(max-width:700px){
 .editor-compensation-panel > summary { flex-wrap:wrap; }
 .editor-compensation-panel > summary > span:not(.toggle) { order:2; margin-left:0; flex-basis:100%; }
 .editor-compensation-panel > summary > .toggle { margin-left:auto; }
 .editor-compensation-body { padding:12px; }
 .editing-fee-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .editing-fee-actions button { width:100%; }
 .editing-payment-line { flex-wrap:wrap; }
}

.editing-fee-more > summary { min-height:44px; font:500 12px/1.4 var(--font-body); padding:8px 12px; align-items:center; }
.editing-fee-more .menu-panel { top:calc(100% + 8px); }
.editor-compensation-panel,.deliverable-compensation { min-width:0; }
@media(max-width:700px) { .editing-fee-more > summary { width:100%; justify-content:center; } }

.editing-pay-metrics > span { min-width:0; }
.editing-pay-metrics strong { overflow-wrap:anywhere; }
.quick-edit-status { display: grid; gap: 3px; min-width: 0; }
.quick-edit-status select.badge { width: 100%; min-height: 44px; padding: 8px 22px; font: 400 11px/1.4 var(--font-body); text-align: center; text-align-last: center; cursor: pointer; letter-spacing: 0; text-transform: none; }
.quick-edit-status select option { color: var(--ink); background: var(--surface); }
.quick-edit-status select[hidden] { display: none; }
.quick-edit-status .quick-status-trigger { display: flex; width: 100%; min-height: 44px; padding: 8px 10px; gap: 8px; font: 400 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; border-radius: 8px; }
.quick-status-trigger > span { flex: 1; }
.quick-status-trigger svg { flex: none; opacity: .7; }
.quick-status-menu { position: fixed; inset: auto; margin: 0; width: 240px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 48px #0007; }
.quick-status-menu:popover-open { display: grid; gap: 2px; }
.quick-status-menu[open] { display: grid; gap: 2px; }
.quick-status-menu::backdrop { background: transparent; }
.quick-status-menu > button { display: flex; justify-content: space-between; gap: 16px; min-height: 44px; width: 100%; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.quick-status-menu > button:is(:hover,:focus-visible) { background: color-mix(in srgb, var(--ink) 6%, transparent); outline: none; }
.quick-status-menu > button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.quick-status-menu .quick-status-choice { display: flex; justify-content: flex-start; gap: 10px; min-height: 0; padding: 0; border: 0; background: transparent; font: 400 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; }
.quick-status-choice::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.quick-status-check { visibility: hidden; color: var(--accent); font: 400 16px/1 var(--font-body); }
[aria-checked="true"] > .quick-status-check { visibility: visible; }
.quick-edit-status [data-quick-edit-message] { font: 400 11px/1.4 var(--font-body); margin: 0; text-align: center; color: var(--status-booked); white-space: normal; }
.quick-edit-status [data-quick-edit-message]:empty { display: none; }
.quick-edit-status [data-quick-edit-message].error { color: #ff9991; }
.quick-edit-status .quick-edit-overdue { margin: 0; color: #ff9991; text-align: center; font: 400 11px/1.4 var(--font-body); }
:root[data-theme="light"] .quick-edit-status :is(.quick-edit-overdue, [data-quick-edit-message].error) { color: #ac352c; }
.crew-edit-deliverables .quick-edit-status { min-width: 130px; max-width: 180px; }

/* Inbox links need their own block layout; generic panels do not make anchors blocks. */
.notification-list { display: grid; gap: 12px; padding: 0; margin: 24px 0 0; list-style: none; }
.notification-list > li { min-width: 0; margin: 0; padding: 0; }
a.notification-card { display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 24px; width: 100%; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
a.notification-card:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
a.notification-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.notification-copy { min-width: 0; overflow-wrap: anywhere; }
.notification-company { display: block; color: var(--muted); font: 400 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.notification-card h2 { margin: 6px 0; color: var(--ink); font: 600 18px/1.4 var(--font-body); letter-spacing: -.2px; }
.notification-card p { margin: 0; color: var(--muted); font: 400 13px/1.5 var(--font-body); }
.notification-card[data-read="false"] .notification-company { color: var(--accent); }
.notification-open { color: var(--accent); font: 400 24px/1 var(--font-body); text-align: right; }
.notification-undo { margin: 16px 0; font: 400 13px/1.5 var(--font-body); }
@media (max-width: 650px) {
  a.notification-card { gap: 16px; padding: 16px; }
  .notification-card h2 { font-size: 16px; }
}

/* Project type has a stable column rather than following variable-length titles. */
.project-directory-types td[data-label="Type"] .badge { margin: 0; font-size: 9px; padding: 4px 6px; }
@media (min-width: 801px) {
  .project-directory-types { overflow-x: auto; }
  .project-directory-types table { min-width: 1000px; }
  .project-directory-types th:first-child { width: calc(62% - 340px); }
  .project-directory-types th:nth-child(2) { width: 160px; }
  .project-directory-types th:nth-child(3) { width: 16%; }
  .project-directory-types th:nth-child(4) { width: 22%; }
  .project-directory-types th:nth-child(5) { width: 120px; }
  .project-directory-types th:last-child { width: 60px; }
}
@media (max-width: 650px) {
  .project-directory-types td[data-label="Type"] { display: none; }
  .project-directory-types td[data-label="Date"] { grid-row: 3; grid-column: 1 / -1; color: var(--ink); padding-top: 0; }
  .project-directory-types td[data-label="Location"] { grid-row: 4; grid-column: 1 / -1; color: var(--muted); padding-top: 0; }
  .project-directory-types td[data-label="Crew status"] { grid-row: 5; grid-column: 1 / -1; padding-top: 12px; }
}
