@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #241b2f;
  --ink-2: #554a60;
  --ink-3: #74697e;
  --mulberry: #7a2e57;
  --mulberry-deep: #5b2a4a;
  --mulberry-soft: rgba(122, 46, 87, 0.1);
  --sage: #36695b;
  --sage-soft: rgba(54, 105, 91, 0.12);
  --amber: #8a5716;
  --amber-soft: rgba(160, 102, 30, 0.13);
  --danger: #a8323f;
  --danger-soft: rgba(168, 50, 63, 0.1);
  --page: #f3edf2;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --hairline: rgba(36, 27, 47, 0.09);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -22px rgba(60, 22, 58, 0.35);
  --shadow-pop: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 28px 60px -24px rgba(60, 22, 58, 0.45);
  --blur: blur(20px) saturate(150%);
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --focus: 0 0 0 3px rgba(122, 46, 87, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }
a { color: var(--mulberry); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Ambient colour behind the glass. Static: nothing here moves. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85; }
.orb-a { width: 46vmax; height: 46vmax; background: #f0c3d4; top: -14vmax; right: -10vmax; }
.orb-b { width: 40vmax; height: 40vmax; background: #d6cbef; bottom: -16vmax; left: -12vmax; }
.orb-c { width: 30vmax; height: 30vmax; background: #cde0ea; top: 30vh; left: 30vw; opacity: 0.7; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* ───────── Top bar ───────── */
.topbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 30;
  display: flex; align-items: center; gap: 12px;
  margin: 12px auto 0; padding: 10px 12px 10px 16px;
  width: min(1180px, calc(100% - 24px));
  border-radius: var(--r-lg);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-inline-end: auto; color: inherit; text-decoration: none; border-radius: var(--r-md); }
.brand-mark {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #8e3a67, var(--mulberry-deep));
  box-shadow: 0 8px 18px -8px rgba(91, 42, 74, 0.8);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: grid; min-width: 0; line-height: 1.35; }
.brand-title { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-user { font-size: 12.5px; color: var(--ink-3); }

.search {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; width: 260px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--hairline);
}
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { border: 0; background: transparent; width: 100%; outline: none; }
.search:focus-within { box-shadow: var(--focus); }

.icon-btn {
  position: relative; flex: none;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2); transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--glass-strong); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Settings menu: drops from the gear in the top corner. */
.menu-wrap { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
  width: 250px; padding: 8px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-pop);
  transform-origin: top left;
  animation: menu-in 0.18s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.menu-label { padding: 6px 10px 2px; font-size: 12px; color: var(--ink-3); }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: start;
}
.menu-item svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.menu-item:hover, .menu-item:focus-visible { background: rgba(122, 46, 87, 0.08); }
.menu-item[aria-current="page"] { background: var(--mulberry-soft); color: var(--mulberry); font-weight: 650; }
.menu-item[aria-current="page"] svg { color: var(--mulberry); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger svg { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 6px 4px; }

/* ───────── Page ───────── */
main { width: min(1180px, calc(100% - 24px)); margin: 0 auto; padding: 26px 0 80px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-bottom: 22px; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-title { margin: 0; font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; min-width: 6.5ch; }
.month-title small { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-bottom: 4px; }
.month-nav .icon-btn { width: 36px; height: 36px; border-radius: 50%; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.stat { padding: 8px 14px; border-radius: var(--r-md); line-height: 1.3; }
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 12.5px; color: var(--ink-2); }
.stat.free b { color: var(--sage); }

.section-title { margin: 32px 0 12px; font-size: 14px; font-weight: 650; color: var(--ink-2); }

/* ───────── Day cards ───────── */
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.day-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-xl); text-align: start; width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}
.day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); background: rgba(255, 255, 255, 0.66); }
.day-num { grid-row: span 2; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; color: var(--mulberry-deep); min-width: 1.6ch; text-align: center; }
.day-name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.day-cap { font-size: 13.5px; color: var(--ink-2); }
.day-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }

