/* NPI Booking Center – styles follow the Teams look (light / dark / high-contrast) */
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #e0e0e0;
  --text: #242424;
  --muted: #616161;
  --brand: #5b5fc7;
  --brand-hover: #4f52b2;
  --brand-soft: #e8ebfa;
  --on-brand: #ffffff;
  --free: #107c10;
  --free-soft: #e9f5e9;
  --busy: #c4314b;
  --busy-soft: #fdf3f4;
  --busy-bar: #d65a6e;
  --tent-bar: #f2a3b0;
  --warn: #835b00;
  --warn-soft: #fff9e6;
  --shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05);
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --bg:#1f1f1f; --surface:#292929; --surface-2:#2e2e2e; --border:#3d3d3d; --text:#ffffff; --muted:#adadad; --brand:#7f85f5; --brand-hover:#9299f7; --brand-soft:#2f2f4a; --on-brand:#1f1f1f; --free:#54b054; --free-soft:#1d3a1d; --busy:#f1707b; --busy-soft:#3e1f25; --busy-bar:#c4314b; --tent-bar:#7a3443; --warn:#f8d22a; --warn-soft:#463100; --shadow:none; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#1f1f1f; --surface:#292929; --surface-2:#2e2e2e; --border:#3d3d3d; --text:#ffffff; --muted:#adadad; --brand:#7f85f5; --brand-hover:#9299f7; --brand-soft:#2f2f4a; --on-brand:#1f1f1f; --free:#54b054; --free-soft:#1d3a1d; --busy:#f1707b; --busy-soft:#3e1f25; --busy-bar:#c4314b; --tent-bar:#7a3443; --warn:#f8d22a; --warn-soft:#463100; --shadow:none; color-scheme: dark; }
:root[data-theme="contrast"] { --bg:#000; --surface:#000; --surface-2:#000; --border:#fff; --text:#fff; --muted:#fff; --brand:#ffff01; --brand-hover:#ffff01; --brand-soft:#000; --on-brand:#000; --free:#3ff23f; --free-soft:#000; --busy:#ff6b6b; --busy-soft:#000; --busy-bar:#fff; --tent-bar:#888; --warn:#ffff01; --warn-soft:#000; --shadow:none; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.43 "Segoe UI", "Segoe UI Web (West European)", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.muted { color: var(--muted); }
em.muted { font-style: normal; font-weight: 400; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; height: 52px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.brand-mark { width: 24px; height: 24px; color: var(--brand); }
.tabs { display: flex; gap: 4px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tab {
  white-space: nowrap;
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600;
  padding: 0 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); }
.user { margin-left: auto; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.badge-demo { background: var(--warn-soft); color: var(--warn); }

/* ── Gate ────────────────────────────────────────────────── */
.gate { display: grid; place-items: center; min-height: calc(100vh - 52px); padding: 24px; }
.gate-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; max-width: 460px; text-align: center; box-shadow: var(--shadow); }
.gate-card h2 { margin: 12px 0 6px; font-size: 18px; }
.gate-card p { margin: 0 0 16px; }
.spinner { width: 28px; height: 28px; margin: 0 auto; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Views ───────────────────────────────────────────────── */
.view { max-width: 1180px; margin: 0 auto; padding: 16px 20px 40px; }

.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field-sm { min-width: 90px; width: 90px; }
.field-grow { flex: 1 1 200px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-bottom-color: var(--muted);
  border-radius: 4px; padding: 6px 10px; min-height: 32px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--brand); }
textarea { resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; user-select: none; }
.check input { width: 16px; height: 16px; min-height: 0; accent-color: var(--brand); }

.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 8px; }
.slot-summary { font-weight: 600; }
.slot-summary .muted { font-weight: 400; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 4px; min-height: 32px; padding: 0 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-ghost { background: none; border-color: transparent; color: var(--brand); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-soft); }
.btn-danger { color: var(--busy); }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── Time scale + rooms ─────────────────────────────────── */
.time-scale { position: relative; height: 18px; margin-left: calc(var(--info-w) + 33px); margin-right: calc(var(--action-w) + 33px); font-size: 11px; color: var(--muted); }
.time-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.room-list { display: flex; flex-direction: column; gap: 8px; }
.view { --info-w: 300px; --action-w: 110px; }

.room {
  display: grid; grid-template-columns: var(--info-w) 1fr var(--action-w); align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow);
}
.room.is-busy { opacity: .82; }
.room-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.room-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

