/* The schedule, "Coming up" on the Today tab, the jobs up for grabs, and the
   "log it" nudge above it. Owned by the calendar agent; see docs/FEATURES.md.

   A booking, not a job paid: no amount appears here anywhere. */

.event-list{display:flex;flex-direction:column;gap:8px}
.event{display:flex;gap:12px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:11px 13px;box-shadow:var(--row-bevel)}
/* Your own calls get the accent edge; today gets the filled one. Both, and
   the ordering does the rest. */
.event.mine{border-left:3px solid var(--accent)}
.event.today{border-color:rgba(240,138,92,.8);box-shadow:var(--row-bevel),0 0 16px rgba(213,107,64,.22)}
.event-when{flex:0 0 58px;text-align:right;white-space:nowrap}
.event-day{font-family:var(--mono);font-size:13px;font-weight:600;color:var(--accent)}
.event-date{font-family:var(--mono);font-size:12px;color:var(--muted)}
.event-time{font-family:var(--mono);font-size:11px;color:var(--dim)}
.event-body{min-width:0;flex:1}
.event-title{font-size:14px;font-weight:600}
.event-title.editable{cursor:pointer}
.event-meta{font-size:12px;color:var(--muted);margin-top:2px}
.event-note{font-size:12px;color:var(--dim);margin-top:4px;white-space:pre-line}
.event-source{font-size:11.5px;color:var(--dim);margin-top:4px}

/* The details: load-in and strike, who to find, what to wear, the WireFlow
   link, and the gear folded away. App only; no wall ever gets these. */
.event-details{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:6px;font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.event-times{font-family:var(--mono);font-size:12px;color:var(--text)}
.event-wireflow{color:var(--accent);font-weight:600}
.event-gear summary{cursor:pointer;color:var(--text);font-weight:600}
.event-gear-list{white-space:pre-line;margin-top:4px;padding-left:12px;color:var(--dim)}
/* Load-in and strike side by side in the form, as they are on the card. */
.ev-times{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* The spots on a job, one chip each. The one loud thing on this panel: a
   filled chair carries a name, an empty one is a dashed outline, so "is
   there room for me" is answered before any word is read. */
.slots{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:7px}
.slot{font-size:12px;font-weight:600;line-height:1;padding:5px 9px;border-radius:999px;border:1px solid transparent;white-space:nowrap}
/* A long name and role wrap inside the card rather than running off its edge. */
.slot.filled{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
.slot.open{border:1px dashed var(--dim);color:var(--dim);font-weight:500}
/* Outside crew: a filled chair, in blue, so it reads as "not one of us in the
   app" at a glance without a word. */
button.slot{font-family:inherit;cursor:pointer}
.slot-count{font-size:12px;color:var(--muted);margin-left:3px}
/* The role inside a filled chip: quieter than the name, same colour. */
.slot-role{font-weight:500;opacity:.8;margin-left:5px}

.event-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
.event-yours{font-size:12.5px;font-weight:600;color:var(--accent);margin-right:auto}

/* Up for grabs: first in the list, and the Claim button is the whole width of
   the card, because on a phone in a parking lot that is the tap that matters. */
.grabs{display:flex;flex-direction:column;gap:8px;padding-bottom:6px;margin-bottom:4px;border-bottom:1px solid var(--line)}
.grabs-head{font-size:13px;font-weight:600;color:var(--accent)}
.event.grab{border-color:rgba(203,97,55,.45);background:linear-gradient(0deg,rgba(203,97,55,.05),rgba(203,97,55,.05)),var(--panel2)}
.event.grab .slot.open{border-color:var(--accent);color:var(--accent)}
.claim-btn{flex:1 1 100%;padding:13px 16px;font-size:15px;border-radius:11px}
.claim-btn:disabled{opacity:.6;cursor:progress}

/* Struck through for the day it stays on screen, then gone. */
.event.cancelled{opacity:.6}
.event.cancelled .event-title{text-decoration:line-through;text-decoration-color:var(--red)}
.event.cancelled .slot.filled{background:transparent;border-color:var(--edge);color:var(--dim)}
.event .badge.cancelled{color:var(--red);border-color:rgba(224,87,58,.5)}
/* A date held, not booked yet. Sits after the job's name. */
.event .badge.tentative{color:var(--amber);border-color:rgba(224,162,58,.5);margin-left:7px;vertical-align:1px}

/* Owners only: the feed has stopped, so the list may be out of date. */
.feed-warn{background:rgba(224,162,58,.1);border:1px solid var(--amber);color:var(--amber);border-radius:10px;padding:10px 13px;font-size:13px;line-height:1.45}

/* "You worked X. Log it." Above the schedule, one line each. */
.nudges{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.nudges:empty{display:none}
.nudge{display:flex;align-items:center;gap:12px;background:var(--module);border:1px solid rgba(240,138,92,.7);border-radius:11px;padding:11px 13px;box-shadow:var(--bevel),0 0 22px rgba(213,107,64,.16)}
.nudge-text{flex:1;min-width:0;font-size:13.5px;line-height:1.4}
.nudge .btn{flex:none}

/* Owners putting people on a calendar job. */
.crew-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}

.event button:focus-visible,.event a:focus-visible,.event summary:focus-visible,.event-title.editable:focus-visible,.nudge button:focus-visible,.crew-toggle button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Four names on a phone: two columns of tap targets, not a row that wraps
   mid-word.
   Both rules below have to be written as `.field .ev-pick`, not `.ev-pick`.
   These picks are a <label> holding an <input>, inside a .field, so
   `.field label` (block, uppercase, a bottom margin) and `.field input`
   (width:100%) both apply and both outrank a bare class. Unscoped, the name
   came out shouting on one line with a full-width checkbox stranded above it. */
.ev-crew-picks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.field .ev-pick{display:flex;align-items:center;gap:10px;margin:0;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:11px 12px;font-size:14px;color:var(--text);text-transform:none;letter-spacing:0;cursor:pointer}
.field .ev-pick input{width:auto;flex:none;margin:0;accent-color:var(--accent)}

/* Owners: outside crew in the booking form and Change crew. The picked ones
   as chips, then the dropdown, then "Someone new" when it is chosen. */
.ev-outside-picked{margin:0 0 8px}
.crew-toggle+.ev-outside{margin-top:16px}
.ev-new{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
.ev-new .field input{background:var(--well)}

/* The Send or Skip question: one person a row, the address under the name. */
.ev-email-picks{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.ev-pick-who{display:flex;flex-direction:column;min-width:0}
.ev-pick-email{font-size:12px;color:var(--dim);overflow-wrap:anywhere}

/* The Overview's email addresses. */
.contact-who{min-width:0;overflow-wrap:anywhere;padding-right:10px}
.contacts-sub{margin-top:14px}

.assignment-row{display:grid;gap:8px;min-width:0;width:100%}
.assignment-row input,.assignment-row select{min-width:0;width:100%}
@media(max-width:600px){.ev-crew-picks{grid-template-columns:1fr}}