.pips { display: flex; flex-wrap: wrap; gap: 5px; }
.pip { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(54, 105, 91, 0.55); background: rgba(255, 255, 255, 0.5); }
.pip.on { background: var(--mulberry); border-color: var(--mulberry); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.badge.open { background: var(--sage-soft); color: var(--sage); }
.badge.low { background: var(--amber-soft); color: var(--amber); }
.badge.full { background: var(--mulberry); color: #fff; }
.badge.past { background: rgba(36, 27, 47, 0.07); color: var(--ink-3); }

.day-card.is-full .day-num { color: var(--ink-3); }
.day-card.is-past { opacity: 0.62; }
.day-card.is-today::after {
  content: "امروز"; position: absolute; top: 12px; left: 14px;
  font-size: 11.5px; font-weight: 700; color: var(--mulberry); background: var(--mulberry-soft); padding: 1px 8px; border-radius: 999px;
}

/* One orchestrated entrance when a month loads. */
.day-grid.enter .day-card { animation: rise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.empty {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 48px 24px; border-radius: var(--r-xl);
}
.empty h2 { margin: 0; font-size: 20px; }
.empty p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* ───────── Buttons & forms ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 650; white-space: nowrap; transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
a.btn { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--mulberry); color: #fff; box-shadow: 0 10px 22px -12px rgba(122, 46, 87, 0.9); }
.btn-primary:hover { background: var(--mulberry-deep); }
.btn-ghost { background: rgba(255, 255, 255, 0.6); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: rgba(168, 50, 63, 0.18); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; }

.form { display: grid; gap: 14px; }
.form > p { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: var(--r-md); border: 1px solid rgba(36, 27, 47, 0.14); background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mulberry); box-shadow: var(--focus); }
.input.ltr { direction: ltr; text-align: right; }
.hint { font-size: 12.5px; color: var(--ink-3); }
.form-error { padding: 10px 14px; border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--mulberry); }

/* ───────── Dialogs ───────── */
dialog {
  border: 0; padding: 0; color: var(--ink);
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px);
  border-radius: var(--r-xl); background: rgba(250, 246, 249, 0.86);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-pop);
}
dialog::backdrop { background: rgba(36, 27, 47, 0.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] { animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.dlg-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 6px; }
.dlg-head h2 { margin: 0; font-size: 19px; line-height: 1.45; }
.dlg-head p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.dlg-head .icon-btn { margin-inline-start: auto; }
.dlg-body { padding: 14px 22px 22px; overflow: auto; }

/* Day sheet: the day's patient list. */
dialog.sheet { width: min(760px, calc(100% - 24px)); }
.sheet-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.sheet-summary .pips { margin-inline-end: auto; }
.appt-list { display: grid; gap: 10px; }
.appt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: start;
  padding: 14px 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.72); border: 1px solid var(--hairline);
}
.appt-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mulberry-soft); color: var(--mulberry); font-weight: 800; font-size: 14px; }
.appt-name { font-weight: 750; font-size: 16px; }
.appt-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--ink-2); }
.appt-meta .ltr { direction: ltr; unicode-bidi: isolate; }
.appt-notes { grid-column: 2 / -1; font-size: 13.5px; color: var(--ink-2); background: rgba(36, 27, 47, 0.04); padding: 6px 10px; border-radius: var(--r-sm); }
.appt-by { grid-column: 2 / -1; font-size: 12px; color: var(--ink-3); }
.appt-actions { display: flex; gap: 6px; }
.appt-actions .icon-btn { width: 34px; height: 34px; }
.deposit { color: var(--sage); font-weight: 700; }
.no-deposit { color: var(--ink-3); }

/* ───────── Plan (calendar) view ───────── */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.panel { border-radius: var(--r-xl); padding: 18px; }
.panel h2 { margin: 0 0 4px; font-size: 17px; }
.panel > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { text-align: center; font-size: 12.5px; font-weight: 650; color: var(--ink-3); padding-bottom: 4px; }
.cal-cell {
  position: relative; aspect-ratio: 1 / 0.92; min-height: 54px;
  display: grid; align-content: center; justify-items: center; gap: 0;
  border-radius: var(--r-md); border: 1px solid transparent; background: rgba(255, 255, 255, 0.35); color: var(--ink-3);
  transition: background 0.15s, border-color 0.15s;
}
.cal-cell .n { font-size: 18px; font-weight: 700; line-height: 1.2; }
.cal-cell .c { font-size: 11.5px; line-height: 1.3; min-height: 1.3em; }
.cal-cell.surgery { color: var(--ink); background: rgba(255, 255, 255, 0.62); border-color: rgba(122, 46, 87, 0.22); border-style: dashed; }
.cal-cell.selected { background: var(--mulberry); border: 1px solid var(--mulberry); color: #fff; border-style: solid; box-shadow: 0 10px 20px -12px rgba(122, 46, 87, 0.9); }
.cal-cell.selected .c { color: rgba(255, 255, 255, 0.85); }
.cal-cell.past { opacity: 0.45; }
.cal-cell:not(:disabled):hover { border-color: var(--mulberry); }
.cal-cell:disabled { cursor: default; }
.cal-blank { visibility: hidden; }
.wd-short { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-inline-end: 6px; }
.legend .l-sel { background: var(--mulberry); }
.legend .l-sur { border: 1px dashed var(--mulberry); }
.week-rows { display: grid; gap: 8px; }
.week-row { display: grid; grid-template-columns: 1fr 92px; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.5); }
.week-row .input { height: 36px; text-align: center; padding: 0 8px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ───────── Tables (users, audit) ───────── */
.list { display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--hairline); }
button.row { width: 100%; text-align: start; cursor: pointer; }
button.row:hover { background: var(--glass-strong); }
.row .grow { flex: 1 1 200px; min-width: 0; }
.row .title { font-weight: 700; }
.row .sub { font-size: 13px; color: var(--ink-3); }
.role { font-size: 12.5px; font-weight: 650; padding: 2px 10px; border-radius: 999px; background: rgba(36, 27, 47, 0.06); color: var(--ink-2); }
.role.owner { background: var(--mulberry-soft); color: var(--mulberry); }
.audit-time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

