/* =========================================================
   Calendar — editorial design system
   Light/dark themes, paper-inspired surfaces, terracotta accent,
   Instrument Serif for display, system sans for UI.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- Tokens ---------- */
:root, [data-theme="light"] {
  --bg:        #faf6f0;
  --bg-grain:  rgba(26,26,26,0.012);
  --surface:   #fffdf8;
  --surface-2: #f4ede0;
  --ink:       #1a1a1a;
  --ink-soft:  #2c2a25;
  --muted:     #837c6e;
  --line:      #e6dfd2;
  --line-soft: #efe9dd;
  --accent:    #b04a2f;
  --accent-2:  #d96940;
  --ok:        #2f6b3d;
  --err:       #a32a2a;
  --ring: 0 0 0 3px rgba(176,74,47,0.18);
  --shadow-sm: 0 2px 6px -2px rgba(40,28,16,0.10);
  --shadow-md: 0 12px 32px -16px rgba(40,28,16,0.18);
  --shadow-lg: 0 30px 60px -30px rgba(40,28,16,0.30);

  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
                Roboto, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
[data-theme="dark"] {
  --bg:        #0e0e10;
  --bg-grain:  rgba(255,255,255,0.018);
  --surface:   #17171a;
  --surface-2: #1f1f24;
  --ink:       #f4f1ea;
  --ink-soft:  #d8d3c7;
  --muted:     #8a857a;
  --line:      #26262c;
  --line-soft: #1c1c20;
  --accent:    #d4663f;
  --accent-2:  #e8835a;
  --ok:        #6ec07d;
  --err:       #e07474;
  --ring: 0 0 0 3px rgba(212,102,63,0.25);
  --shadow-sm: 0 2px 6px -2px rgba(0,0,0,0.45);
  --shadow-md: 0 12px 32px -16px rgba(0,0,0,0.65);
  --shadow-lg: 0 30px 60px -30px rgba(0,0,0,0.85);
}

/* Subtle paper grain on the body */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--bg-grain) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 1;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  margin-right: auto;
  user-select: none;
}
.brand-mark {
  font-family: var(--font-serif);
  font-size: 28px; line-height: 1;
  color: var(--accent);
  transform: translateY(2px);
}
.brand-name {
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; letter-spacing: -0.01em;
}
.view-switch {
  display: inline-flex; padding: 3px;
  background: var(--surface-2); border-radius: 999px;
  border: 1px solid var(--line);
}
.view-btn {
  border: 0; background: transparent;
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.view-btn.active {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.view-btn:hover:not(.active) { color: var(--ink); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; min-width: 36px; padding: 0 12px;
  background: transparent; color: var(--ink-soft);
  border: 1px solid transparent; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.nav { padding: 0 8px; }
.icon-btn:focus-visible { outline: 0; box-shadow: var(--ring); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 0; box-shadow: var(--ring); }
.btn.primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 8%, transparent); }
.btn.full { width: 100%; justify-content: center; }

.user-menu { position: relative; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 8px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.user-chip:hover { background: var(--surface-2); }
.user-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--surface);
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 200px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px;
  box-shadow: var(--shadow-md);
  display: none; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.user-dropdown.open { display: block; opacity: 1; transform: translateY(0); }
.user-dropdown button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink);
}
.user-dropdown button:hover { background: var(--surface-2); }
.admin-only { display: none; }
body.is-admin .admin-only { display: block; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 14px;
  position: relative; z-index: 1;
}
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.period-title {
  margin: 0 0 0 12px;
  font-family: var(--font-serif); font-style: italic;
  font-weight: 400; font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.tz-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Canvas ---------- */
.canvas {
  position: relative; z-index: 1;
  padding: 4px 28px 96px;
  min-height: 60vh;
}
.fade-in { animation: fadeUp 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Month grid ---------- */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.month-head {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  padding: 12px 12px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.day-cell {
  position: relative;
  min-height: 124px;
  padding: 8px 10px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s;
  overflow: hidden;
}
.day-cell:hover { background: var(--surface-2); }
.day-cell.other-month { background: var(--bg); }
.day-cell.other-month .day-num { color: var(--muted); opacity: 0.6; }
.day-num {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; line-height: 1;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.day-cell.today .day-num {
  color: var(--accent);
}
.day-cell.today .day-num::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: 4px; align-self: center;
}
.day-weekday-mini {
  display: none;
  font-family: var(--font-sans); font-style: normal;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.event-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  margin-bottom: 3px;
  border-radius: 6px;
  font-size: 11.5px;
  background: color-mix(in srgb, var(--chip) 14%, var(--surface));
  color: var(--ink);
  border-left: 3px solid var(--chip);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.1s ease, background 0.15s;
}
.event-chip:hover {
  background: color-mix(in srgb, var(--chip) 24%, var(--surface));
  transform: translateX(1px);
}
.event-chip .ec-time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 10.5px;
  flex-shrink: 0;
}
.event-chip .ec-title {
  overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}
.more-link {
  display: block;
  font-size: 11px; color: var(--muted);
  margin-top: 2px;
  padding-left: 2px;
}
.more-link:hover { color: var(--accent); }

/* Mobile month: condensed list-y look */
@media (max-width: 720px) {
  .topbar { padding: 12px 14px; gap: 8px; }
  .brand-name { display: none; }
  .view-switch { display: none; }
  .toolbar { padding: 16px 14px 10px; }
  .period-title { font-size: 26px; margin-left: 4px; }
  .canvas { padding: 4px 14px 96px; }
  .month-head { padding: 8px 6px; font-size: 9px; }
  .day-cell { min-height: 78px; padding: 6px 6px 6px; }
  .day-num { font-size: 16px; }
  .event-chip { font-size: 10.5px; padding: 2px 5px; }
  .event-chip .ec-time { display: none; }
}

/* ---------- Week view ---------- */
.week-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.week-head-cell {
  text-align: center;
  padding: 14px 8px 12px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.week-head-cell .wd-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.week-head-cell .wd-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.week-head-cell.today .wd-num { color: var(--accent); }

.week-time-col, .week-day-col {
  position: relative;
  min-height: 720px; /* 24h × 30px */
}
.week-time-col { border-right: 1px solid var(--line); }
.week-day-col { border-right: 1px solid var(--line-soft); }

.hour-row {
  position: relative; height: 30px;
  border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
}
.hour-label {
  position: absolute; right: 6px; top: -7px;
  font-size: 10px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.week-event {
  position: absolute; left: 4px; right: 4px;
  background: color-mix(in srgb, var(--chip) 16%, var(--surface));
  border-left: 3px solid var(--chip);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s;
}
.week-event:hover {
  background: color-mix(in srgb, var(--chip) 26%, var(--surface));
}
.week-event .we-title { font-weight: 500; }
.week-event .we-time {
  font-size: 10px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Mobile: hide week grid time columns, fall back to agenda style */
@media (max-width: 720px) {
  .week-grid { display: none; }
  .week-mobile { display: block; }
}
@media (min-width: 721px) {
  .week-mobile { display: none; }
}

/* ---------- Agenda view ---------- */
.agenda {
  max-width: 760px; margin: 0 auto;
}
.agenda-day {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.agenda-date {
  text-align: right;
}
.agenda-date .ad-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 36px; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.agenda-date .ad-wd {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-top: 4px;
}
.agenda-date.today .ad-num { color: var(--accent); }
.agenda-events { display: flex; flex-direction: column; gap: 6px; }
.agenda-event {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--chip);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
}
.agenda-event:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.agenda-event .ae-time {
  width: 92px; flex-shrink: 0;
  font-size: 11.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.agenda-event .ae-body { flex: 1; min-width: 0; }
.agenda-event .ae-title { font-weight: 500; font-size: 14px; }
.agenda-event .ae-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px; font-size: 11.5px; color: var(--muted);
  align-items: center;
}
.agenda-event .ae-creator {
  display: inline-flex; align-items: center; gap: 5px;
}
.agenda-event .ae-creator-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--chip);
}
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--muted);
}
.empty-state h3 {
  font-family: var(--font-serif); font-style: italic;
  font-weight: 400; font-size: 24px; margin: 0 0 6px;
  color: var(--ink-soft);
}

/* ---------- Legend ---------- */
.legend {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 32px);
  z-index: 30;
}
.legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: var(--surface-2); border-radius: 999px;
  font-size: 11.5px; color: var(--ink);
}
.legend-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
@media (max-width: 480px) {
  .legend { font-size: 10.5px; padding: 6px 8px; bottom: 10px; }
}

