/* Crew workflow: a read-only team timeline and one explicit next action. */
.crew-schedule-card:not(.practice):not(.past){display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px 12px;padding:16px;border:1px solid #e8e0e4;border-radius:16px;box-shadow:none;background:#fff}
.crew-schedule-card:not(.practice):not(.past) .crew-schedule-date{min-height:52px;padding:5px 0;border-radius:10px;background:#f8eeea}
.crew-schedule-card:not(.practice):not(.past) .crew-schedule-date strong{font-size:21px;line-height:1}
.crew-schedule-card:not(.practice):not(.past) .crew-schedule-date>span{font-size:9px}
.crew-schedule-card:not(.practice):not(.past) .crew-schedule-info{min-width:0;gap:0}
.crew-event-heading{display:flex;align-items:baseline;gap:7px;white-space:nowrap;min-width:0}
.crew-schedule-info .crew-event-heading strong{font-size:14px;font-weight:650;flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis}
.crew-event-time{font-size:12px;color:#746971;flex-shrink:0;font-variant-numeric:tabular-nums}
.crew-event-venue{font-size:12px;color:#746971;min-width:0;overflow:hidden;text-overflow:ellipsis}
.crew-flow-calendar{display:inline-block;font-size:10px;color:#8d7d86;margin-top:5px;text-decoration:underline;text-underline-offset:3px}
.attendance-flow{grid-column:1/-1;grid-row:2;padding-top:10px;border-top:1px solid #eee7eb;min-width:0}
.attendance-flow-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.attendance-flow-heading{font-size:11px;font-weight:600;color:#71606a}
.attendance-available-date{font-size:10px;color:#8b7a83;line-height:1.4;text-align:right}
.attendance-content{display:grid;gap:12px}
.attendance-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;list-style:none;min-width:0;gap:8px}
.attendance-step{position:relative;min-width:0}
.attendance-step:not(:last-child)::before{content:"";position:absolute;top:12px;left:calc(50% + 17px);width:calc(100% - 26px);height:1px;background:#e1d6dc}
.attendance-stage{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;cursor:default;background:none;border:0;padding:0}
.attendance-step-marker{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f5f1f3;color:#9c8993;font-size:10px;font-weight:600;position:relative;z-index:1}
.attendance-step-marker.complete{color:#42725a;background:#eaf3ed}
.attendance-step[data-active=true] .attendance-step-marker{background:#8a485d;color:#fff;box-shadow:0 0 0 3px #f5eaf0}
.attendance-stage strong{font-size:12px;font-weight:600;color:#66545e;white-space:nowrap}
.attendance-stage .attendance-status{font-size:10px;line-height:1.4;color:#9c8792;white-space:nowrap}
.status-confirmed .attendance-status,.status-ready .attendance-status,.status-arrived .attendance-status{color:#46765b}
.attendance-step[data-active=true] .attendance-status{color:#91485f;font-weight:600}
.status-late .attendance-status,.status-unavailable .attendance-status{color:#a23e50;font-weight:600}
.attendance-stage-members{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:5px;padding-top:10px;min-height:46px}
.attendance-person{display:flex;align-items:center;flex-direction:column;gap:3px;max-width:44px;position:relative}
.attendance-person-avatar{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#ece5e9;color:#836575;font-size:11px;background-position:center top;background-size:cover;outline:1.5px solid #fff;overflow:hidden}
.attendance-person-avatar img{width:100%;height:100%;object-fit:cover}
.attendance-person.is-me .attendance-person-avatar{outline:2px solid #a55b74;outline-offset:1px}
.attendance-person small{font-size:9px;line-height:1.2;color:#85717b;max-width:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attendance-person em{font-size:8px;font-style:normal;color:#a23e50;line-height:1}
.attendance-person.status-late .attendance-person-avatar,.attendance-person.status-unavailable .attendance-person-avatar{outline-color:#bd5968}
.attendance-team-empty{font-size:10px;color:#c6b7bf;align-self:center}
.attendance-next-action{align-self:center;min-width:0}
.attendance-primary-action{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:46px;padding:11px 15px;border:0;border-radius:10px;background:#85455a;color:#fff;font:inherit;font-size:13px;font-weight:650;cursor:pointer;box-shadow:0 3px 8px #85455a12}
.attendance-primary-action:hover{background:#743b4e}
.attendance-primary-action:focus-visible,.attendance-actions button:focus-visible{outline:3px solid #cb92a9;outline-offset:3px}
.attendance-primary-action:disabled{background:#f5f1f3;color:#99808d;box-shadow:none;cursor:default;font-size:11px}
.attendance-primary-action:disabled>span:last-child{font-size:10px;font-weight:400}
.attendance-all-complete{display:flex;justify-content:center;align-items:center;min-height:42px;background:#eff6f1;border-radius:10px;font-size:12px;color:#48725b}
.attendance-selected-actions{margin-top:10px;padding:12px;background:#faf7f9;border:1px solid #ecdee5;border-radius:10px}
.attendance-choice-label{display:block;font-size:11px;color:#78606b;margin-bottom:8px}
.attendance-actions{display:flex;gap:6px;flex-wrap:wrap}
.attendance-actions button{flex:1;min-height:44px;padding:8px 10px;border:1px solid #e0cbd5;border-radius:8px;background:#fff;color:#795364;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}
.attendance-actions button.attendance-choice-main{border-color:#97546e;background:#f5e9ef;color:#813d56;font-weight:650}
.attendance-actions button:disabled{opacity:.55;cursor:default}
.crew-schedule-card:not(.practice):not(.past)>.crew-secondary-task{grid-column:1/-1;grid-row:3;justify-self:end;width:auto;min-height:30px;background:none!important;color:#8c7a83!important;border:0;box-shadow:none;padding:2px 0;margin:0;font-size:10px}
.crew-schedule-card.past{display:flex;align-items:center;gap:10px;padding:10px 14px;min-height:0;background:#fafafa;box-shadow:none}
.crew-past-date{flex:0 0 40px;font-size:12px;color:#80747a;font-variant-numeric:tabular-nums}
.crew-past-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.crew-past-copy strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crew-past-copy small{font-size:10px;color:#80747a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crew-past-badge{font-size:10px;color:#80747a;white-space:nowrap}
.attendance-note{font-size:11px;line-height:1.5;color:#746970;margin:5px 0 0}
@media(min-width:700px){.attendance-content{grid-template-columns:minmax(0,1fr) 230px;gap:24px}.attendance-flow-head{margin-bottom:14px}.attendance-step-marker{width:26px;height:26px}.attendance-stage-members{flex-wrap:nowrap}.attendance-person-avatar{width:28px;height:28px}.attendance-person{max-width:60px}.attendance-person small{max-width:60px;font-size:10px}.crew-event-heading{gap:10px}.crew-schedule-card:not(.practice):not(.past){padding:18px 20px}}
@media(max-width:360px){.crew-schedule-card:not(.practice):not(.past){padding:13px;gap:9px}.crew-event-heading{gap:5px}.crew-schedule-info .crew-event-heading strong{font-size:12px}.crew-event-time,.crew-event-venue{font-size:11px}.attendance-stage strong{font-size:11px}.attendance-stage .attendance-status{font-size:9px}.attendance-person-avatar{width:24px;height:24px}.attendance-person small{font-size:8px}}
.attendance-admin{margin:18px 0;padding:16px;border:1px solid #e6dce0;border-radius:12px}.attendance-admin h3{font-size:15px;margin:0}.attendance-admin-member{padding:12px 0;border-top:1px solid #e6dce0}.attendance-admin-member>strong{font-size:12px}.attendance-admin-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.attendance-admin-steps>div{display:flex;flex-direction:column;gap:6px;background:#f8f5f6;padding:10px;border-radius:8px}.attendance-admin-steps small,.attendance-admin-steps span{font-size:10px;color:#746970}.attendance-admin-steps strong{font-size:12px}.attendance-admin-steps .status-late,.attendance-admin-steps .status-unavailable{background:#fff0f0;color:#983744}
@media(max-width:600px){.attendance-admin-steps{gap:4px}.attendance-admin-steps>div{padding:8px 5px}}

/* Keep the title and step marker on one line to reduce card height. */
.attendance-flow-head{margin-bottom:8px}
.attendance-content{gap:10px}
.attendance-stage{display:grid;grid-template-columns:18px auto;justify-content:center;justify-items:start;align-items:center;column-gap:5px;row-gap:4px}
.attendance-step-marker{width:18px;height:18px;font-size:9px;box-shadow:none!important}
.attendance-stage strong{font-size:11px;line-height:18px}
.attendance-stage .attendance-status{grid-column:1/-1;justify-self:center}
.attendance-step:not(:last-child)::before{top:9px;left:calc(50% + 44px);width:calc(100% - 80px)}
.attendance-stage-members{padding-top:8px;min-height:43px}
@media(min-width:700px){.attendance-stage{grid-template-columns:20px auto;column-gap:6px}.attendance-step-marker{width:20px;height:20px}.attendance-stage strong{font-size:12px}.attendance-step:not(:last-child)::before{top:10px}}
@media(max-width:360px){.attendance-stage{column-gap:4px}.attendance-stage strong{font-size:10px}}
