/* 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 {
  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 {
  margin-top: 24px;
  max-width: 1040px;
}
.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: #ffb65c;
  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: #ffbf24;
}
.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 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 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: #f5f7f3;
  --surface: #fff;
  --ink: #17201c;
  --muted: #58645e;
  --line: #cbd3cc;
  --accent: #426600;
}
: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: #c5f45b;
  border-color: #a1cf36;
  color: #17201c;
}
: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-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: #c5f45b;
  color: #17201c;
}
@media (max-width: 650px) {
  .workspace-tabs {
    width: 100%;
  }
  .workspace-tabs .button {
    padding: 10px 8px;
    white-space: normal;
  }
}

.project-filters {
  display: flex;
  gap: 10px;
}
.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;
}
.next-assignment-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.next-assignment-heading h2 {
  margin: 6px 0 0;
}
.next-assignment-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.next-assignment-body strong {
  font: 600 14px/1.5 var(--font-body);
}
.next-assignment-body small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.next-assignment-body > a {
  flex-shrink: 0;
}
.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-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  padding: 18px 20px;
}
.my-work-project + .my-work-project {
  border-top: 1px solid var(--line);
}
.my-work-project h3 {
  font-size: 14px;
  margin: 4px 0;
  font-weight: 600;
}
.my-work-project small,
.my-work-project .edit-meta {
  color: var(--muted);
  font-size: 12px;
}
.my-work-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.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-project {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .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: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(180px, 1.5fr) minmax(110px, 0.9fr) minmax(180px, 1.5fr)
      80px 290px;
    gap: 20px;
    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(150px, 1.3fr) minmax(85px, 0.8fr) minmax(150px, 1fr)
      65px 260px;
    gap: 12px;
    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;
}