/* ---------- Loading bar ---------- */
.load-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 0.25s ease, opacity 0.2s ease;
}
.load-bar.active { width: 80%; }
.load-bar.done   { width: 100%; opacity: 0; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, #000 50%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow: hidden auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 6px;
}
.modal-title {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: 26px; font-weight: 400; letter-spacing: -0.01em;
}
.modal-close {
  border: 0; background: transparent; color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-body { padding: 4px 22px 16px; }
.modal-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 22px 22px;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
}
.modal-footer .btn { min-width: 96px; justify-content: center; }
.modal-footer .danger-side { margin-right: auto; }

/* Form fields */
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) {
  .field-row, .field-row.three { grid-template-columns: 1fr; }
}
.field label {
  display: block; margin-bottom: 5px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.field input[type=text],
.field input[type=password],
.field input[type=datetime-local],
.field input[type=color],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input[type=color] { padding: 3px; height: 38px; cursor: pointer; }
.field textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: var(--ring);
}
.field-help { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.toggle-group {
  display: inline-flex; padding: 3px;
  background: var(--surface-2); border-radius: 999px;
  border: 1px solid var(--line);
}
.toggle-group button {
  border: 0; background: transparent;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.toggle-group button.active {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}
.form-error {
  background: color-mix(in srgb, var(--err) 10%, transparent);
  color: var(--err);
  border: 1px solid color-mix(in srgb, var(--err) 30%, transparent);
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; margin-bottom: 12px;
}

/* Event detail view */
.event-detail h3 {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 26px; margin: 0 0 6px; color: var(--ink);
  letter-spacing: -0.01em;
}
.event-detail .ed-meta {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 8px 14px;
  margin: 14px 0;
  font-size: 13px;
}
.event-detail .ed-meta dt {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  padding-top: 2px;
}
.event-detail .ed-meta dd { margin: 0; color: var(--ink); }
.event-detail .ed-creator {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip) 18%, var(--surface-2));
  font-size: 12.5px;
}
.event-detail .ed-creator .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--chip);
}
.event-detail .ed-notes {
  white-space: pre-wrap;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 10px 12px;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-soft);
}

/* User/company manager lists */
.list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 13px;
}
.list-row .lr-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.list-row .lr-name { flex: 1; }
.list-row .lr-meta { color: var(--muted); font-size: 12px; }

/* ---------- Toasts ---------- */
#toast-root {
  position: fixed; bottom: 16px; right: 16px; z-index: 300;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; box-shadow: var(--shadow-md);
  max-width: 320px;
  animation: toastIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  pointer-events: auto;
}
.toast.error  { border-left-color: var(--err); }
.toast.ok     { border-left-color: var(--ok); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .toolbar, .legend, .load-bar, .modal-backdrop, #toast-root,
  #new-event-btn, #login-btn, .user-menu { display: none !important; }
  body { background: white !important; color: black !important; }
}
