/* The Outlook meeting card (JS/components/event-card.js): the calendar's event popover and the meeting reminders.
   .a-cg-pop is shared with the calendar's day "+N more" popover, so this sheet loads before alt-calendar-grid.css.
   The class names are the calendar grid's historical vocabulary. Tokens only. New here: .a-cg-evpop-stage and the dock .a-mrem. */

/* ---------- the popover frame ---------- */
.a-cg-pop{
  position:fixed; display:flex; flex-direction:column; min-width:0;
  background:var(--a-float); border:1px solid var(--a-line-strong); border-radius:var(--a-r-lg);
  box-shadow:var(--a-shadow); overflow:hidden;
}
.a-cg-pop-h{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid var(--a-line-soft); }
.a-cg-pop-h b{ flex:1 1 auto; min-width:0; font:600 var(--a-fs-ctl)/var(--a-lh-tight) var(--a-display); }
.a-cg-pop-b{ display:flex; flex-direction:column; gap:6px; padding:8px; overflow:auto; min-height:0; }
.a-cg-pop-f{ display:flex; justify-content:flex-end; padding:8px 10px; border-top:1px solid var(--a-line-soft); }
@media (max-width:640px){
  .a-cg-pop{ left:8px !important; right:8px; width:auto !important; }
}

/* ---------- the meeting card ---------- */
.a-cg-evpop-r{ display:flex; gap:6px; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-dim); }
.a-cg-evpop-r b{ flex:none; color:var(--a-text); font-weight:600; }
.a-cg-evpop-r span{ min-width:0; overflow-wrap:anywhere; }
.a-cg-evpop .a-cg-pop-h b{ overflow-wrap:anywhere; }
.a-cg-evpop-hint, .a-cg-evpop-foot{ margin:0; font-size:var(--a-fs-11); color:var(--a-faint); }
.a-cg-evpop-foot{ padding-top:6px; border-top:1px solid var(--a-line-soft); }
.a-cg-evpop-hint{ padding-top:4px; }
.a-cg-evpop .a-cg-pop-f{ gap:8px; }
.a-cg-evpop .a-cg-pop-f{ flex-wrap:wrap; }
.a-cg-evpop-r b{ min-width:62px; }
.a-cg-evpop-people, .a-cg-evpop-notes{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
.a-cg-evpop-sum{ color:var(--a-text); }
.a-cg-evpop-ppl{ list-style:none; margin:0; padding:0; width:100%; display:flex; flex-direction:column; gap:2px; }
.a-cg-evpop-ppl li{ display:flex; justify-content:space-between; gap:8px; min-width:0; }
.a-cg-evpop-ppl li[hidden]{ display:none; }
.a-cg-evpop-ppl .n{ min-width:0; overflow-wrap:anywhere; }
.a-cg-evpop-ppl .st{ flex:none; font-size:var(--a-fs-11); color:var(--a-faint); }
.a-cg-evpop-ppl .st.tentative{ color:var(--a-amber); }
.a-cg-evpop-ppl .st.accepted{ color:var(--a-green); }
.a-cg-evpop-ppl .st.declined{ color:var(--a-red); }
.a-cg-evpop-desc{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden;
  white-space:pre-wrap; overflow-wrap:anywhere; color:var(--a-dim); max-width:100%;
}
.a-cg-evpop-desc.open{ display:block; -webkit-line-clamp:unset; overflow:visible; }
.a-cg-evpop-lnk{ border:0; background:transparent; color:var(--a-blue-text); font:600 var(--a-fs-11)/var(--a-lh-ui) var(--a-body); cursor:pointer; padding:1px 0; min-height:20px; }
.a-cg-evpop-state{ margin:0; font-size:var(--a-fs-11); color:var(--a-faint); }
.a-cg-evpop-state.err{ color:var(--a-red); }
.a-cg-evpop-acts{ display:flex; flex-wrap:wrap; gap:6px; padding-top:6px; border-top:1px solid var(--a-line-soft); }
.a-cg-evpop-confirm{ display:flex; flex-direction:column; gap:6px; width:100%; }
.a-cg-evpop-confirm .a-cg-evpop-state{ color:var(--a-text); }
.a-cg-evpop-confirm .a-cg-evpop-state.err{ color:var(--a-red); }
.a-cg-evpop-confirm-r{ display:flex; flex-wrap:wrap; gap:8px; }
.a-cg-evpop-join[disabled]{ opacity:.6; cursor:default; }
a.a-cg-evpop-join{ text-decoration:none; }

/* ---------- the stage line (a reminder only): the size of .a-cg-evpop-state, in the now line's accent ----------
   It sits above the title: the head wraps only when a stage line is in it, so the calendar card's head is untouched. */
.a-cg-pop-h:has(> .a-cg-evpop-stage){ flex-wrap:wrap; row-gap:1px; }
.a-cg-pop-h:has(> .a-cg-evpop-stage) > b{ flex:1 1 0; }   /* basis 0: a long title wraps beside the × instead of pushing it to its own row */
.a-cg-evpop-stage{ flex:1 0 100%; order:-1; font:500 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); color:var(--a-blue-text); }
.a-cg-evpop-stage.now{ font-weight:700; }
.a-cg-evpop-stage.canceled{ color:var(--a-red); font-weight:600; }

/* ---------- the reminder dock (JS/features/meeting-reminders.js): top right under the sticky header ----------
   On <body> with data-layer-keep-active, never on the layer stack. It paints nothing of its own: no background, no border,
   and it takes no pointer events, so with no card in it (only its visually hidden live region) nothing is drawn or blocked. */
.a-mrem{
  position:fixed; top:calc(var(--a-top-h, 0px) + 8px); right:16px; width:min(420px, calc(100vw - 16px));
  z-index:var(--z-alert); display:flex; flex-direction:column; gap:var(--a-2);
  max-height:calc(100vh - var(--a-top-h, 0px) - 16px); overflow:auto; pointer-events:none;
}
.a-mrem > .a-cg-pop{ position:relative; flex:none; max-height:70vh; pointer-events:auto; }
@media (max-width:640px){
  .a-mrem{ left:8px; right:8px; width:auto; }
  .a-mrem > .a-cg-pop{ left:auto !important; right:auto; }
}
