/* Team directory and member details use the same row rhythm as the guest register. */
.crew-page,.crew-sheet {
  min-width:0;
  color:var(--text,#151719);
}
.crew-count,.crew-sheet-meta,.crew-empty {
  margin:0;
  color:var(--muted,#5a616d);
  font-size:14px;
  line-height:1.5;
}
.crew-count { margin-bottom:12px; }
.crew-tabs { display:flex;flex-wrap:wrap;gap:4px;width:fit-content;max-width:100%;margin-bottom:18px;padding:4px;border-radius:11px;background:var(--soft); }
.crew-tabs .btn { min-width:0;padding-inline:10px;background:transparent;text-align:start; }
.crew-tabs [aria-selected=true] { background:var(--selection-bg);color:var(--selection-fg); }
.crew-tabs .btn svg { flex:none; }
.crew-page [role=tabpanel]:focus-visible { outline:2px solid var(--focus-ring);outline-offset:3px; }
.crew-roster {
  list-style:none;
  margin:0;
  padding:0;
}
.crew-roster>li+li { border-block-start:1px solid var(--divider); }
.crew-row {
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
  touch-action:manipulation;
  display:grid;
  align-items:center;
  width:100%;
  text-align:left;
  grid-template-columns:38px minmax(0,1fr) 16px;
  gap:10px;
  min-height:75px;
  padding:12px 2px;
}
.crew-avatar {
  position:relative;
  display:grid;
  place-items:center;
  height:38px;
  width:38px;
  border-radius:50%;
  overflow:hidden;
  background:#f1f2f4;
  color:#3a404a;
  font-size:13px;
  font-weight:600;
  line-height:1;
}
.crew-avatar img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  visibility:hidden;
}
.crew-avatar img[data-loaded] { visibility:visible; }
.crew-who { display:grid;gap:3px;min-width:0; }
.crew-who strong { overflow-wrap:anywhere;font-size:16px;font-weight:600;letter-spacing:-.018em;line-height:1.35; }
.crew-who small { color:var(--muted,#5a616d);font-size:13px;line-height:1.4;overflow-wrap:anywhere; }
.crew-role,.crew-member-access { display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px; }
.crew-row>svg { color:#6d7480; }
.crew-row:focus-visible { outline:2px solid var(--focus-ring);outline-offset:-2px; }
.crew-sheet-person { display:flex;align-items:center;gap:12px;margin-bottom:16px; }
.crew-sheet-person .crew-avatar { width:56px;height:56px;flex:none;font-size:17px; }
.crew-sheet-meta { min-width:0;overflow-wrap:anywhere; }
.crew-sheet-meta:focus-visible { outline:2px solid var(--focus-ring);outline-offset:3px; }
.crew-member-actions { display:grid;gap:8px; }
.crew-member-access { justify-content:space-between;gap:8px; }
.crew-role-editor .basic-form,.crew-permission-editor .basic-form { margin-top:12px; }
.crew-roles { margin:0;padding:0;border:0;min-inline-size:0; }
.crew-roles legend { padding:0;font-size:14px;font-weight:600;margin-bottom:8px; }
.crew-role-options { display:flex;flex-wrap:wrap;gap:6px; }
.crew-role-option {
  position:relative;display:inline-flex;align-items:center;gap:7px;min-height:44px;
  padding:8px 11px;border-radius:8px;background:var(--surface-subtle);color:var(--text);
  cursor:pointer;touch-action:manipulation;font-size:14px;font-weight:560;
}
.crew-role-option input { position:absolute;inset:0;inline-size:100%;block-size:100%;margin:0;opacity:0;cursor:inherit; }
.crew-role-mark { display:grid;place-items:center; }
.crew-role-mark svg:last-child,.crew-role-option:has(:checked) .crew-role-mark svg:first-child { display:none; }
.crew-role-option:has(:checked) { background:var(--selection-bg);color:var(--selection-fg); }
.crew-role-option:has(:checked) .crew-role-mark svg:last-child { display:block; }
.crew-role-option:has(:focus-visible) { outline:2px solid var(--focus-ring);outline-offset:2px; }
.crew-role-option:has(:disabled) { opacity:.66;cursor:default; }
.crew-roles [data-role-error] { margin:6px 0 0; }
@media (forced-colors:active) {
  .crew-role-option { outline:1px solid ButtonText;outline-offset:-1px; }
  .crew-role-option:has(:checked) { forced-color-adjust:none;background:Highlight;color:HighlightText; }
}
.crew-permissions { margin:0;padding:0;border:0;min-width:0; }
.crew-permissions legend { padding:0;font-size:14px;font-weight:600;margin-bottom:7px; }
.crew-permission-list { display:grid;gap:3px; }
.crew-permission-option {
  display:grid;align-items:center;grid-template-columns:28px minmax(0,1fr) 18px;
  gap:9px;min-height:50px;padding:7px 8px;border-radius:8px;cursor:pointer;
  touch-action:manipulation;
}
.crew-permission-option:has(:checked) { background:var(--surface-subtle); }
.crew-permission-option:has(:focus-visible) { outline:2px solid var(--focus-ring);outline-offset:-2px; }
.crew-permission-option:has(:disabled) { opacity:.66;cursor:default; }
.crew-permission-option strong,.crew-permission-option small { display:block;overflow-wrap:anywhere; }
.crew-permission-option strong { font-size:14px;font-weight:600;line-height:1.35; }
.crew-permission-option small,.crew-permission-note { color:var(--muted);font-size:12px;line-height:1.4; }
.crew-permission-note { margin:0; }
.crew-permission-icon { display:grid;place-items:center;width:28px;height:28px;color:var(--muted); }
.crew-permission-option input { margin:0;width:18px;height:18px;accent-color:var(--primary); }
.crew-waiter-list { list-style:none;padding:0;margin:0; }
.crew-waiter-row { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:57px;padding-block:6px; }
.crew-waiter-row+.crew-waiter-row { border-block-start:1px solid var(--divider); }
.crew-waiter-name { display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0; }
.crew-waiter-name strong { font-weight:600;overflow-wrap:anywhere; }
.crew-waiter-actions { display:flex;align-items:center;gap:6px; }
.crew-waiter-actions .btn { padding-inline:10px;white-space:nowrap; }
.crew-waiter-actions .crew-waiter-photo-button { width:44px;padding-inline:0; }
.crew-waiter-photo-name { color:var(--text);font-size:16px;font-weight:600;margin:0;overflow-wrap:anywhere; }
.crew-photo { border:0;margin:0;padding:0;min-inline-size:0; }
.crew-photo legend { font-size:14px;font-weight:600;padding:0;margin:0 0 6px; }
.crew-photo legend small { color:var(--muted);font-size:12px;font-weight:400;margin-inline-start:4px; }
.crew-photo-picker { display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border-radius:10px;background:var(--surface-subtle); }
.crew-photo-preview,.crew-photo-preview .crew-avatar,.crew-photo-preview>img { width:52px;height:52px; }
.crew-photo-preview>img { display:block;object-fit:cover;border-radius:50%; }
.crew-photo-note { color:var(--muted);font-size:12px;line-height:1.45;margin:0; }
.crew-photo-buttons { display:flex;gap:6px;flex-wrap:wrap;margin-top:6px; }
.crew-photo-buttons .btn,.crew-photo-feedback .btn { padding-inline:10px;font-size:13px; }
.crew-photo-buttons .crew-photo-camera { display:none; }
.crew-photo-feedback> :not([hidden]) { margin-top:6px; }
@media (any-pointer:coarse) { .crew-photo-buttons .crew-photo-camera { display:inline-flex; } }
@media (min-width:360px) {
  .crew-photo-picker { grid-template-columns:60px minmax(0,1fr);gap:12px;padding:12px; }
  .crew-photo-preview,.crew-photo-preview .crew-avatar,.crew-photo-preview>img { width:60px;height:60px; }
}
.crew-confirm { flex-basis:100%; }
.crew-confirm .form-actions { margin-top:8px; }
.crew-empty {padding:15px 0;}
.crew-form .form-actions {margin-top:4px;}
.crew-access-toggle {display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;cursor:pointer}
.crew-access-toggle input {width:18px;height:18px;margin:0}
.crew-access-fields {display:grid;gap:12px}
.crew-access-fields small {font-size:12px;color:var(--muted)}
.crew-form .form-actions .btn-primary {width:100%;}
@media (hover:hover) {
  .crew-row:hover {background:#f7f8f9;}
}
@media(min-width:720px){
  .crew-row {grid-template-columns:42px minmax(0,1fr) 16px;gap:14px;padding-block:15px;}
  .crew-avatar {width:42px;height:42px;}
  .crew-who strong {font-size:17px;}
}
