/* Team supply: roles with a job, a matched glove, pairs per week, people per size (histogram steppers); supply plan. */
.cband { background: radial-gradient(900px 380px at 80% 0, #4d0206, transparent 70%), var(--blue-ink); padding: 44px 0 40px; }
.cband .crumbs { color: var(--muted-d); padding: 0 0 18px; }
.cband h1 { font-size: clamp(42px, 6vw, 84px); }
.cband .lede { color: #c9cedb; margin-top: 14px; max-width: 60ch; }
.cband__tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.crew { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 28px; padding-bottom: 90px; align-items: start; }
.roles { display: grid; gap: 16px; min-width: 0; }
.role { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.role > *, .role__glove > *, .role__head > * { min-width: 0; }
.role { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px; }
.role__head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.role__name { font: 800 28px/1 var(--display); text-transform: uppercase; border: 0; border-bottom: 2px dashed transparent; background: none; padding: 2px 0; width: 100%; min-width: 0; }
.role__name:hover, .role__name:focus { border-bottom-color: var(--line); outline: 0; }
.role select, .crew select { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 10px; background: #fff; font: 600 14.5px var(--body); max-width: 100%; }
.role__glove { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: 12px; background: var(--paper); }
.role__glove img { width: 110px; height: 110px; object-fit: contain; }
.role__glove b { font: 800 20px/1 var(--display); text-transform: uppercase; display: block; margin-bottom: 6px; }
.role__glove .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.why { font-size: 13.5px; color: var(--muted); }
.why b { font: inherit; display: inline; text-transform: none; color: var(--ink); font-weight: 700; }
.histo { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(40px, 1fr); gap: 5px; overflow-x: auto; padding-top: 18px; scrollbar-width: thin; }
.hcol { display: grid; grid-template-rows: 90px auto auto; gap: 5px; justify-items: center; }
.hbar { align-self: end; width: 100%; border-radius: 5px 5px 2px 2px; background: #e6e9f0; position: relative; cursor: pointer; transition: height .35s var(--ease-out), background var(--dur) var(--ease); min-height: 6px; }
.hbar.has { background: linear-gradient(0deg, var(--blue-2), var(--orange)); }
.hbar b { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font: 800 13px/1 var(--display); }
.hcol.out .hbar { background: repeating-linear-gradient(135deg, #eceef3 0 5px, #fff 5px 8px); cursor: not-allowed; }
.hcol.out.bad .hbar { background: repeating-linear-gradient(135deg, #ffd9d6 0 5px, #fff 5px 8px); }
.hcol > span { font: 700 13px/1 var(--display); color: var(--muted); }
.hcol .pm { display: flex; }
.hcol .pm button { width: 20px; height: 22px; border-radius: 5px; font-size: 15px; line-height: 1; color: var(--muted); }
.hcol .pm button:hover { background: var(--paper); color: var(--ink); }
.role__foot { display: flex; gap: 10px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.role__foot b { color: var(--ink); font-family: var(--display); font-size: 18px; }
.paste { display: flex; gap: 8px; flex: 1; min-width: min(240px, 100%); }
.paste input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; }
.role__use { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; }
.stepper button { width: 36px; height: 36px; font-size: 18px; }
.stepper output { min-width: 28px; text-align: center; font: 800 18px/1 var(--display); color: var(--ink); }
.split { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.split input { width: 90px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 10px; }
.every { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.every button { height: 38px; border-radius: 9px; font: 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted-d); }
.every button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.board__kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.board__kpi div { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.board__kpi dt { font: 800 24px/1 var(--display); }
.board__kpi dd { margin: 4px 0 0; font-size: 12.5px; color: var(--muted-d); }
.board__note { margin: 0; font-size: 12.5px; color: var(--muted-d); }
@media (max-width: 47.99em) { .split { margin-left: 0; } }
.add-role { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px; border-radius: var(--r-lg); border: 2px dashed #cfd3dd; }
.add-role span { font: 800 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.board { position: sticky; top: calc(var(--head-h) + 16px); background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.board h2 { font-size: 30px; }
.board__rows { display: grid; gap: 8px; font-size: 14px; }
.board__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-d); }
.board__row small { display: block; color: var(--muted-d); }
.board__row b { font: 700 16px/1.2 var(--display); }
.board__tot { display: flex; justify-content: space-between; align-items: baseline; }
.board__tot b { font: 900 38px/1 var(--display); }
.board .opts { display: grid; gap: 8px; font-size: 14px; }
.board .opts label { display: flex; gap: 10px; align-items: center; }
.board .opts input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); }
.board .opts input[type="text"] { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 12px; }
.board__warn { background: rgba(225, 6, 0, .16); border: 1px solid rgba(225, 6, 0, .5); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
@media (max-width: 63.99em) { .crew { grid-template-columns: minmax(0, 1fr); } .board { position: static; } .role__glove { grid-template-columns: 84px minmax(0, 1fr); } .role__glove img { width: 84px; height: 84px; } .role__head { grid-template-columns: minmax(0, 1fr) auto; } .role__job { grid-column: 1 / -1; grid-row: 2; } .role__job select { width: 100%; } .role__glove select { max-width: 100%; } }
.role__glove .row > label { flex: 1 1 200px; min-width: 0; max-width: 360px; }
.role__glove .row select { width: 100%; }

/* ---------- pickers: the job and the glove (crew.js), a button and an animated listbox ---------- */
.pick { position: relative; }
.pick__btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 700 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.pick__btn:hover { border-color: rgba(10, 12, 20, .32); }
.pick.is-open .pick__btn { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 12, 20, .06); }
.pick__chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease-out); }
.pick.is-open .pick__chev { transform: rotate(180deg); }
.pick__list { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: max-content; min-width: 100%; max-width: min(92vw, 400px); max-height: min(60vh, 440px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(10, 12, 20, .08), 0 24px 60px rgba(10, 12, 20, .22); scrollbar-width: thin;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: 85% 0; transition: opacity .18s var(--ease), transform .3s var(--ease-out), visibility 0s linear .3s; }
.pick.is-open .pick__list { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .5s var(--ease-out), visibility 0s; }
.pick__list:focus { outline: none; }
.pick__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; opacity: 0; transform: translateY(-6px); transition: background .15s var(--ease), opacity .25s var(--ease), transform .45s var(--ease-out); }
.pick.is-open .pick__list li { opacity: 1; transform: none; transition-delay: 0s, calc(var(--k) * 22ms), calc(var(--k) * 22ms); }
.pick__list li.is-active { background: var(--paper); }
.pick__list li[aria-selected="true"] { background: rgba(229, 39, 19, .06); }
.pick__list li[aria-selected="true"].is-active { background: rgba(229, 39, 19, .1); }
.pick__list li:focus-visible, .pick__list:focus-visible li.is-active { box-shadow: inset 0 0 0 2px var(--orange); }
.pick__txt { display: grid; gap: 4px; flex: 1; min-width: 0; }
.pick__txt b { display: flex; align-items: center; gap: 8px; font: 800 16px/1.05 var(--display); text-transform: uppercase; }
.pick__txt em { font: 800 10.5px/1 var(--display); font-style: normal; letter-spacing: .1em; padding: 4px 6px 3px; border-radius: 4px; background: var(--orange); color: #fff; }
.pick__txt small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick__list img { width: 56px; height: 44px; flex: none; object-fit: contain; border-radius: 8px; background: var(--paper); }
.pick__price { display: grid; justify-items: end; gap: 3px; flex: none; }
.pick__price b { font: 800 18px/1 var(--display); }
.pick__price small { font-size: 11.5px; color: var(--muted); }
.pick__tick { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .2s var(--ease), transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.pick__list li[aria-selected="true"] .pick__tick { opacity: 1; transform: none; }
/* the glove list opens under the whole glove panel, full width */
.role__glove { position: relative; }
.pick--glove { position: static; }
.pick--glove .pick__btn { height: 38px; font-size: 14px; }
.pick--glove .pick__list { left: 0; right: 0; top: calc(100% + 8px); width: auto; max-width: none; transform-origin: 50% 0; }
.role:has(.pick.is-open) { position: relative; z-index: 5; }
@media (max-width: 63.99em) { .role__job .pick__btn { width: 100%; } .pick--job .pick__list { left: 0; right: 0; width: auto; max-width: none; } }

/* ---------- arrivals and changes ---------- */
.role.is-new { animation: role-in .6s var(--ease-out) backwards; }
@keyframes role-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.role__glove.is-new > a img { animation: glove-in .7s var(--ease-out) backwards; }
.role__glove.is-new > div > b, .role__glove.is-new .codes, .role__glove.is-new .price { animation: text-in .5s .08s var(--ease-out) backwards; }
@keyframes glove-in { from { opacity: 0; transform: translateX(-18px) rotate(-8deg) scale(.9); } }
@keyframes text-in { from { opacity: 0; transform: translateY(8px); } }
.every { position: relative; }
.every::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 9px; background: #fff; transition: transform .5s var(--ease-out); }
.every:has([data-every="quarter"][aria-pressed="true"])::before { transform: translateX(calc(100% + 4px)); }
.every.was-month::before { transform: none !important; transition: none; }
.every.was-quarter::before { transform: translateX(calc(100% + 4px)) !important; transition: none; }
.every button { position: relative; z-index: 1; transition: color .35s var(--ease); }
.every button[aria-pressed="true"] { background: none; }
.board__tot b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .pick__list, .pick__list li { transition: none !important; transform: none !important; } }
