/* Service teams page (users.html). Builds on cms.css. */
:root {
  --us-ink: #23262f;
  --us-muted: #5f6472;
  --us-line: #e6e8ef;
  --us-bg: #f4f5fa;
  --us-blue: #0071b3;
  --us-blue-dark: #005d93;
  /* The team a person leads: La Nube purple. */
  --us-lead-1: #4b3f8f;
  --us-lead-2: #6b5cc2;
  --us-lead-soft: #efecfb;
  --us-radius: 14px;
}

body { background: var(--us-bg); }
.us-main { max-width: 720px; margin: 0 auto; padding: 20px 14px 40px; min-height: 60vh; font-size: 15px; color: var(--us-ink); }
.us-card { background: #fff; border: 1px solid var(--us-line); border-radius: var(--us-radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(20, 24, 40, .04); }
.us-center { text-align: center; }
.us-title { font-size: 21px; margin: 0 0 6px; color: var(--us-ink); }
.us-subtitle { font-size: 16px; margin: 14px 0 8px; color: var(--us-ink); }
.us-card > .us-subtitle:first-child, .us-card-head .us-subtitle { margin-top: 0; }
.us-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.us-muted { color: var(--us-muted); margin: 0 0 10px; font-size: 14px; }
.us-help { display: block; color: var(--us-muted); font-size: 12.5px; margin: -4px 0 8px; }
.us-note { background: #fff8e8; color: #6b4a00; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }

label { display: block; font-weight: bold; font-size: 13px; margin: 8px 0 4px; color: #3b3f4a; }
/* 16px inputs keep phones from zooming in. */
.us-input {
  width: 100%; box-sizing: border-box; font-size: 16px; padding: 9px 11px; min-height: 42px;
  border: 1px solid #c9ccd6; border-radius: 9px; margin-bottom: 6px; background: #fff; color: var(--us-ink);
}
.us-input:focus { outline: 3px solid rgba(0, 113, 179, .3); border-color: var(--us-blue); }
.us-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 4px; text-transform: uppercase; font-size: 18px; }

.us-btn {
  display: inline-block; background: var(--us-blue); color: #fff; border: 0; border-radius: 9px; font-size: 15px; font-weight: bold;
  padding: 10px 18px; min-height: 42px; cursor: pointer; margin-top: 8px;
}
.us-btn:hover { background: var(--us-blue-dark); }
.us-btn:focus-visible, .us-link:focus-visible, .us-tabs button:focus-visible, .us-small-btn:focus-visible,
.us-fold > summary:focus-visible, .us-more > summary:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }
.us-btn[disabled] { opacity: .6; cursor: default; }
.us-link { background: none; border: 0; color: var(--us-blue); font-size: 14px; padding: 8px 0; cursor: pointer; text-decoration: underline; min-height: 40px; }
.us-small-btn {
  background: #fff; border: 1px solid #c9ccd6; color: var(--us-ink); border-radius: 8px; padding: 5px 11px; font-size: 13px;
  min-height: 34px; cursor: pointer; margin: 2px 0 2px 6px;
}
.us-small-btn:hover { background: #f4f5fa; }
.us-small-btn.danger { color: #b3261e; border-color: #ecb5b0; }
.us-small-btn.danger:hover { background: #fdf1f0; }
.us-header-btn { margin-left: auto; background: transparent; color: #fff; border: 1px solid #cfcfcf; border-radius: 8px; padding: 7px 13px; cursor: pointer; font-size: 13px; }

.us-error { background: #fdecea; color: #8a1c14; border-radius: 9px; padding: 9px 12px; margin: 8px 0; font-size: 14px; }
.us-ok { background: #e8f5e9; color: #1b5e20; border-radius: 9px; padding: 9px 12px; margin: 8px 0; font-size: 14px; }
.us-welcome { margin: 0 0 14px; padding: 12px 16px; font-size: 15px; border: 1px solid #bfe3c3; }
.us-welcome .us-welcome-title { font-size: 18px; font-weight: bold; display: block; margin-bottom: 2px; }

/* Sign in / register tabs */
.us-tabs { display: flex; gap: 6px; margin-bottom: -1px; }
.us-tabs button {
  flex: 1; padding: 11px; font-size: 14px; font-weight: bold; border: 1px solid var(--us-line); border-bottom: 0;
  border-radius: 12px 12px 0 0; background: #eceef4; color: var(--us-muted); cursor: pointer; min-height: 42px;
}
.us-tabs button[aria-selected="true"] { background: #fff; color: var(--us-blue); }
.us-tabs + .us-card, .us-tabs ~ .us-card { border-top-left-radius: 0; border-top-right-radius: 0; }

.us-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.us-row .us-btn { margin: 0 0 6px; }
.us-row-2 { grid-template-columns: 1fr auto; }
@media (max-width: 600px) { .us-row { grid-template-columns: 1fr; } .us-row .us-btn { width: 100%; } }

.us-code-box { margin-top: 12px; border: 2px dashed var(--us-blue); border-radius: 12px; padding: 14px; text-align: center; background: #f3f9fd; font-size: 14px; }
.us-code-big { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 32px; letter-spacing: 8px; font-weight: bold; color: var(--us-ink); margin: 4px 0; }

/* ─── Greeting and the team I lead ───────────────────────────────────────── */
.us-hero { margin: 4px 2px 14px; }
.us-hello { font-size: 22px; font-weight: bold; margin: 0; color: var(--us-ink); }
.us-hero-sub { color: var(--us-muted); margin: 2px 0 12px; font-size: 14px; }
.us-team-banner {
  background: linear-gradient(135deg, var(--us-lead-1), var(--us-lead-2)); color: #fff;
  border-radius: 16px; padding: 16px 18px; box-shadow: 0 6px 18px rgba(75, 63, 143, .25);
}
.us-team-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.us-team-name { display: block; font-size: 24px; font-weight: bold; line-height: 1.2; margin: 2px 0 10px; }
.us-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.us-stat { background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.us-stat b { font-size: 16px; margin-right: 3px; }

/* ─── Team colors (teams I serve on) ─────────────────────────────────────── */
.us-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.us-team-box {
  background: var(--t-bg); color: var(--t-fg); border: 1px solid var(--t-bd);
  border-left: 6px solid var(--t-fg); border-radius: 12px; padding: 12px 14px;
}
.us-team-box .us-team-box-name { font-weight: bold; font-size: 16px; display: block; }
.us-team-box .us-team-box-meta { font-size: 12.5px; opacity: .9; }
.us-tag { display: inline-block; background: var(--t-bg); color: var(--t-fg); border: 1px solid var(--t-bd); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: bold; }
.us-tag-lead { --t-bg: var(--us-lead-soft); --t-fg: var(--us-lead-1); --t-bd: #cfc8f1; }

/* ─── Collapsible sections ───────────────────────────────────────────────── */
.us-fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 28px;
  font-weight: bold; font-size: 15px; color: var(--us-ink);
}
.us-fold > summary::-webkit-details-marker { display: none; }
.us-fold > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #8a8fa0; border-bottom: 2px solid #8a8fa0; transform: rotate(45deg); transition: transform .15s; }
.us-fold[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.us-fold[open] > summary { margin-bottom: 10px; }
.us-count { background: #eceef4; color: var(--us-muted); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: bold; }
.us-count:empty { display: none; }
.us-fold-inline { background: #f4f9fd; border: 1px solid #d3e7f4; border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
.us-fold-inline > summary { color: var(--us-blue); font-size: 14px; }
.us-plus { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--us-blue); color: #fff; font-size: 16px; line-height: 1; }
.us-more { margin: 4px 0; }
.us-more > summary { cursor: pointer; color: var(--us-blue); font-size: 13.5px; font-weight: bold; padding: 6px 0; min-height: 32px; }

/* ─── Lists ──────────────────────────────────────────────────────────────── */
.us-list { list-style: none; margin: 0; padding: 0; }
.us-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 0; border-bottom: 1px solid #eff0f5; }
.us-list li:last-child { border-bottom: 0; }
.us-list .us-name { font-weight: bold; font-size: 14.5px; }
.us-list .us-meta { color: var(--us-muted); font-size: 12.5px; }
.us-mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; font-weight: bold; }
.us-badge { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: #eee; color: #444; margin-left: 6px; font-weight: bold; }
.us-badge.off { background: #fdecea; color: #8a1c14; }
.us-badge.exp, .us-badge.pend { background: #fff4e5; color: #8a5300; }

/* Roles */
.us-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.us-chips li { display: inline-flex; align-items: center; gap: 2px; background: var(--us-lead-soft); color: var(--us-lead-1); border-radius: 999px; padding: 2px 2px 2px 12px; font-size: 13.5px; font-weight: bold; }
.us-chip-x { background: transparent; border: 0; color: inherit; opacity: .7; font-size: 17px; line-height: 1; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.us-chip-x:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.us-chip-x:focus-visible { outline: 3px solid #f0a500; }

/* Shifts */
.us-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.us-grid .us-span { grid-column: 1 / -1; }
@media (max-width: 600px) { .us-grid { grid-template-columns: 1fr; } }
.us-day { font-weight: bold; font-size: 13px; margin: 12px 0 4px; color: var(--us-muted); text-transform: uppercase; letter-spacing: .4px; }
.us-day:first-child { margin-top: 0; }
.us-shifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.us-shift {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--us-line); border-left: 5px solid var(--t-fg, var(--us-lead-1)); border-radius: 10px; padding: 8px 10px;
}
.us-shift > div { flex: 1; min-width: 0; }
.us-shift > button { flex-shrink: 0; }
.us-shift-main { font-weight: bold; font-size: 14.5px; }
.us-shift-time { color: var(--us-blue); font-weight: bold; margin-right: 4px; }
.us-shift-meta { color: var(--us-muted); font-size: 12.5px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.us-shift-meta > span:not(.us-tag) + span:not(.us-tag)::before { content: '·'; margin-right: 8px; }

/* ─── Role colors ────────────────────────────────────────────────────────── */
.us-chips li { background: var(--r-bg, var(--us-lead-soft)); color: var(--r-fg, var(--us-lead-1)); border: 1px solid var(--r-bd, transparent); }
.us-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; font-size: 12.5px; color: var(--us-muted); }
.us-legend:empty { display: none; }
.us-legend span { display: inline-flex; align-items: center; gap: 5px; }
.us-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--r-fg); display: inline-block; }

/* ─── View switch ────────────────────────────────────────────────────────── */
.us-view-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 0 8px; }
.us-filter { margin: 0; }
.us-seg { display: inline-flex; background: #eceef4; border-radius: 10px; padding: 3px; }
.us-seg button { border: 0; background: transparent; color: var(--us-muted); font-weight: bold; font-size: 13px; padding: 6px 12px; border-radius: 8px; cursor: pointer; min-height: 32px; }
.us-seg button[aria-pressed="true"] { background: #fff; color: var(--us-ink); box-shadow: 0 1px 2px rgba(20, 24, 40, .12); }
.us-seg button:focus-visible, .us-icon-btn:focus-visible, .us-cal-cell:focus-visible, .us-x:focus-visible { outline: 3px solid #f0a500; outline-offset: 1px; }

/* ─── Month calendar ─────────────────────────────────────────────────────── */
.us-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.us-cal-title { flex: 1; text-align: center; font-size: 15px; margin: 0; }
.us-icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #c9ccd6; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--us-ink); }
.us-icon-btn:hover { background: #f4f5fa; }
.us-cal-head .us-small-btn { margin: 0; }
.us-cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.us-cal th { font-size: 11px; color: var(--us-muted); font-weight: bold; text-transform: uppercase; padding: 2px 0; }
.us-cal td { vertical-align: top; padding: 0; }
.us-cal-cell {
  display: block; width: 100%; min-height: 64px; text-align: left; background: #fff; border: 1px solid var(--us-line);
  border-radius: 8px; padding: 3px; cursor: pointer; font: inherit; color: inherit;
}
.us-cal-cell:hover { border-color: #b9bed0; }
.us-cal-cell.out { background: #f8f9fc; color: #a3a8b6; }
.us-cal-cell.past { background: #fafbfd; }
.us-cal-cell.today .us-cal-num { background: var(--us-blue); color: #fff; }
.us-cal-cell[aria-pressed="true"] { border-color: var(--us-lead-1); box-shadow: 0 0 0 2px rgba(75, 63, 143, .25); }
.us-cal-num { display: inline-block; min-width: 20px; padding: 0 4px; border-radius: 10px; font-size: 12px; font-weight: bold; text-align: center; margin-bottom: 2px; }
.us-blk {
  display: block; background: var(--r-bg); color: var(--r-fg); border-left: 3px solid var(--r-fg);
  border-radius: 4px; padding: 1px 4px; margin-top: 2px; font-size: 11px; line-height: 1.3;
  overflow-wrap: anywhere;   /* wrap so the day grows to fit everyone */
}
.us-blk .us-blk-time { display: block; font-size: 10px; opacity: .85; }
.us-blk b { font-weight: bold; }
.us-blk.pend { border-left-style: dashed; }
.us-cal-day { margin-top: 10px; border-top: 1px solid var(--us-line); padding-top: 10px; }
.us-cal-day h4 { margin: 0 0 6px; font-size: 14px; }
.us-cal-day .us-shift { border-left-color: var(--r-fg); }
@media (max-width: 600px) {
  .us-cal { border-spacing: 2px; }
  .us-cal-cell { min-height: 54px; padding: 2px; }
  .us-blk { font-size: 10px; padding: 1px 3px; }
  .us-blk .us-blk-role, .us-blk .us-blk-time { display: none; }   /* role = the block's color; time in the day detail */
  .us-blk { font-weight: bold; }
}

/* ─── Matrix by role ─────────────────────────────────────────────────────── */
.us-matrix-wrap { overflow-x: auto; border: 1px solid var(--us-line); border-radius: 10px; }
.us-matrix { border-collapse: collapse; width: 100%; font-size: 13px; }
.us-matrix th, .us-matrix td { border-bottom: 1px solid var(--us-line); border-right: 1px solid #f0f1f5; padding: 6px; vertical-align: top; text-align: left; }
.us-matrix thead th { background: #f6f7fb; font-size: 12.5px; white-space: nowrap; }
.us-matrix thead th small { display: block; color: var(--us-muted); font-weight: normal; font-size: 11px; text-transform: capitalize; }
.us-matrix thead th.corner { position: sticky; left: 0; z-index: 2; color: var(--us-muted); font-size: 11px; text-transform: uppercase; }
/* Role names stay in view while the days scroll sideways. */
.us-matrix tbody th.role {
  position: sticky; left: 0; z-index: 1; background: var(--r-bg); color: var(--r-fg); border-left: 4px solid var(--r-fg);
  font-size: 12.5px; min-width: 96px; max-width: 140px; box-shadow: 1px 0 0 var(--us-line); vertical-align: middle;
}
.us-matrix td { min-width: 118px; }
.us-matrix td.gap { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #fafafc 6px, #fafafc 12px); color: #b5b9c6; text-align: center; vertical-align: middle; }
.us-matrix tr:last-child th, .us-matrix tr:last-child td { border-bottom: 0; }
.us-cellp { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; background: var(--r-bg); color: var(--r-fg); border-radius: 6px; padding: 3px 4px 3px 7px; margin-bottom: 3px; }
.us-cellp:last-child { margin-bottom: 0; }
.us-cellp .n { font-weight: bold; color: var(--us-ink); display: block; }
.us-cellp .m { font-size: 11px; display: block; }
.us-x { flex-shrink: 0; border: 0; background: transparent; color: inherit; opacity: .6; width: 26px; height: 26px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; }
.us-x:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

/* ─── Matrix: sedes, past dates, new days, inline assign ─────────────────── */
.us-matrix thead th.corner { min-width: 96px; vertical-align: middle; }
.us-matrix .corner-in { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.us-matrix thead th.day { text-align: center; }
.us-matrix thead th.day.today { color: var(--us-blue); }
.us-matrix thead th.sede { font-size: 11px; font-weight: bold; color: var(--us-muted); text-align: center; background: #fbfbfd; }
.us-matrix.split th.day, .us-matrix.split th.sede.first, .us-matrix.split td.first { border-left: 2px solid #dfe2ea; }
.us-matrix .past { background: #f6f7f9; color: #8a8fa0; }
.us-matrix td.past .us-cellp { opacity: .75; }
.us-matrix td.gap { vertical-align: middle; text-align: center; }
.us-matrix td.gap.past { background: #f6f7f9; }
.us-matrix .dash { color: #b5b9c6; }
.us-matrix th.addcol, .us-matrix td.addcol { min-width: 48px; width: 48px; text-align: center; vertical-align: middle; background: #fbfbfd; border-right: 0; }
.us-eye, .us-addday {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c9ccd6; background: #fff; color: var(--us-muted);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; padding: 0;
}
.us-eye[aria-pressed="true"] { color: var(--us-blue); border-color: #9cc7e4; background: #eef6fc; }
.us-addday { width: 34px; height: 34px; border-radius: 50%; background: var(--us-blue); border-color: var(--us-blue); color: #fff; font-size: 20px; line-height: 1; }
.us-addday:hover { background: var(--us-blue-dark); }
.us-eye:focus-visible, .us-addday:focus-visible, .us-assign:focus-visible { outline: 3px solid #f0a500; outline-offset: 1px; }
.us-assign {
  border: 1px dashed #b9bed0; background: transparent; color: var(--us-blue); font-size: 12px; font-weight: bold;
  border-radius: 6px; padding: 4px 8px; min-height: 30px; cursor: pointer; width: 100%;
}
.us-assign:hover { background: #f1f7fc; border-color: var(--us-blue); }
.us-assign.more { width: auto; min-height: 26px; padding: 0 9px; margin-top: 2px; border-style: dotted; }
.us-mx-hint { margin-bottom: 8px; }
.us-mx-note { margin: 6px 0 0; }

.us-pop {
  position: absolute; z-index: 50; width: 260px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #d6d9e2;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 24, 40, .18); padding: 12px; font-size: 14px;
}
.us-pop label { margin-top: 4px; }
.us-pop-title { margin: 0 0 6px; font-size: 13px; color: var(--us-muted); }
.us-pop-actions { display: flex; justify-content: flex-end; gap: 6px; align-items: center; margin-top: 6px; }
.us-pop-actions .us-btn { margin: 0; padding: 8px 14px; min-height: 36px; font-size: 14px; }
.us-pop-actions .us-small-btn { margin: 0; }
.us-pop-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.us-pop-set { border: 0; margin: 0; padding: 0; }
.us-pop-set legend { font-weight: bold; font-size: 13px; margin-bottom: 4px; }
.us-check { display: flex; align-items: center; gap: 8px; font-weight: normal; font-size: 14px; margin: 0; min-height: 36px; cursor: pointer; }
.us-check input { width: 18px; height: 18px; }

/* Sticky first column: separate borders (Chrome paints sticky cells badly with collapsed
   borders) and a fixed width so nothing shows through while the days scroll. */
.us-matrix { border-collapse: separate; border-spacing: 0; }
.us-matrix thead th.corner, .us-matrix tbody th.role { width: 118px; min-width: 118px; max-width: 118px; white-space: normal; }
.us-matrix thead th.corner { background: #f6f7fb; }
.us-matrix tbody th.role { background-clip: padding-box; }

.us-count.pend { background: #fff4e5; color: #8a5300; }
.us-subhead { font-size: 14px; margin: 14px 0 2px; padding-top: 12px; border-top: 1px solid var(--us-line); color: var(--us-ink); }

/* Same-day warning (assign anyway) */
.us-warn { background: #fff6e0; color: #6b4a00; border: 1px solid #f1d38f; border-radius: 9px; padding: 9px 12px; margin: 8px 0; font-size: 13.5px; }
.us-warn p { margin: 0 0 8px; }
.us-warn .us-small-btn { margin: 0; border-color: #e0b85c; font-weight: bold; }
/* Person cards in the matrix: a stripe in the person's color */
.us-cellp { border-left: 3px solid var(--r-fg); }

/* In the matrix, color means the person: role rows are neutral with a small role marker. */
.us-matrix tbody th.role { background: #fafbfd; color: var(--us-ink); border-left: 0; }
.us-matrix tbody th.role::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--r-fg); margin-right: 6px; vertical-align: 1px; }

/* Sign in: email first, then password or a code by email */
.us-email-row { display: flex; align-items: center; gap: 10px; }
.us-email-row .us-input { flex: 1; min-width: 0; }
.us-email-row .us-input[readonly] { background: #f4f5f8; color: #444; }
.us-email-row .us-link { margin: 0 0 12px; flex-shrink: 0; }
.us-choice { display: grid; gap: 8px; margin-top: 4px; }
.us-choice .us-muted { margin: 0 0 2px; }
.us-choice .us-btn { width: 100%; margin: 0; }
.us-btn-alt { background: #fff; color: var(--us-blue); border: 2px solid var(--us-blue); }
.us-btn-alt:hover { background: #eef6fc; color: var(--us-blue-dark); }
.us-code-input { font-size: 26px; letter-spacing: 12px; text-align: center; font-variant-numeric: tabular-nums; max-width: 220px; }
.us-code-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
/* .us-btn / .us-link set their own display, which would beat the hidden attribute */
#signInForm [hidden] { display: none !important; }
/* Joining: the name row only for accounts without a name on file */
#joinForm [hidden] { display: none !important; }
/* A team of another church shows the church's name */
.us-team-box .us-team-box-church { display: block; font-size: 12.5px; font-weight: bold; opacity: .85; margin-top: 1px; }
/* "Mis turnos": who else on the team serves that day */
.us-crew { margin-top: 6px; font-size: 13px; }
.us-crew summary { cursor: pointer; color: var(--us-blue); font-weight: bold; font-size: 12.5px; padding: 4px 0; min-height: 24px; }
.us-crew summary:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; border-radius: 4px; }
.us-crew ul { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; gap: 3px; }
.us-crew li { color: var(--us-ink); }
.us-crew-role { font-weight: bold; }
.us-crew-meta { color: var(--us-muted); }
.us-crew-none { margin: 6px 0 0; font-size: 12.5px; color: var(--us-muted); }
/* Scheduler mode */
.us-sched-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #eef4ff; color: #1f3f7a; font-size: 14px; }
.us-sched-bar[hidden] { display: none; }
.us-sched-btn { margin-top: 8px; }
.us-sched-toggle[aria-pressed="true"] { background: #e6f6ef; border-color: #a9dfc6; color: #0d6b4b; font-weight: bold; }
/* Shifts that need a replacement */
.us-needrep-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #7a1a12; font-size: 13.5px; }
.us-needrep-banner[hidden] { display: none; }
.us-needrep-banner ul { margin: 6px 0; padding-left: 18px; }
.us-needrep-banner small { color: #7a1a12; }
.us-cellp.needrep { background: #fdecea; border-left-color: #b3261e; }
.us-cellp.needrep .m { color: #b3261e; font-weight: bold; }
/* Blocked days and replacements */
.us-optional { font-weight: normal; color: var(--us-muted); }
.us-replace { display: grid; gap: 10px; }
.us-replace .us-help { margin: 0; }
.us-replace-row label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: normal; }
.us-replace-row .us-input { margin-bottom: 0; }
/* Blocked dates: each range in its own block */
.us-blocks { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 8px; }
.us-block {
  display: flex; align-items: center; gap: 12px;
  background: #fff7f5; border: 1px solid #f3d3cc; border-left: 4px solid #d0573f; border-radius: 12px; padding: 10px 12px;
}
.us-block-badge {
  flex-shrink: 0; width: 46px; padding: 4px 0 5px; border-radius: 9px; background: #fff; border: 1px solid #f0c9bf;
  text-align: center; color: #a3402c; font-size: 11px; font-weight: bold; text-transform: uppercase; line-height: 1.1;
}
.us-block-badge b { display: block; font-size: 19px; color: #1d2b36; }
.us-block-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.us-block-dates { font-weight: bold; font-size: 14.5px; color: #1d2b36; }
.us-block-dates::first-letter { text-transform: uppercase; }
.us-block-meta { font-size: 12.5px; color: #6b4a42; overflow-wrap: anywhere; }
.us-block-x { flex-shrink: 0; margin: 0; background: #fff; }
@media (max-width: 420px) {
  .us-block { gap: 10px; padding: 9px 10px; }
  .us-block-badge { width: 40px; }
  .us-block-badge b { font-size: 17px; }
}
.us-blocks-panel { background: #fbf8f7; border: 1px solid #efe6e3; border-radius: 14px; padding: 12px; margin: 6px 0 18px; }
.us-blocks-panel .us-blocks { margin: 0; }
.us-blocks-title { font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: .4px; color: var(--us-muted); margin: 0 0 8px; }
.us-blocks-empty { margin: 4px 0 16px; }
