/* THE CREW'S JOB PAGE AS ONE CHECKLIST (D52/D58, Chase, 30 Oct 2026: crew-day mockup A2–A4). "Step 3 of 6" and a thin
   bar; the steps behind the crew are green lines; the step to do is open with its one big button; the rest are folded
   rows under "Then". On the app's own tokens; the photo tiles and the fold chevrons are crew_deck.css's. Nothing here is
   fixed or floats. */

.cl { margin-top: 1rem; scroll-margin-top: 4.5rem; }

/* ---- the one counter, with its thin bar ---- */
.cl-counter { display: flex; align-items: center; gap: 0.75rem; margin: 0 0.125rem 0.75rem; }
.cl-counter b { font-size: 15px; white-space: nowrap; color: var(--color-ink, #1f1a14); }
.cl-segs { display: flex; flex: 1; gap: 4px; }
.cl-segs i { flex: 1; height: 6px; border-radius: 999px; background: var(--color-line, #e6e1d8); }
.cl-segs i.sd { background: var(--color-good, #15803d); }
.cl-segs i.sc { background: var(--color-warn, #d9892b); }

/* ---- a step behind the crew: one green line ---- */
.cl-donestep, .cl-group { margin-top: 0.5rem; border-radius: 14px; background: var(--color-good-soft, #eef8f1); border: 1px solid #cfe6d6; overflow: hidden; }
.cl-donestep:first-child, .cl-counter + .cl-donestep, .cl-counter + .cl-group { margin-top: 0; }
.cl-done { list-style: none; display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.5rem 0.875rem; cursor: pointer; }
.cl-done::-webkit-details-marker { display: none; }
.cl-tk { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--color-good, #15803d); color: #fff; }
.cl-tk svg { width: 16px; height: 16px; }
.cl-tk-past { background: var(--color-line-strong, #d3ccc0); color: var(--color-muted, #6b6259); font-weight: 700; }
.cl-dt { display: block; min-width: 0; flex: 1; }
.cl-dt b { display: block; font-weight: 700; font-size: 16px; line-height: 20px; color: var(--color-good-ink, #166534); }
.cl-dt small { display: block; font-size: 13px; line-height: 18px; color: #3d6b4b; }
.cl-tm { display: inline-flex; flex: none; align-items: center; gap: 0.375rem; margin-left: auto; font-size: 13px; font-weight: 600; color: #3d6b4b; white-space: nowrap; }
.cl-donestep[open] > summary .kd-chev, .cl-group[open] > summary .kd-chev { transform: rotate(180deg); }
.cl-done-body, .cl-group-body { padding: 0.5rem 0.875rem 0.875rem; background: #fff; border-top: 1px solid #d9ecdf; }
.cl-group-body { padding: 0; border-top: 1px solid #d9ecdf; }
.cl-group-body .cl-donestep { margin: 0; border: 0; border-radius: 0; border-top: 1px solid #d9ecdf; }
.cl-group-body .cl-donestep:first-child { border-top: 0; }

/* ---- the step to do now ---- */
/* The next step slides in from the right: never a sideways scroll on a phone while it does. */
.cl-stage { margin-top: 0.75rem; overflow-x: clip; overflow-clip-margin: 1rem; }
.cl-now { position: relative; background: #fff; border: 2px solid var(--color-accent, #b45309); border-radius: 18px; padding: 0.875rem 1rem 1rem;
          box-shadow: 0 0 0 5px var(--color-accent-soft, #fdf1e1), 0 12px 26px -16px rgb(31 26 20 / 0.4); }
.cl-now.cl-signed { border-color: #bfe3c9; background: #f3fbf5; box-shadow: none; }
.cl-now[data-entering] { animation: kd-enter 0.35s ease-out; }
@media (prefers-reduced-motion: reduce) { .cl-now[data-entering] { animation: none; } }
.cl-hd { display: flex; align-items: center; gap: 0.75rem; }
.cl-nb { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--color-accent, #b45309); color: #fff; font-weight: 700; font-size: 15px; }
.cl-title { margin: 0; min-width: 0; font-size: 1.3rem; line-height: 1.6rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink, #1f1a14); }
.cl-chip { display: inline-flex; flex: none; align-items: center; height: 28px; margin-left: auto; padding: 0 0.7rem; border-radius: 999px; background: var(--color-accent-soft, #fff5df);
           box-shadow: inset 0 0 0 1px #efc58f; color: #7a4a05; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cl-bd { margin-top: 0.75rem; }
.cl-status { margin: 0.5rem 0 0; font-size: 14px; }
.cl-warn { margin: 0.5rem 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--color-muted, #6b6259); }
.cl-h3 { margin: 1rem 0 0; font-size: 16px; font-weight: 700; color: var(--color-ink, #1f1a14); }

/* ---- Then: the rest, folded ---- */
.cl-later { margin-top: 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--color-line, #e6e1d8); overflow: hidden; }
.cl-lh { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.875rem 0.625rem; }
.cl-kicker { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted, #6b6259); }
.cl-sub { font-size: 14px; color: var(--color-muted, #6b6259); }
.cl-row { border-top: 1px solid #efe9df; }
.cl-row > summary { list-style: none; display: flex; align-items: center; gap: 0.75rem; min-height: 48px; padding: 0.25rem 0.875rem; cursor: pointer; color: var(--color-muted, #6b6259); font-size: 15px; font-weight: 600; }
.cl-row > summary::-webkit-details-marker { display: none; }
.cl-row > summary .cl-nb { width: 26px; height: 26px; font-size: 13px; background: #f1eee8; color: #8a7f73; }
.cl-row > summary .cl-s { margin-left: auto; font-size: 13px; font-weight: 500; color: #8a7f73; text-align: right; }
.cl-row > summary .cl-nb.cl-nb-done { background: var(--color-good, #15803d); color: #fff; }
.cl-row-body { padding: 0.25rem 0.875rem 0.875rem; background: #fff; border-top: 1px solid #efe9df; }

/* ---- Pick up at Spurs: the load, ticked by kind (A2) ---- */
.cl-ticks { margin: 0.625rem 0 0; padding: 0; list-style: none; border: 1px solid var(--color-line, #e6e1d8); border-radius: 14px; overflow: hidden; background: #fff; }
.cl-ticks > li { border-top: 1px solid #efe9df; }
.cl-ticks > li:first-child { border-top: 0; }
.cl-tickrow { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 56px; padding: 0.375rem 0.75rem; background: transparent; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cl-ticks > li.cl-short .cl-tickrow { cursor: default; background: #fff8ee; }
.cl-box { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 2.5px solid var(--color-line-strong, #d3ccc0); background: #fff; color: #fff; }
.cl-box svg { width: 18px; height: 18px; }
.cl-tickrow[aria-pressed="true"] .cl-box, .cl-ticks > li.on .cl-box { background: var(--color-good, #2f7d4a); border-color: var(--color-good, #2f7d4a); }
.cl-ticks > li.cl-short .cl-box { border-color: #e0953a; background: #fdf1e1; color: #92400e; font-weight: 700; }
.cl-tl { display: block; min-width: 0; flex: 1; }
.cl-l { display: block; font-size: 17px; line-height: 21px; font-weight: 700; color: var(--color-ink, #1f1a14); }
.cl-d { display: block; font-size: 13px; line-height: 18px; color: var(--color-muted, #6b6259); }
.cl-q { margin-left: auto; text-align: right; font-size: 20px; line-height: 22px; font-weight: 700; white-space: nowrap; }
.cl-q small { display: block; font-size: 12px; line-height: 14px; font-weight: 600; color: var(--color-muted, #6b6259); }
.cl-amber, .cl-d.cl-amber { color: #92400e; font-weight: 700; }

/* ---- On my way (A3) ---- */
.cl-omw { display: block; }
.cl-sms { margin: 0 0 0.5rem; }
.cl-lab { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #3d6b4b; }
.cl-bub { margin: 0.375rem 0 0; padding: 0.625rem 0.75rem; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid #d9ecdf; font-size: 15px; line-height: 21px; color: var(--color-ink, #1f1a14); }
.cl-meta { margin: 0.375rem 0 0; font-size: 13px; color: #3d6b4b; }
.cl-again { margin: 0.75rem 0 0.25rem; font-size: 14px; line-height: 19px; color: var(--color-muted, #6b6259); }
.cl-mins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
