/* Team & sharing, sending call sheets, receipts, and the page a recipient opens. */

/* ---------- receipts: Sent (yellow) → Delivered (blue) → Read (violet) → Confirmed (green) */
.rcpt { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rcpt-step { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 999px; border: 2px solid var(--border); font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--surface); }
.rcpt-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); background: transparent; }
.rcpt-step.is-on { border-color: var(--line); background: var(--c-soft); color: var(--c-ink); }
.rcpt-step.is-on .rcpt-dot { background: var(--c); border-color: var(--line); }
.rcpt.is-compact .rcpt-step { padding: 2px; }
.rcpt-declined { font-size: 11px; font-weight: 800; color: var(--red-ink); background: var(--red-soft); border: 2px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.trk { display: flex; flex-direction: column; gap: 10px; }
.trk-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trk-counts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.trk-count { display: inline-flex; gap: 4px; align-items: baseline; padding: 2px 9px; border-radius: 999px; background: var(--c-soft); color: var(--c-ink); border: 2px solid var(--line); font-size: 12px; font-weight: 700; }
.trk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.trk-row { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); }
.trk-row[data-step="confirmed"] { border-color: var(--green); }
.trk-who { display: flex; flex-direction: column; min-width: 0; }
.trk-actions { display: flex; gap: 4px; align-items: center; }
@media (max-width: 720px) { .trk-row { grid-template-columns: 1fr; } }

/* ---------- send dialog */
.send-form, .send-done, .send-history { display: flex; flex-direction: column; gap: 14px; }
.send-pick { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.send-pick-head { padding: 8px 12px; background: var(--surface-2); border-bottom: 2px solid var(--border); }
.send-people { list-style: none; margin: 0; padding: 4px 0; max-height: 320px; overflow: auto; }
.send-people li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; }
.send-people li:hover { background: var(--hover); }
.send-person { display: inline-flex; flex-direction: column; line-height: 1.25; }
.send-reply { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .send-reply { grid-template-columns: 1fr; } }
.send-history-item { border-top: 2px dashed var(--border); padding-top: 12px; }
.send-history-h { font-family: var(--font-display); font-size: 16px; margin: 0 0 8px; }
.share-linkbox { padding: 10px 12px; border: 2px dashed var(--line); border-radius: 10px; background: var(--surface-2); word-break: break-all; font-size: 13px; }

/* call sheet People view */
.cs-read { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 800; color: var(--violet-ink); }
.cs-declined { font-size: 10px; font-weight: 800; color: var(--red-ink); }
.pdfv-share { margin-left: 4px; }

/* ---------- team dialog */
.team-dialog-body { padding-top: 14px; }
.team { display: flex; flex-direction: column; gap: 16px; }
.team-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.team-h { font-family: var(--font-display); font-size: 20px; margin: 0; }
.team-seats { display: inline-flex; align-items: center; gap: 5px; }
.team-seat { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line); background: var(--surface); }
.team-seat.is-used { background: var(--blue); }
.team-seats .small { margin-left: 6px; }
.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.team-member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.team-code { font-family: var(--font-mono); font-weight: 800; letter-spacing: 0.08em; background: var(--yellow-soft); padding: 0 4px; border-radius: 4px; color: var(--text); }
.team-add { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 2px dashed var(--blue); border-radius: 14px; background: var(--blue-soft); }
.team-add-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: 8px; align-items: end; }
@media (max-width: 720px) { .team-add-row { grid-template-columns: 1fr; } }
.team-hits { list-style: none; margin: 0; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.team-hit { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 10px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.team-hit:hover { background: var(--hover); }
.team-hit .avatar-img { border-radius: 50%; }
.team-join { padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--yellow-soft); }
.team-join h4, .team-privacy h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 15px; }
.team-privacy { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--border); }
.team-privacy ul { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.team-privacy li .chip { margin-right: 6px; }

.sent { display: flex; flex-direction: column; gap: 12px; }
.sent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sent-item { border: 2px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.sent-head { display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sent-head:hover { background: var(--hover); }
.sent-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- the recipient's page */
.share-page { min-height: 100vh; background: var(--canvas); background-image: radial-gradient(var(--canvas-dot) 1.2px, transparent 1.2px); background-size: 22px 22px; color: var(--text); font-family: var(--font-ui); }
.share-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--yellow); border-bottom: 3px solid var(--line); }
.share-brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.12em; }
.share-tagline { font-size: 12px; font-weight: 700; color: var(--on-candy); opacity: 0.8; }
@media (max-width: 420px) { .share-tagline { display: none; } }
.share-main { max-width: 620px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 18px; }
.share-card { background: var(--surface); border: 3px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.share-center { align-items: center; text-align: center; }
.share-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-ink); }
.share-h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.1; margin: 0; }
.share-h2 { font-family: var(--font-display); font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.share-sub { margin: 0; font-weight: 700; color: var(--text-muted); }
.share-for { margin: 0; }
.share-message { white-space: pre-wrap; font-family: var(--font-ui); font-size: 15px; line-height: 1.45; margin: 0; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--border); }
.share-notes { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--yellow-soft); border: 2px solid var(--line); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-confirm[data-state="yes"] { background: var(--green-soft); }
.share-confirm[data-state="no"] { background: var(--red-soft); }
.share-reply { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 2px dashed var(--border); }
.share-foot { text-align: center; }
