/* ---------------------------------------------------------------------
   GAU Meet
   ---------------------------------------------------------------------
   Deliberately dependency-free. No Tailwind, no Bootstrap, no icon font
   -- the IMS server serves this to people off campus on phone data, and
   a video call page has better uses for the first second of the
   connection than a 3MB framework it uses six classes from.

   Every icon is an inline SVG in the markup for the same reason.
   --------------------------------------------------------------------- */

:root {
  /* ------------------------------------------------------------------
     Taken from the university crest (assets/img/gau_logo.jpg): the deep
     green of the outer ring, the gold of the rope border, and the lime
     of the acacia field.

     The first two are already the pair the staff ID cards use
     (#14432c / #a9862b in staff_id_card.php), so this is the estate's
     established corporate pair rather than a new interpretation of it.

     The lime is the crest's loudest colour and is used almost nowhere:
     a live indicator and a focus ring. At full strength across a page it
     would shout, and it is far more effective as the one bright thing on
     a quiet green ground.
     ------------------------------------------------------------------ */
  --gau-green:      #14432c;   /* primary: matches the ID cards      */
  --gau-green-deep: #0d2e1e;   /* top bar, the deepest surface        */
  --gau-green-lift: #2f7d4f;   /* links, hover, the lighter mid-tone  */
  --gau-gold:       #a9862b;   /* the rope border                     */
  --gau-lime:       #bbe030;   /* the acacia field: used sparingly   */

  /* Neutrals biased a few degrees green rather than pure grey, so the
     page reads as one family instead of ink on newsprint. */
  --ink:      #121a15;
  --ink-soft: #49564d;
  --ink-mute: #7c8a80;
  --line:     #dde4dd;
  --surface:  #ffffff;
  --raised:   #f4f7f3;
  --ground:   #edf1ec;

  --good: #15803d;
  --good-bg: #e6f4ea;
  --warn: #9a6700;
  --warn-bg: #fdf3d8;
  --bad:  #b42318;
  --bad-bg: #fdeceb;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,23,34,.06), 0 8px 24px -12px rgba(16,23,34,.18);
  --shadow-lg: 0 2px 4px rgba(16,23,34,.06), 0 24px 48px -20px rgba(16,23,34,.28);

  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* The dark palette applies both when the OS asks for it and when the
   page is explicitly stamped, but an explicit light choice always wins
   over a dark OS -- hence the :not() guard. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:      #e7efe8;
    --ink-soft: #a7b7ab;
    --ink-mute: #78887d;
    --line:     #26332a;
    --surface:  #141d18;
    --raised:   #1b261f;
    --ground:   #0c130e;
    --gau-green-lift: #5cb37e;
    --good-bg: #10281a; --good: #6ee7a0;
    --warn-bg: #2a2110; --warn: #f0c453;
    --bad-bg:  #2a1413; --bad:  #f4a49c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --ink:      #e7efe8;
  --ink-soft: #a7b7ab;
  --ink-mute: #78887d;
  --line:     #26332a;
  --surface:  #141d18;
  --raised:   #1b261f;
  --ground:   #0c130e;
  --gau-green-lift: #5cb37e;
  --good-bg: #10281a; --good: #6ee7a0;
  --warn-bg: #2a2110; --warn: #f0c453;
  --bad-bg:  #2a1413; --bad:  #f4a49c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gau-green-lift); }

:focus-visible {
  outline: 2px solid var(--gau-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ */
/* Top bar                                                             */
/* ------------------------------------------------------------------ */

.m-top {
  background: var(--gau-green-deep);
  color: #fff;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: #fff;
  text-decoration: none;
}

.m-brand svg { flex: none; }

.m-brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .72;
  line-height: 1.1;
}

.m-top-spacer { flex: 1; }

.m-who {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(255,255,255,.88);
}

.m-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gau-green-lift);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 650;
  flex: none;
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.m-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 16px 64px;
}

