/* ═══════════════════════════════════════════════════════════════════════
   NEXUS Cleaning — Roster styles
   Layered on top of cleaning-system.css. Covers the "who does what when"
   layer plus the cleaning↔education guide-linking UI:
     - Person filter pill (top of list)
     - Person filter picker (slide-up sheet)
     - Guide button on task rows
     - Task guide picker (slide-up sheet, when 2+ guides)
     - Shift pattern picker (am / pm / both)
     - Weekly assignment grid (7 day rows × 1-2 shift cols)
     - Monthly rotation picker (this month / next month)
     - Linked guides chips + add button
     - Guide link picker (search + tap to toggle)
   ═══════════════════════════════════════════════════════════════════════ */


/* ─── PERSON FILTER PILL (top of cleaning list) ────────────────────── */
.clean-person-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-highlight-line, rgba(212, 164, 78, 0.18));
  border-radius: 999px;
  color: var(--text, #ece6d8);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms, background 140ms;
}
.clean-person-pill:hover {
  border-color: rgba(212, 164, 78, 0.4);
}
.clean-person-pill.is-active {
  background: rgba(212, 164, 78, 0.12);
  border-color: var(--nx-gold, #d4a44e);
  color: var(--nx-gold, #d4a44e);
}


/* ─── PERSON FILTER PICKER (sheet) ─────────────────────────────────── */
.clean-person-picker,
.clean-guide-picker,
.clean-guide-link-picker {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.clean-person-picker-bg,
.clean-guide-picker-bg,
.clean-guide-link-picker-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.clean-person-picker-card,
.clean-guide-picker-card,
.clean-guide-link-picker-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 75vh;
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-highlight-line, rgba(212, 164, 78, 0.18));
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cleanSheetSlideUp 220ms ease-out;
}
@keyframes cleanSheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.clean-person-picker-head,
.clean-guide-picker-head,
.clean-guide-link-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nx-highlight-line, rgba(212, 164, 78, 0.10));
}
.clean-person-picker-title,
.clean-guide-picker-title,
.clean-guide-link-picker-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #ece6d8);
}
.clean-person-picker-close,
.clean-guide-picker-close,
.clean-guide-link-picker-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(212, 164, 78, 0.18);
  color: var(--nx-faint, #7a7167);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.clean-person-picker-list,
.clean-guide-picker-list,
.clean-guide-link-picker-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
}
.clean-person-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 4px;
  -webkit-tap-highlight-color: transparent;
}
.clean-person-picker-item:hover {
  background: rgba(212, 164, 78, 0.05);
}
.clean-person-picker-item.is-selected {
  background: rgba(212, 164, 78, 0.10);
  border-color: var(--nx-gold, #d4a44e);
}
.clean-person-picker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--nx-faint, #7a7167);
  flex-shrink: 0;
}
.clean-person-picker-item.is-selected .clean-person-picker-dot {
  background: var(--nx-gold, #d4a44e);
  border-color: var(--nx-gold, #d4a44e);
}
.clean-person-picker-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #ece6d8);
  flex: 1;
}
.clean-person-picker-me {
  font-size: 12px;
  font-weight: 400;
  color: var(--nx-gold, #d4a44e);
  font-style: italic;
}
.clean-person-picker-hint {
  font-size: 11.5px;
  color: var(--nx-faint, #7a7167);
}


/* ─── ASSIGNEE CHIP TWEAKS (am/pm/me styling) ──────────────────────── */
.clean-assignee {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.clean-assignee.is-me {
  background: rgba(212, 164, 78, 0.18);
  border-color: var(--nx-gold, #d4a44e);
  color: var(--nx-gold, #d4a44e);
}
.clean-assignee-shift {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  font-weight: 700;
}


/* ─── GUIDE BUTTON ON TASK ROWS ────────────────────────────────────── */
.clean-guide-btn {
  position: relative;
}
.clean-guide-btn.is-empty {
  /* No guides linked yet — render dimmer so the user knows tapping will
     prompt them to link one rather than open something. 0.65 keeps it
     legible on the dark NEXUS background; the previous 0.42 was so dim
     the button looked invisible. */
  opacity: 0.65;
  color: var(--nx-gold, #d4a44e);
}
.clean-guide-btn.is-empty:hover,
.clean-guide-btn.is-empty:active {
  opacity: 1;
}
.clean-guide-btn-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--nx-gold, #d4a44e);
  color: var(--nx-gold-on, #101626);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ─── TASK GUIDE PICKER (slide-up when 2+ guides) ──────────────────── */
.clean-guide-picker-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  align-items: start;
  margin-bottom: 4px;
}
.clean-guide-picker-item:hover {
  background: rgba(212, 164, 78, 0.05);
  border-color: rgba(212, 164, 78, 0.20);
}
.clean-guide-picker-kind {
  color: var(--nx-gold, #d4a44e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.clean-guide-picker-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text, #ece6d8);
  grid-column: 2;
}
.clean-guide-picker-hint {
  grid-column: 2;
  font-size: 12px;
  color: var(--nx-faint, #7a7167);
  line-height: 1.4;
  margin-top: 2px;
}


/* ─── SHIFT PATTERN PICKER (am / pm / both) ────────────────────────── */
.clean-shift-picker {
  display: inline-flex;
  background: var(--bg, #0a0e16);
  border: 1px solid var(--nx-highlight-line, rgba(212, 164, 78, 0.15));
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.clean-shift-btn {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-faint, #7a7167);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 120ms, color 120ms;
}
.clean-shift-btn:hover { color: var(--text, #ece6d8); }
.clean-shift-btn.is-selected {
  background: var(--nx-gold, #d4a44e);
  color: var(--nx-gold-on, #101626);
  font-weight: 600;
}


/* ─── WEEKLY ASSIGNMENT GRID ───────────────────────────────────────── */
.clean-week-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg, #0a0e16);
  border: 1px solid var(--nx-highlight-line, rgba(212, 164, 78, 0.10));
  border-radius: 12px;
  padding: 10px;
}
.clean-week-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  align-items: center;
}
.clean-week-row:has(.clean-week-shift-cell + .clean-week-shift-cell) {
  grid-template-columns: 50px 1fr 1fr;
}
.clean-week-day-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--nx-gold, #d4a44e);
  font-weight: 600;
}
.clean-week-shift-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clean-week-shift-label {
  position: absolute;
  top: 4px;
  right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  color: var(--nx-faint, #7a7167);
  pointer-events: none;
  z-index: 1;
}
.clean-week-shift-cell select {
  padding-right: 28px;
}


/* ─── MONTHLY ROTATION PICKER ──────────────────────────────────────── */
.clean-month-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg, #0a0e16);
  border: 1px solid var(--nx-highlight-line, rgba(212, 164, 78, 0.10));
  border-radius: 12px;
  padding: 10px;
}
.clean-month-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
}
.clean-month-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--nx-gold, #d4a44e);
  font-weight: 600;
}


/* ─── LINKED GUIDES IN EDITOR ──────────────────────────────────────── */
.clean-edit-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.clean-edit-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 5px 11px;
  background: rgba(212, 164, 78, 0.10);
  border: 1px solid rgba(212, 164, 78, 0.25);
  border-radius: 999px;
  color: var(--nx-gold, #d4a44e);
  font-size: 12.5px;
  font-family: 'Outfit', sans-serif;
}
.clean-edit-guide-link-x {
  width: 18px;
  height: 18px;
  background: transparent;
  border: none;
  color: var(--nx-faint, #7a7167);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 2px;
}
.clean-edit-guide-link-x:hover {
  background: rgba(204, 90, 90, 0.15);
  color: #cc5a5a;
}
.clean-edit-guide-link-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: transparent;
  border: 1px dashed rgba(212, 164, 78, 0.4);
  border-radius: 999px;
  color: var(--nx-gold, #d4a44e);
  font-size: 12.5px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clean-edit-guide-link-add:hover {
  background: rgba(212, 164, 78, 0.06);
}


/* ─── GUIDE LINK PICKER (sheet) ────────────────────────────────────── */
.clean-guide-link-picker-search {
  margin: 10px 12px 6px;
  padding: 10px 12px;
  background: var(--bg, #0a0e16);
  border: 1px solid var(--nx-highlight-line, rgba(212, 164, 78, 0.15));
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text, #ece6d8);
}
.clean-guide-link-picker-search:focus {
  outline: none;
  border-color: var(--nx-gold, #d4a44e);
}
.clean-guide-link-picker-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 100px 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 4px;
  -webkit-tap-highlight-color: transparent;
}
.clean-guide-link-picker-item:hover {
  background: rgba(212, 164, 78, 0.05);
}
.clean-guide-link-picker-item.is-linked {
  background: rgba(212, 164, 78, 0.08);
  border-color: rgba(212, 164, 78, 0.25);
}
.clean-guide-link-picker-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text, #ece6d8);
  margin-bottom: 4px;
}
.clean-guide-link-picker-meta {
  font-size: 11.5px;
  color: var(--nx-faint, #7a7167);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.clean-guide-link-picker-status {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  background: rgba(212, 164, 78, 0.15);
  color: var(--nx-gold, #d4a44e);
  border: 1px solid rgba(212, 164, 78, 0.3);
}
.clean-guide-link-picker-status.is-add {
  background: transparent;
  border-color: var(--nx-highlight-line, rgba(212, 164, 78, 0.18));
  color: var(--nx-faint, #7a7167);
}
.clean-guide-link-picker-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--nx-faint, #7a7167);
  font-size: 13px;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════
   v16 — CLEANER PROFILES · SOFT "MINE" HIGHLIGHT · FOCUS MODE · ROSTER
   Layered on top of cleaning-roster.css / cleaning-system.css.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── SOFT highlight: the logged-in cleaner's own tasks ─────────────────
   Nothing is hidden — a person's work is just emphasized with a gold edge
   and a faint wash so it reads first at a glance. */
.clean-task.is-mine {
  position: relative;
  background: linear-gradient(90deg, rgba(212,164,78,0.10), rgba(212,164,78,0.02) 60%, transparent);
  border-radius: 14px;
}
.clean-task.is-mine::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent, #d4a44e);
}
.clean-task.is-mine.is-done {
  background: transparent;     /* once done, drop the emphasis */
}
.clean-task.is-mine.is-done::before { opacity: 0.35; }

/* The Focus pill reuses .clean-person-pill; when active it goes solid gold. */
.clean-focus-pill.is-active {
  background: var(--accent, #d4a44e);
  border-color: var(--accent, #d4a44e);
  color: #1a1407;
}

/* ─── FULL-SCREEN FOCUS MODE — hide the masthead ───────────────────────
   Scoped to body.view-clean.clean-focus so it ONLY hides the nav while the
   cleaning view is active. app.js clears the view-clean class on navigation,
   so leaving cleaning restores the masthead automatically even if the
   clean-focus class lingers. */
body.view-clean.clean-focus .nav,
body.view-clean.clean-focus .bottom-nav {
  display: none !important;
}
/* With the masthead gone, let the cleaning column fill the whole viewport
   and clear the iOS status-bar / notch at the top of the in-view header. */
body.view-clean.clean-focus.is-pane-cleaning #appWrap {
  height: 100dvh;
  height: 100vh;
  height: 100dvh;
}
body.view-clean.clean-focus .clean-header.clean-header-takeover {
  padding-top: max(10px, env(safe-area-inset-top, 0px));
}

/* ─── "Manage roster & scope" button in the person picker ──────────────── */
.clean-roster-manage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 4px 12px 14px;
  padding: 12px;
  background: rgba(212,164,78,0.10);
  border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.20));
  border-radius: 16px;
  color: var(--accent, #d4a44e);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clean-roster-manage-btn:active { transform: scale(0.98); }

/* ─── ROSTER MANAGER SHEET ─────────────────────────────────────────────── */
.clean-roster-manager {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: flex-end; justify-content: center;
}
.clean-roster-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.clean-roster-card {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-gold-line, rgba(212,164,78,0.22));
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.clean-roster-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.clean-roster-title {
  font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--text, #f0e9da);
}
.clean-roster-close {
  width: 32px; height: 32px; border-radius: 999px;
  background: transparent; border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.18));
  color: var(--text, #f0e9da); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.clean-roster-sub {
  font-size: 12.5px; color: var(--nx-muted, #9a9384);
  line-height: 1.4; margin-bottom: 14px;
}
.clean-roster-list { display: flex; flex-direction: column; gap: 8px; }
.clean-roster-row {
  border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.14));
  border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.clean-roster-row.is-open { border-color: var(--nx-gold-line, rgba(212,164,78,0.3)); }
.clean-roster-row-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; background: transparent; border: 0;
  color: var(--text, #f0e9da); cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.clean-roster-row-name { font-size: 14.5px; font-weight: 600; flex: 1; }
.clean-roster-row-meta { font-size: 11.5px; color: var(--nx-muted, #9a9384); }
.clean-roster-row-chev { color: var(--nx-muted, #9a9384); transition: transform 160ms ease; }
.clean-roster-row.is-open .clean-roster-row-chev { transform: rotate(180deg); }
.clean-roster-row-body {
  padding: 4px 14px 16px;
  border-top: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.10));
}
.clean-roster-field-label {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nx-muted, #9a9384); margin: 14px 0 7px;
}
.clean-roster-field-note { text-transform: none; letter-spacing: 0; opacity: 0.6; }
.clean-roster-days, .clean-roster-shifts, .clean-roster-secs {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.clean-roster-day, .clean-roster-shift, .clean-roster-sec {
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.18));
  color: var(--text, #ece6d8);
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.clean-roster-day.on, .clean-roster-shift.on, .clean-roster-sec.on {
  background: var(--accent, #d4a44e); border-color: var(--accent, #d4a44e);
  color: #1a1407; font-weight: 600;
}
.clean-roster-save {
  margin-top: 16px; width: 100%; padding: 12px;
  background: var(--accent, #d4a44e); border: 0; border-radius: 16px;
  color: #1a1407; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.clean-roster-save:disabled { opacity: 0.7; }
.clean-roster-empty {
  font-size: 13px; color: var(--nx-muted, #9a9384); padding: 14px;
}


/* ═══════════════════════════════════════════════════════════════════════
   v16 — "NOW" LENS + PER-TASK TRAINING TOGGLE
   ═══════════════════════════════════════════════════════════════════════ */

/* Tasks not relevant to the current shift fade back so the next thing to do
   reads first. Still fully tappable — this is emphasis, not hiding. */
.clean-task.is-dimmed {
  opacity: 0.42;
  filter: saturate(0.7);
}
.clean-task.is-dimmed:active { opacity: 0.7; }
/* A person's own work still stands out even when dimmed by the Now lens. */
.clean-task.is-dimmed.is-mine { opacity: 0.6; }

/* The active "Now · Opening/Closing" segment gets the gold treatment so the
   time context is legible at a glance. */
.clean-view-toggle-btn[data-view="now"].is-active {
  background: var(--accent, #d4a44e);
  color: #1a1407;
  font-weight: 700;
}

/* Per-task training opt-in/out toggle — only shown in Learn mode, sits right
   after the training (graduation) button. */
.clean-train-toggle {
  width: 22px !important;
  min-width: 22px;
  padding: 0 !important;
  border-radius: 999px !important;
  margin-left: -4px;
}
.clean-train-toggle.is-on {
  background: rgba(212,164,78,0.16);
  border-color: var(--accent, #d4a44e);
  color: var(--accent, #d4a44e);
}
.clean-train-toggle.is-off {
  opacity: 0.55;
}
/* When a task is explicitly opted out, its training button (only visible in
   Learn mode) reads muted so you can see the state at a glance. */
.clean-guide-btn.is-optedout {
  opacity: 0.4;
  border-style: dashed;
}


/* ═══════════════════════════════════════════════════════════════════════
   v16 — RESTAURANT CARDS (location landing), ordering-style
   ═══════════════════════════════════════════════════════════════════════ */

/* The pill location switcher is replaced by the card landing + a back row. */
.clean-header .clean-loc-picker { display: none !important; }

/* On the card landing, hide the per-location header chrome (date / Extra /
   Archive) and the progress bar + footer — they belong to a single location.
   The X (close to Home) stays. */
#dutiesCleaningPane.is-loc-cards .clean-date,
#dutiesCleaningPane.is-loc-cards .clean-extras-trigger,
#dutiesCleaningPane.is-loc-cards .clean-archive-trigger,
#dutiesCleaningPane.is-loc-cards .clean-progress,
#dutiesCleaningPane.is-loc-cards .clean-footer { display: none !important; }

.clean-loc-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 24px;
}
.clean-loc-cards-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-muted, #9a9384);
  margin: 4px 4px 2px;
}
/* Cards themselves reuse ordering's .ord-vendor-row / .ord-vendor-avatar
   (ordering-system.css, loaded globally) so they're identical to the vendor
   cards. The % sits in the .ord-vendor-when slot; "shift progress today" in
   the preview line. No bespoke card styling needed here. */

/* Back-to-restaurants row inside a location. */
.clean-loc-back {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: transparent;
  border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.14));
  border-radius: 16px;
  color: var(--text, #ece6d8);
  font-family: 'Outfit', sans-serif; font-size: 13px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.clean-loc-back:active { transform: scale(0.99); }
.clean-loc-back-chev { transform: rotate(90deg); display: inline-flex; color: var(--accent, #d4a44e); }
.clean-loc-back-text { font-weight: 600; color: var(--accent, #d4a44e); }
.clean-loc-back-current {
  margin-left: auto;
  font-weight: 700; color: var(--text, #f0e9da);
}


/* ═══════════════════════════════════════════════════════════════════════
   v16 — ROSTER: profiles (templates) · remove/re-add
   ═══════════════════════════════════════════════════════════════════════ */
.clean-roster-section-label {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent, #d4a44e); font-weight: 700;
  margin: 18px 2px 8px;
}
.clean-roster-templates { display: flex; flex-direction: column; gap: 8px; }
.clean-roster-trow { border-color: var(--nx-gold-line, rgba(212,164,78,0.22)); }

.clean-roster-tname {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; margin-bottom: 4px;
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.2));
  border-radius: 14px;
  color: var(--text, #f0e9da); font-family: 'Outfit', sans-serif; font-size: 14px;
}
.clean-roster-apply-tpl {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; margin-bottom: 4px;
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-gold-line, rgba(212,164,78,0.3));
  border-radius: 14px;
  color: var(--text, #f0e9da); font-family: 'Outfit', sans-serif; font-size: 13.5px;
}
.clean-roster-add-template {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 8px 0 4px; padding: 9px 14px;
  background: rgba(212,164,78,0.1);
  border: 1px dashed var(--nx-gold-line, rgba(212,164,78,0.4));
  border-radius: 999px;
  color: var(--accent, #d4a44e);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}

.clean-roster-row-actions { display: flex; gap: 8px; margin-top: 16px; }
.clean-roster-row-actions .clean-roster-save { margin-top: 0; flex: 1; }
.clean-roster-del {
  flex: 0 0 auto; padding: 12px 16px;
  background: transparent;
  border: 1px solid rgba(200,90,70,0.4);
  border-radius: 16px;
  color: #d98b78; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.clean-roster-del:active { transform: scale(0.98); }

.clean-roster-removed-toggle {
  width: 100%; margin-top: 12px; padding: 10px;
  background: transparent; border: 0;
  color: var(--nx-muted, #9a9384);
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; text-align: center;
}
.clean-roster-removed { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.clean-roster-removed-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.1));
  border-radius: 14px;
  color: var(--nx-muted, #b3ab99); font-size: 13.5px;
}
.clean-roster-readd {
  padding: 6px 14px;
  background: rgba(212,164,78,0.12);
  border: 1px solid var(--nx-gold-line, rgba(212,164,78,0.3));
  border-radius: 999px;
  color: var(--accent, #d4a44e);
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}


/* ═══════════════════════════════════════════════════════════════════════
   v16 — DESKTOP: unbundle duties controls so nothing is cramped/hidden
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 720px) {
  /* Restaurant cards: a centered, readable column — full-width rows, not
     tiny squeezed boxes. */
  .clean-loc-cards { max-width: 780px; margin: 0 auto; width: 100%; }
  .clean-loc-cards .ord-vendors { display: flex; flex-direction: column; gap: 10px; }
  .clean-loc-cards .ord-vendor-row-wrap { margin: 0; width: 100%; }
  .clean-loc-cards .ord-vendor-row { width: 100%; min-height: 92px; }
  .clean-loc-cards-title { max-width: 780px; margin-left: auto; margin-right: auto; width: 100%; }

  /* The in-location control row (Now / Today / All · person · Learn · Focus)
     wraps and spreads instead of overflowing off-screen. */
  .clean-view-toggle-row { flex-wrap: wrap; gap: 10px; row-gap: 10px; }
  .clean-view-toggle-row .clean-person-pill { flex: 0 0 auto; }

  /* Roster sheet reads as a centered dialog rather than a full-bleed sheet. */
  .clean-roster-card { max-width: 640px; border-radius: 22px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v16 — CARD "MORE OPTIONS" (⋮) + PRINT/EXPORT MENU
   ═══════════════════════════════════════════════════════════════════════ */
.clean-loc-menu {
  flex: 0 0 auto;
  width: 44px;
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-highlight-line, rgba(212,164,78,0.16));
  border-radius: 20px;
  color: var(--nx-muted, #9a9384);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.clean-loc-menu:hover { color: var(--accent, #d4a44e); border-color: var(--nx-gold-line, rgba(212,164,78,0.32)); }
.clean-loc-menu:active { transform: scale(0.96); }

.clean-card-menu {
  background: var(--surface, #141a2a);
  border: 1px solid var(--nx-gold-line, rgba(212,164,78,0.3));
  border-radius: 16px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
}
.clean-card-menu-title {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nx-muted, #9a9384); padding: 7px 10px 5px;
}
.clean-card-menu-scroll { max-height: 46vh; overflow-y: auto; }
.clean-card-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 12px;
  background: transparent; border: 0; border-radius: 13px;
  color: var(--text, #f0e9da);
  font-family: 'Outfit', sans-serif; font-size: 13.5px; font-weight: 500;
  text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clean-card-menu-item:hover { background: rgba(212,164,78,0.1); }
.clean-card-menu-item:active { background: rgba(212,164,78,0.16); }