/* ───────── Notifications & activity log ───────── */
.bell-badge {
  position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--page);
}
/* The panel hangs from the top bar itself, so it never runs off a phone screen. */
.bell-wrap { position: static; }
.notif-panel { left: 8px; width: min(400px, calc(100% - 16px)); padding: 6px; background: rgba(251, 248, 250, 0.95); }
.notif-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 8px 10px 6px; }
.notif-head b { font-size: 15.5px; }
.notif-list { display: grid; gap: 2px; max-height: min(60vh, 460px); overflow-y: auto; }
.notif-foot { margin-top: 4px; padding: 6px 4px 2px; border-top: 1px solid var(--hairline); }
.notif-foot .btn { width: 100%; }

.act-list { display: grid; padding: 6px; border-radius: var(--r-xl); }
.act { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-md); }
.act-list .act + .act { border-top: 1px solid var(--hairline); border-radius: 0; }
.act-dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--ink-3); }
.act-add .act-dot { background: var(--sage); }
.act-edit .act-dot { background: var(--amber); }
.act-del .act-dot { background: var(--danger); }
.act-warn .act-dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.act-text { font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.act-lines { display: grid; gap: 2px; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.act-time { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.act.compact { padding: 9px 10px; }
.act.compact .act-text { font-weight: 500; font-size: 14px; }
.act.unread { background: var(--mulberry-soft); }
.act-empty { padding: 20px; text-align: center; margin: 0; }
.act-filters { align-items: flex-end; }
.act-filters .field { min-width: 190px; }
.week-note { margin: 0; padding: 8px 12px; border-radius: var(--r-md); background: var(--amber-soft); color: var(--amber); font-size: 13.5px; font-weight: 600; }
.week-row .input:disabled, .week-row input:disabled { opacity: 0.6; }

/* ───────── Login ───────── */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login {
  width: min(400px, 100%); padding: 30px 26px 26px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
}
.login .brand-mark { width: 54px; height: 54px; border-radius: 17px; margin-bottom: 18px; }
.login .brand-mark svg { width: 30px; height: 30px; }
.login h1 { margin: 0; font-size: 23px; line-height: 1.45; letter-spacing: -0.3px; }
.login p { margin: 4px 0 22px; color: var(--ink-2); font-size: 14px; }
.login .btn { width: 100%; height: 46px; margin-top: 6px; }

/* ───────── Toasts ───────── */
.toasts { position: fixed; inset: auto 0 18px; z-index: 100; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toasts[popover] { margin: 0; width: 100%; height: auto; border: 0; background: transparent; overflow: visible; color: inherit; }
.toast {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: rgba(36, 27, 47, 0.88); color: #fff; box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  animation: pop 0.2s ease-out;
}
.toast.error { background: rgba(168, 50, 63, 0.94); }

.loading { padding: 60px 0; text-align: center; color: var(--ink-3); }

/* ───────── Small screens ───────── */
@media (max-width: 900px) {
  .plan-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .search, .hide-mobile { display: none; }
  .brand-user { display: none; }
  .brand-title { font-size: 14.5px; }
  .topbar { gap: 8px; padding: 8px 8px 8px 12px; }
  .stats { margin-inline-start: 0; width: 100%; }
  .stat { flex: 1 1 0; }
  .form-grid { grid-template-columns: 1fr; }
  dialog { width: calc(100% - 16px); }
  .dlg-head { padding: 18px 16px 4px; }
  .dlg-body { padding: 12px 16px 18px; }
  .appt { padding: 12px; gap: 4px 10px; }
  .cal { gap: 4px; }
  .act { grid-template-columns: auto minmax(0, 1fr); }
  .act > .btn, .act > .badge { grid-column: 2; justify-self: start; margin-top: 6px; }
  .act-filters .field { min-width: 0; flex: 1 1 140px; }
  .wd-long { display: none; }
  .wd-short { display: inline; }
  .cal-cell { min-height: 46px; border-radius: 10px; }
  .cal-cell .n { font-size: 16px; }
  .cal-cell .c { font-size: 10.5px; }
}
@media (min-width: 721px) {
  .only-mobile { display: none !important; }
}

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

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, dialog, .menu { background: rgba(255, 255, 255, 0.94); }
}

@media print {
  .backdrop, .topbar, .toasts { display: none; }
}