.m-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 880px) {
  .m-split { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ */
/* The four big actions                                                */
/* ------------------------------------------------------------------ */

.m-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

@media (max-width: 720px) {
  .m-actions { grid-template-columns: repeat(2, 1fr); }
}

.m-action {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
}

.m-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.m-action:active { transform: translateY(0); }

.m-action .ico {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

/* Only "New Meeting" carries the full crest green. The other three are
   quieter, so the eye lands on the one people came here to press. */
/* All four are drawn from the crest, so the row reads as one family: the
   ring green, its lighter mid-tone, the rope gold, and a green-biased
   stone for the one action nobody presses in a hurry. */
.m-action.is-primary .ico { background: var(--gau-green); }
.m-action.is-join    .ico { background: var(--gau-green-lift); }
.m-action.is-plan    .ico { background: var(--gau-gold); }
.m-action.is-list    .ico { background: #6d7a6c; }

.m-action b { font-weight: 620; font-size: 14.5px; }
.m-action span { font-size: 12.5px; color: var(--ink-mute); line-height: 1.35; }

/* ------------------------------------------------------------------ */
/* Cards & meeting rows                                                */
/* ------------------------------------------------------------------ */

.m-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.m-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.m-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.15px;
}

.m-tabs { display: flex; gap: 3px; margin-left: auto; }

.m-tab {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 5px 11px;
  border-radius: 99px;
  cursor: pointer;
}

.m-tab[aria-selected="true"] {
  background: var(--raised);
  color: var(--ink);
  font-weight: 600;
}

.m-meetings { list-style: none; margin: 0; padding: 0; }

.m-meeting {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.m-meeting:last-child { border-bottom: 0; }

@media (max-width: 620px) {
  .m-meeting { grid-template-columns: 62px minmax(0, 1fr); }
  .m-meeting .m-meeting-do { grid-column: 1 / -1; }
}

/* The left rail: a date block for a scheduled meeting, a live dot for
   one in progress. Shape carries the state, not only colour. */
.m-when {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 14px;
  line-height: 1.15;
}
.m-when .d { font-size: 22px; font-weight: 660; font-variant-numeric: tabular-nums; }
.m-when .m { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.m-when .t { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 3px; }

.m-when.is-live .d { color: var(--gau-green-lift); }

.m-meeting h3 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-meta {
  font-size: 12.5px;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: center;
}

.m-code {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

.m-meeting-do { display: flex; gap: 7px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

[hidden] { display: none !important; }

.btn {
  appearance: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 560;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
}

.btn:hover { background: var(--raised); }

.btn-primary {
  background: var(--gau-green);
  border-color: var(--gau-green);
  color: #fff;
}
.btn-primary:hover { background: var(--gau-green-deep); }

.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn-danger:hover { background: var(--bad-bg); }

.btn-lg { font-size: 15px; padding: 11px 22px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/* Badges                                                              */
/* ------------------------------------------------------------------ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--raised);
  color: var(--ink-soft);
}

.tag-live { background: var(--good-bg); color: var(--good); }
.tag-wait { background: var(--warn-bg); color: var(--warn); }
.tag-done { background: var(--raised); color: var(--ink-mute); }

.tag-live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

/* The crest's lime, spent on the single most eye-catching thing on the
   page and nowhere else. Only in dark mode: on the pale green badge it
   would be too low in contrast to read as a signal, and the word "Live"
   beside it is what carries the meaning in either case. */
:root[data-theme="dark"] .tag-live .dot { background: var(--gau-lime); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-live .dot { background: var(--gau-lime); }
}

@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------------ */
/* Side panel: clock and personal room                                */
/* ------------------------------------------------------------------ */

.m-clock {
  background: var(--gau-green-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.m-clock .time {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.m-clock .time small { font-size: 17px; font-weight: 500; margin-left: 5px; letter-spacing: 0; }
.m-clock .date { font-size: 13px; opacity: .74; margin-top: 7px; }

/* ------------------------------------------------------------------ */
/* Dialogs                                                             */
/* ------------------------------------------------------------------ */

dialog.m-modal {
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  width: min(460px, calc(100vw - 32px));
}

dialog.m-modal::backdrop { background: rgba(10,20,35,.5); backdrop-filter: blur(2px); }

.m-modal-head {
  padding: 18px 20px 0;
  display: flex;
  align-items: start;
  gap: 12px;
}
.m-modal-head h2 { margin: 0; font-size: 17px; font-weight: 640; letter-spacing: -0.2px; }
.m-modal-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-mute); }

.m-modal-body { padding: 18px 20px; }
.m-modal-foot {
  padding: 14px 20px;
  background: var(--raised);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.m-x {
  margin-left: auto;
  appearance: none; border: 0; background: transparent;
  color: var(--ink-mute); cursor: pointer;
  font-size: 22px; line-height: 1; padding: 2px 4px;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.f { margin-bottom: 15px; }
.f:last-child { margin-bottom: 0; }

.f > label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.f input[type=text], .f input[type=datetime-local], .f input[type=number], .f select {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.f input:focus, .f select:focus {
  border-color: var(--gau-green-lift);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gau-green-lift) 18%, transparent);
}

.f-check {
  display: flex;
  gap: 9px;
  align-items: start;
  font-size: 13.5px;
  margin-bottom: 11px;
  cursor: pointer;
}
.f-check input { margin-top: 3px; flex: none; }
.f-check span { color: var(--ink-soft); }
.f-check b { display: block; color: var(--ink); font-weight: 580; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* The big join-code box. Monospace and wide-tracked, because this is
   read off a phone screen and typed by somebody who is late. */
.f-code {
  font-family: var(--mono) !important;
  font-size: 24px !important;
  letter-spacing: .1em;
  text-align: center;
  padding: 14px 12px !important;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Notes, errors, empty states                                         */
/* ------------------------------------------------------------------ */

.note {
  font-size: 13px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.note-bad  { background: var(--bad-bg);  color: var(--bad); }
.note-warn { background: var(--warn-bg); color: var(--warn); }
.note-good { background: var(--good-bg); color: var(--good); }
.note:empty { display: none; }

.m-empty {
  padding: 46px 22px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13.5px;
}
.m-empty svg { opacity: .3; margin-bottom: 10px; }

/* ------------------------------------------------------------------ */
/* Share link                                                          */
/* ------------------------------------------------------------------ */

.m-share {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 8px 7px 13px;
}
.m-share code {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* The call page                                                       */
/* ------------------------------------------------------------------ */

.m-call {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0b120d;
}

.m-call-bar {
  height: 46px;
  flex: none;
  background: #0b120d;
  color: #e7efe8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 13.5px;
  border-bottom: 1px solid #26332a;
}

.m-call-bar .topic {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-stage { flex: 1; min-height: 0; }
.m-stage > iframe { width: 100%; height: 100%; border: 0; display: block; }

.m-standby {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--ground);
}

.m-standby .box {
  max-width: 420px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px 28px;
}

.m-standby h1 { font-size: 20px; margin: 16px 0 6px; letter-spacing: -0.3px; }
.m-standby p  { color: var(--ink-mute); font-size: 14px; margin: 0 0 20px; }

.m-spin {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--gau-green-lift);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */

.m-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--surface);
  font-size: 13.5px;
  font-weight: 540;
  padding: 10px 18px;
  border-radius: 99px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 99;
}
.m-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ */
/* Call-bar buttons                                                    */
/*                                                                     */
/* Written as a class rather than inline styles, because there are now */
/* five of them and the inline version had already drifted.            */
/* ------------------------------------------------------------------ */

.m-bar-btn {
  background: #1b261f;
  border-color: #2c3a30;
  color: #e7efe8;
  font-size: 13px;
  padding: 6px 12px;
}
.m-bar-btn:hover { background: #24322a; }

@media (max-width: 720px) {
  /* On a phone the bar cannot hold five controls. Leave and the two
     window controls are what matter; the invite link is on the portal. */
  .m-call-bar #copyLink { display: none; }
  .m-bar-btn svg { display: none; }
}

/* ------------------------------------------------------------------ */
/* The floating window (Document Picture-in-Picture)                   */
/*                                                                     */
/* Its own stylesheet, copied into the PiP document by room.js. It has */
/* no top bar of its own: the window is 400px wide and every pixel of  */
/* chrome is a pixel not showing whoever is speaking. Jitsi's own       */
/* toolbar comes along inside the iframe and is enough.                 */
/* ------------------------------------------------------------------ */

.m-pip-body {
  margin: 0;
  background: #0b120d;
  overflow: hidden;
  height: 100%;
}
.m-pip-body .m-pip-stage { width: 100%; height: 100%; }
.m-pip-body iframe { width: 100%; height: 100%; border: 0; display: block; }

/* What the main tab shows while the call is floating. The call has not
   ended, so the page must not look like it has. */
.m-elsewhere {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #a7b7ab;
  background: #0b120d;
}
.m-elsewhere h2 {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 640;
  color: #e7efe8;
  letter-spacing: -0.2px;
}
.m-elsewhere p { margin: 0 0 18px; font-size: 13.5px; max-width: 34ch; }

/* ------------------------------------------------------------------ */
/* The university crest                                                */
/* ------------------------------------------------------------------ */

.m-crest { display: block; margin: 0 auto 6px; }

.m-crest-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.m-crest-card b {
  display: block;
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.1px;
}
.m-crest-card span {
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* The seal is drawn for white paper. On the dark ground its black ring
   disappears, so it gets a light disc to sit on -- the crest itself is
   never recoloured. */
:root[data-theme="dark"] .m-crest,
:root[data-theme="dark"] .m-crest-card img {
  background: #f4f7f3;
  border-radius: 50%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-crest,
  :root:not([data-theme="light"]) .m-crest-card img {
    background: #f4f7f3;
    border-radius: 50%;
  }
}

/* Invitation block in the share dialog (v1.3) */
.m-invite {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: 13px/1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 240px;
  overflow: auto;
}
.m-modal textarea { width: 100%; resize: vertical; }

.m-cal-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.m-mail { display: flex; gap: 8px; align-items: flex-start; }
.m-mail textarea { flex: 1; min-width: 0; resize: vertical; }
.m-hint { font-size: 12px; color: var(--ink-mute); margin: 6px 0 0; }
.m-invitees { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.m-invitees li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.m-invitees .m-inv-head { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.m-inv-mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-inv-btn { background: none; border: 0; padding: 2px 4px; color: var(--ink-soft); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.m-inv-btn:hover { color: var(--ink); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.m-join-cal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; font-size: 13px; }
.m-join-cal a { color: inherit; }

/* Record button in the call bar */
.m-rec-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; display: inline-block; }
.m-rec-btn.is-rec { background: #e5484d; border-color: #e5484d; color: #fff; font-variant-numeric: tabular-nums; }
.m-rec-btn.is-rec .dot { background: #fff; animation: m-rec-blink 1.2s steps(2, start) infinite; }
@keyframes m-rec-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .m-rec-btn.is-rec .dot { animation: none; } }

/* Recordings list */
.m-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-recs, .m-rec, .m-rec > * { min-width: 0; }
.m-rec { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.m-rec-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-rec-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-rec-meta { font-size: 12.5px; color: var(--ink-mute); }
.m-rec video { width: 100%; max-height: 300px; background: #000; border-radius: 8px; }
.m-rec-do { display: flex; flex-wrap: wrap; gap: 6px; }
.m-rec-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m-rec-share code { flex: 1 1 220px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 6px 8px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; }

/* Public watch page */
.m-watch { max-width: 960px; margin: 0 auto; padding: 88px 16px 40px; }
.m-watch h1 { font-size: 22px; margin: 0 0 4px; text-wrap: balance; }
.m-watch-meta { color: var(--ink-mute); font-size: 14px; margin: 0 0 16px; }
.m-watch-video { width: 100%; background: #000; border-radius: 12px; aspect-ratio: 16 / 9; }
.m-watch-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--ink-mute); }
.m-watch-empty { text-align: center; padding-top: 40px; }
.m-watch-empty p { color: var(--ink-mute); }