.pill { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pill-free { background: var(--free-soft); color: var(--free); }
.pill-busy { background: var(--busy-soft); color: var(--busy); }
.pill-unknown { background: var(--warn-soft); color: var(--warn); }

.timeline {
  position: relative; height: 30px; border-radius: 4px; cursor: pointer;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--hour-w) - 1px), var(--border) calc(var(--hour-w) - 1px), var(--border) var(--hour-w));
  background-color: var(--free-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.timeline .seg { position: absolute; top: 0; bottom: 0; background: var(--busy-bar); }
.timeline .seg.tentative { background: repeating-linear-gradient(45deg, var(--tent-bar) 0 4px, transparent 4px 8px); background-color: var(--busy-soft); }
.timeline .past { position: absolute; top: 0; bottom: 0; left: 0; background: var(--border); opacity: .55; }
.timeline .sel { position: absolute; top: -1px; bottom: -1px; border: 2px solid var(--brand); border-radius: 4px; background: color-mix(in srgb, var(--brand) 14%, transparent); pointer-events: none; }
.timeline .sel.conflict { border-color: var(--busy); background: color-mix(in srgb, var(--busy) 14%, transparent); }
.timeline .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--busy); }
.timeline-unknown { display: grid; place-items: center; height: 30px; font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: 4px; }
.room-action { display: flex; justify-content: flex-end; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.skeleton { height: 72px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--border); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── My bookings ─────────────────────────────────────────── */
.mine-list { display: flex; flex-direction: column; gap: 16px; }
.day-group h4 { margin: 0 0 6px 2px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.booking {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.booking-time { font-weight: 600; }
.booking-time .muted { font-weight: 400; font-size: 12px; display: block; }
.booking-title { font-weight: 600; }
.booking-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Dialog ──────────────────────────────────────────────── */
.dialog { border: 0; padding: 0; border-radius: 12px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 8px 32px rgba(0,0,0,.28); }
.dialog::backdrop { background: rgba(0,0,0,.4); }
.dialog-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-head h3 { margin: 0; font-size: 18px; }
.dialog-head p { margin: 2px 0 0; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.status { padding: 10px 12px; border-radius: 6px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.status.info { background: var(--brand-soft); }
.status.ok { background: var(--free-soft); color: var(--free); }
.status.err { background: var(--busy-soft); color: var(--busy); }
.status .spinner { width: 16px; height: 16px; border-width: 2px; margin: 0; flex: none; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.25); z-index: 50; max-width: calc(100vw - 32px); }

/* ── Narrow (Teams mobile / side panel) ─────────────────── */
@media (max-width: 760px) {
  .topbar { gap: 12px; padding: 0 12px; }
  .user { display: none; }
  .brand #appName { display: none; }
  .summary-row { flex-wrap: wrap; }
  .view { padding: 12px 12px 32px; }
  .time-scale { display: none; }
  .room { grid-template-columns: 1fr auto; }
  .room .timeline, .room .timeline-unknown { grid-column: 1 / -1; grid-row: 2; }
  .room-action { grid-column: 2; grid-row: 1; }
  .booking { grid-template-columns: 1fr; gap: 6px; }
  .booking-actions { justify-content: flex-start; }
  .field, .field-sm { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); width: auto; }
}

/* ═════════════════════════════════════════════════════════════
   Room schedule
   ═════════════════════════════════════════════════════════════ */
:root { --ev-bg: #e8ebfa; --ev-border: #5b5fc7; --ev-text: #242424; --mine-bg: #fdf0e6; --mine-border: #e97548; --grid: #ebebeb; --head-bg: #fafafa; }
:root[data-theme="dark"] { --ev-bg: #33345a; --ev-border: #7f85f5; --ev-text: #fff; --mine-bg: #4a2f22; --mine-border: #ff9a6b; --grid: #333; --head-bg: #242424; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --ev-bg: #33345a; --ev-border: #7f85f5; --ev-text: #fff; --mine-bg: #4a2f22; --mine-border: #ff9a6b; --grid: #333; --head-bg: #242424; } }
:root[data-theme="contrast"] { --ev-bg: #000; --ev-border: #ffff01; --ev-text: #fff; --mine-bg: #000; --mine-border: #3ff23f; --grid: #666; --head-bg: #000; }

.view-wide { max-width: 1600px; }

.sched-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.day-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; }
.nav-btn:hover { background: var(--surface-2); }
.nav-btn svg { width: 18px; height: 18px; }
.day-label { font-size: 18px; margin: 0 6px 0 10px; font-weight: 600; white-space: nowrap; }
.date-compact { width: auto; min-width: 0; padding: 4px 8px; }
.sched-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sched-tools select { width: auto; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { font: inherit; font-weight: 600; font-size: 13px; padding: 5px 14px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--surface-2); color: var(--text); }

.sched-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--muted); font-size: 13px; margin: 0 2px 12px; min-height: 20px; }
.sched-stats b { color: var(--text); }
.legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.lg-ev { background: var(--ev-bg); border-left: 3px solid var(--ev-border); }
.lg-mine { background: var(--mine-bg); border-left: 3px solid var(--mine-border); }
.lg-tent { background: repeating-linear-gradient(45deg, var(--ev-bg) 0 3px, var(--surface) 3px 6px); border-left: 3px dashed var(--ev-border); }
.notice { flex-basis: 100%; background: var(--warn-soft); color: var(--warn); padding: 8px 12px; border-radius: 6px; }
.notice code { font-size: 12px; }

.sched-body { display: flex; flex-direction: column; gap: 8px; }
.scroll { overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* booking block (shared) */
.ev {
  position: absolute; display: flex; flex-direction: column; justify-content: center; gap: 1px;
  text-align: left; font: inherit; color: var(--ev-text); cursor: pointer; overflow: hidden;
  background: var(--ev-bg); border: 0; border-left: 3px solid var(--ev-border); border-radius: 4px;
  padding: 2px 8px; z-index: 2;
}
.ev:hover { filter: brightness(.96); box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 3; }
.ev:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ev-title { font-weight: 600; font-size: 12.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-sub { font-size: 11.5px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-mine { background: var(--mine-bg); border-left-color: var(--mine-border); }
.ev-tent { background: repeating-linear-gradient(45deg, var(--ev-bg) 0 6px, var(--surface) 6px 12px); border-left-style: dashed; }
.ev-limited { background: var(--surface-2); border-left-color: var(--muted); }
.ev-private .ev-title { font-style: italic; }
.ev-past { opacity: .55; }

/* ── Layout 1: Timeline ─────────────────────────────── */
.tl { --room-w: 210px; --hour-min: 130px; }
.tl-inner { min-width: calc(var(--room-w) + var(--hours) * var(--hour-min)); }
.tl-row { display: grid; grid-template-columns: var(--room-w) 1fr; border-bottom: 1px solid var(--grid); }
.tl-row:last-child { border-bottom: 0; }
.tl-head { position: sticky; top: 0; z-index: 5; background: var(--head-bg); border-bottom: 1px solid var(--border); }
.tl-room { position: sticky; left: 0; z-index: 4; background: var(--surface); padding: 10px 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.tl-corner { background: var(--head-bg); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-hours { display: grid; grid-template-columns: repeat(var(--hours), 1fr); }
.tl-hour { font-size: 11.5px; color: var(--muted); padding: 8px 6px; border-left: 1px solid var(--grid); }
.tl-track {
  position: relative; min-height: 62px; cursor: copy;
  background-image: repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px calc(100% / var(--hours)));
}
.tl-track:hover { background-color: color-mix(in srgb, var(--brand) 4%, transparent); }
.past-shade { position: absolute; top: 0; bottom: 0; left: 0; background: color-mix(in srgb, var(--text) 5%, transparent); pointer-events: none; }
.now-v { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--busy); z-index: 3; pointer-events: none; }
.now-v::before { content: ""; position: absolute; top: -1px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--busy); }

/* ── Layout 2: Columns ──────────────────────────────── */
.co { max-height: calc(100vh - 210px); }
.co-grid { position: relative; display: grid; grid-template-columns: 64px repeat(var(--rooms), minmax(168px, 1fr)); }
.co-corner, .co-head { position: sticky; top: 0; z-index: 5; background: var(--head-bg); border-bottom: 1px solid var(--border); }
.co-corner { left: 0; z-index: 6; }
.co-head { padding: 10px 12px; border-left: 1px solid var(--grid); min-width: 0; }
.co-gutter { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--border); }
.co-hour { position: relative; font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; }
.co-hour span { position: relative; top: -7px; background: var(--surface); padding: 0 2px; }
.co-hour:first-child span { top: 2px; }
.co-col {
  position: relative; border-left: 1px solid var(--grid); cursor: copy;
  background-image: repeating-linear-gradient(180deg, var(--grid) 0 1px, transparent 1px calc(var(--hour-px) / 2), color-mix(in srgb, var(--grid) 45%, transparent) calc(var(--hour-px) / 2) calc(var(--hour-px) / 2 + 1px), transparent calc(var(--hour-px) / 2 + 1px) var(--hour-px));
}
.co-col:hover { background-color: color-mix(in srgb, var(--brand) 4%, transparent); }
.co .ev { justify-content: flex-start; padding: 4px 8px; }
.co .ev-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.co .ev-compact { justify-content: center; padding: 0 8px; }
.co .ev-compact .ev-title { -webkit-line-clamp: 1; }
.now-h { position: absolute; left: 0; right: 0; height: 2px; background: var(--busy); z-index: 3; pointer-events: none; }
.past-shade-h { position: absolute; top: 0; left: 0; right: 0; background: color-mix(in srgb, var(--text) 5%, transparent); pointer-events: none; }

/* ── Layout 3: Agenda cards ─────────────────────────── */
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.ag-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.ag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--grid); }
.ag-head .tl-name { font-size: 15px; }
.ag-list { list-style: none; margin: 0; padding: 4px 0; }
.ag-item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 8px 16px; cursor: pointer; border-left: 3px solid transparent; }
.ag-item:hover { background: var(--surface-2); }
.ag-item.is-live { border-left-color: var(--busy); background: var(--busy-soft); }
.ag-item.is-past { opacity: .5; }
.ag-time { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ag-time span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.ag-title { font-weight: 600; font-size: 13.5px; }
.ag-who { font-size: 12px; color: var(--muted); }
.ag-empty { padding: 18px 16px; color: var(--free); font-size: 13px; }
.ag-foot { border-top: 1px solid var(--grid); padding: 6px 8px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--busy); margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pill-neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* details dialog */
.dialog-sm { width: min(420px, calc(100vw - 32px)); }
.ev-dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; }
.ev-dl dt { color: var(--muted); font-size: 13px; }
.ev-dl dd { margin: 0; font-weight: 600; }

@media (max-width: 760px) {
  .day-label { font-size: 15px; margin-left: 4px; flex-basis: 100%; order: 5; margin-top: 4px; }
  .tl { --room-w: 120px; --hour-min: 90px; }
  .tl-meta { display: none; }
  .legend { margin-left: 0; }
  .co { max-height: none; }
}

/* live updates */
.live { display: inline-flex; align-items: center; color: var(--free); font-weight: 600; }
.live .live-dot { background: var(--free); }
.ev-new { animation: newflash 1.2s ease-in-out 3; }
.ag-item.ev-new { animation: newflash 1.2s ease-in-out 3; }
@keyframes newflash { 50% { box-shadow: 0 0 0 3px var(--brand); background-color: var(--brand-soft); } }
