/* Event window (calendar-event.js): Join, RSVP, check-in, and the organiser's attendance register.
   Loaded after style.css, glass.css and pq-calendar.css on calendar.html only. */

.ev-when{color:var(--t-base);font-size:14px;font-weight:600;margin:0}
.ev-sub{color:var(--t-muted);font-size:12.5px;margin:3px 0 0}
.ev-desc{color:var(--t-base);font-size:13px;line-height:1.55;margin:10px 0 0;white-space:pre-line}

.ev-actions{align-items:center;display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0}
.ev-join{gap:8px}
.ev-join svg{fill:none;height:16px;stroke:currentColor;stroke-linejoin:round;stroke-width:2;width:16px}
.ev-join[disabled]{cursor:default;opacity:.55}
.ev-rsvp{margin:0}
.ev-rsvp .tab{background:none;border:0;font:inherit;font-size:12.5px}
.ev-rsvp .tab.is-active{background:var(--bg-card)}

.ev-mine{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.ev-checkin{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.ev-checkin .input{max-width:170px}
.ev-checkin .input:not(:placeholder-shown){font-family:JetBrains Mono,monospace;letter-spacing:.2em}
.ev-checkin-msg{color:var(--danger);font-size:12px}
.ev-checkin-msg:empty{display:none}

.ev-att{border-top:1px solid var(--border-soft,var(--border));margin-top:18px}
.ev-att-head{align-items:center;display:flex;gap:12px;justify-content:space-between}
.ev-att-tools{display:flex;gap:14px}
.ev-att-tools .card-action{background:none;border:0;cursor:pointer;font:inherit;font-size:12px;min-height:0;padding:0}

.ev-code-row{align-items:center;display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.ev-code{background:var(--primary-soft);border-radius:var(--radius-control,10px);color:var(--primary);font-family:JetBrains Mono,monospace;font-size:26px;font-weight:700;letter-spacing:.3em;line-height:1;padding:8px 6px 8px 14px}
.ev-code-row .pq-muted{font-size:12px}

.ev-totals{align-items:center;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.ev-total{font-size:12px;margin-left:auto}

.cal-att-btn[hidden]{display:none}
.ev-att-open{gap:8px;margin:2px 0 4px}
.ev-att-open svg{fill:none;height:16px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;width:16px}
.ev-att-tools a.card-action{font-size:12px;text-decoration:none}

/* PQ day window: the Saturday's meeting */
.pq-day-meet{margin:0 0 10px}

/* Invitations: chips in the New event form and in the event window. A group
   chip carries how many people it reaches. */
.ne-invite[hidden],.ne-suggest[hidden]{display:none}
.ne-invite .chip-input{border-radius:var(--radius-control,10px);min-height:42px}
.ne-invite .chip-input input,.ne-invite .chip-input input:focus{background:none!important;border:0!important;box-shadow:none!important;height:auto;min-height:0;outline:0!important;padding:3px 2px}
.chip--group{background:var(--info-soft,var(--primary-soft));color:var(--info,var(--primary))}
.chip-n{font-family:JetBrains Mono,monospace;font-size:11px;opacity:.75}
.ne-suggest{margin-top:6px;max-height:232px}
.ne-opt{align-items:center;background:none;border:0;border-bottom:1px solid var(--border-soft);color:var(--t-base);cursor:pointer;display:flex;font:inherit;font-size:13px;gap:10px;padding:9px 12px;text-align:left;width:100%}
.ne-opt:last-child{border-bottom:0}
.ne-opt:hover,.ne-opt.is-active{background:var(--bg-hover)}
.ne-opt-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ne-opt .am-picker-meta{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ne-opt-ic{color:var(--info,var(--primary));display:inline-flex;flex:none}
.ne-opt-ic svg{fill:none;height:16px;stroke:currentColor;stroke-linecap:round;stroke-width:1.8;width:16px}
.ev-invited{align-items:center;display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.ev-invited .pq-muted{font-size:12px}

#evFoot .ev-cancel{color:var(--danger);margin-right:auto}
#evFoot .ev-cancel.is-armed{background:var(--danger-soft)}

@media (max-width:560px){
  .ev-actions>.ev-join{flex:1;justify-content:center}
  .ev-rsvp{width:100%}
  .ev-rsvp .tab{flex:1}
  .ev-checkin .input{flex:1;max-width:none}
  .ev-att-head{align-items:flex-start;flex-direction:column;gap:0;margin-bottom:8px}
  .ev-total{margin-left:0;width:100%}
  .ev-att-open{justify-content:center;width:100%}
}
