:root {
  --surface-gradient: radial-gradient(circle at top left, #d4ffe4 0%, #f5fff8 40%, #e8f4ff 100%);
}

body {
  background-image: var(--surface-gradient);
  background-attachment: fixed;
}

.card-elevated {
  box-shadow: 0 18px 40px -24px rgb(16 24 40 / 45%);
}

.table-responsive {
  overflow-x: auto;
}

.sticky-index-table {
  max-height: min(65vh, 52rem);
  overflow: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
}

.sticky-index-table .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--color-base-100, #ffffff);
  box-shadow: inset 0 -1px 0 var(--color-base-300, #d1d5db);
}

.data-table :is(th, td) {
  white-space: nowrap;
}

.data-table th:not([data-no-sort]) {
  cursor: pointer;
  user-select: none;
}

.data-table th .sort-arrow {
  font-size: 0.7em;
  opacity: 0.7;
}

.subtle-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.subtle-link:hover {
  color: var(--color-primary, #570df8);
}

.audit-table :is(th, td) {
  white-space: normal;
  vertical-align: top;
}

.audit-table pre {
  margin: 0;
  max-width: 26rem;
}

.audit-action-badge {
  border-color: #b6aa72;
  background-color: #d8d0aa;
  color: #4d472e;
  font-weight: 600;
}

.section-title {
  letter-spacing: -0.02em;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.brand-name {
  display: inline-flex;
  gap: 0.08em;
}

.brand-logo {
  height: 4rem;
  width: auto;
}

.account-menu-icon {
  display: none;
  width: 1rem;
  height: 1rem;
}

.main-nav-link[aria-current="page"] {
  color: color-mix(in oklch, var(--color-primary, #00a96e) 78%, black);
  font-weight: 700;
}

.main-nav-link :is(.entity-label-icon, .nav-icon) {
  color: currentColor;
}

.nav-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.details-sticky-header {
  position: sticky;
  top: 5rem;
  z-index: 20;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--color-base-300, #d1d5db);
  background-color: var(--color-base-100, #ffffff);
  box-shadow: 0 12px 18px -16px rgb(15 23 42 / 55%);
}

.entity-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.4em;
}

.entity-label-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.entity-label-icon-patient {
  color: #f97316;
}

.entity-label-icon-care-giver {
  color: #dc2626;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  height: 8rem;
  width: auto;
}

/* Bootstrap compatibility for ASP.NET Identity UI pages */
.row {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.col-lg-6,
.col-lg-4,
.col-lg-offset-2 {
  min-width: 0;
}

.mb-3 {
  margin-bottom: 1rem;
}

.w-100 {
  width: 100%;
}

.btn-lg {
  min-height: 3rem;
  font-size: 1.05rem;
}

.text-danger {
  color: #b42318;
}

.form-control {
  width: 100%;
  border: 1px solid #c6d2ca;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #142219;
  padding: 0.8rem 0.85rem;
}

.form-control:focus {
  border-color: #34a853;
  outline: 2px solid rgba(52, 168, 83, 0.15);
  outline-offset: 0;
}

.form-floating {
  position: relative;
}

.form-floating > .form-control {
  height: 3.4rem;
  padding: 1.35rem 0.85rem 0.5rem;
}

.form-floating > .form-control::placeholder {
  color: transparent;
}

.form-floating > .form-label {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  pointer-events: none;
  padding: 1rem 0.85rem;
  color: #5b6e62;
  transition: transform 0.15s ease, color 0.15s ease;
}

.form-floating > .form-control:focus ~ .form-label,
.form-floating > .form-control:not(:placeholder-shown) ~ .form-label {
  transform: translateY(0.35rem) scale(0.8);
  color: #2f5040;
}

.checkbox .form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.form-check-input {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.3rem;
  border: 1px solid #9eb3a6;
}

#account .form-floating {
  max-width: 22rem;
}

#account .checkbox {
  margin: 0.4rem 0 0.8rem;
}

#account .w-100 {
  width: auto !important;
}

#login-submit.btn {
  min-height: 2.1rem;
  min-width: 7.5rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.1;
}

/* Registration is disabled, hide leftover links from default Identity UI. */
#account a[href*="/Account/Register"],
a[href*="/Account/Register?"] {
  display: none !important;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Login page layout */
main:has(#account) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 12rem);
}

main:has(#account) > h1 {
  display: none;
}

main:has(#account) .row {
  grid-template-columns: minmax(0, 1fr);
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
}

main:has(#account) .col-lg-4.col-lg-offset-2 {
  display: none !important;
}

main:has(#account) #account {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

main:has(#account) #account > h2 {
  font-size: 0;
  text-align: center;
  margin: 0 0 0.25rem;
}

main:has(#account) #account > h2::before {
  content: "Welcome to APLMED HC";
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

main:has(#account) #account hr {
  margin: 0.2rem 0 0.8rem;
}

main:has(#account) #account .mb-3,
main:has(#account) #account > div {
  width: 100%;
}

main:has(#account) #account input[type="hidden"] {
  display: none !important;
}

main:has(#account) #account .form-floating {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

main:has(#account) #account .form-floating > .form-control {
  height: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
}

main:has(#account) #account .form-floating > .form-control::placeholder {
  color: #5b6e62;
}

main:has(#account) #account .form-floating > .form-label {
  order: -1;
  position: static;
  transform: none !important;
  transform-origin: initial;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #2f5040;
}

main:has(#account) #account .checkbox {
  margin: 0.15rem 0 0.35rem;
}

/* Override DaisyUI .checkbox style applied to Identity's div.checkbox wrapper */
main:has(#account) #account .checkbox.mb-3 {
  all: unset;
  display: block;
  margin: 0.15rem 0 0.35rem;
}

main:has(#account) #account .checkbox .form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  cursor: pointer;
}

main:has(#account) #account .checkbox input[type="checkbox"].form-check-input {
  appearance: auto;
  -webkit-appearance: auto;
  display: inline-block !important;
  vertical-align: middle;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
}

main:has(#account) #account > div:has(#login-submit) {
  width: auto;
}

main:has(#account) #login-submit.btn {
  width: auto !important;
  min-width: 7rem;
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
}

/* Visit schedule editor */
.schedule-editor-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.schedule-editor-sidebar {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

.schedule-editor-danger-zone {
  display: flex;
  justify-content: flex-start;
  padding-inline: 0.15rem;
}

.schedule-editor-panel,
.schedule-calendar-panel {
  border: 1px solid color-mix(in srgb, var(--color-base-content) 11%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-base-100) 96%, #f7faf8);
}

.schedule-editor-panel {
  padding: 1.15rem;
}

.schedule-editor-panel .fieldset-legend.entity-label {
  gap: 0.35rem;
}

.schedule-editor-panel .fieldset-legend .entity-label-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.schedule-assignment-warning {
  margin-top: -0.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #fde68a;
  border-radius: 0.65rem;
  background: #fffbeb;
  color: #854d0e;
  font-size: 0.7rem;
  line-height: 1.45;
}

.schedule-calendar-panel {
  min-width: 0;
  padding: 1.25rem;
  box-shadow: 0 1rem 2.5rem -2rem rgba(24, 58, 46, 0.35);
}

.schedule-calendar-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.schedule-calendar-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.35rem;
  color: color-mix(in srgb, var(--color-base-content) 65%, transparent);
  font-size: 0.72rem;
  line-height: 1.4;
}

.schedule-calendar-hint strong {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.2rem;
  padding: 0.08rem 0.42rem;
  border: 1px solid #a16207;
  border-radius: 999px;
  background: #fef3c7;
  color: #713f12;
  font-weight: 750;
  line-height: 1.25;
}

.schedule-calendar-hint strong svg {
  width: 0.78rem;
  height: 0.78rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.visit-focus-anchor {
  scroll-margin-top: 9rem;
}

.schedule-eyebrow {
  margin-bottom: 0.15rem;
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.schedule-mode-option {
  position: relative;
  cursor: pointer;
}

.schedule-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.schedule-mode-option span {
  display: grid;
  min-height: 4.25rem;
  align-content: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.schedule-mode-option input:checked + span {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.schedule-mode-option input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.schedule-mode-option strong {
  font-size: 0.82rem;
}

.schedule-mode-option small {
  margin-top: 0.1rem;
  color: #64748b;
  font-size: 0.67rem;
  line-height: 1.25;
}

.schedule-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.8rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
}

.schedule-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.legend-upcoming { background: #111827; }
.legend-soon { background: #3b82f6; }
.legend-today { background: #f59e0b; }
.legend-completed { background: #57534e; }
.legend-overdue { background: #78716c; }
.legend-cancelled { background: #a8a29e; }

.schedule-calendar-workspace {
  display: grid;
  grid-template-columns: minmax(28rem, 42rem) minmax(14rem, 19rem);
  justify-content: start;
  gap: 1rem;
  align-items: start;
}

.schedule-calendar-column {
  min-width: 0;
}

.schedule-calendar {
  --fc-accent: #2563eb;
  --fc-on-accent: #fff;
  --fc-accent-soft: #dbeafe;
  --fc-border: #e2e8f0;
  --fc-page-bg: #fff;
  --fc-neutral-bg: #f8fafc;
  --fc-today-bg: transparent;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}

.schedule-calendar .fc {
  color: #1e293b;
  font-size: 0.8rem;
}

.schedule-calendar .fc-toolbar {
  margin: 0 !important;
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.schedule-calendar .fc-toolbar-title {
  font-size: 1rem !important;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.schedule-calendar .fc-button {
  min-height: 2rem;
  padding: 0.3rem 0.65rem !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.schedule-calendar .fc-col-header-cell {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-calendar .fc-daygrid-day-frame {
  min-height: 3.9rem;
  cursor: cell;
}

.schedule-calendar .fc-daygrid-day-number {
  margin: 0.3rem;
  padding: 0.1rem 0.32rem !important;
  border-radius: 999px;
  font-weight: 650;
}

.schedule-calendar .schedule-day-number--today {
  background: #fef3c7 !important;
  color: #92400e;
  box-shadow: inset 0 0 0 1px #f59e0b;
}

.schedule-calendar .schedule-day--past {
  background: #f4f4f5;
}

.schedule-calendar .schedule-day--today {
  background: #fffbeb !important;
}

.schedule-calendar .schedule-day--locked .fc-daygrid-day-frame {
  cursor: not-allowed;
}

.schedule-calendar .schedule-day--locked:not(.schedule-day--selected) {
  color: #94a3b8;
}

.schedule-marker {
  --schedule-marker-color: #2563eb;
  display: flex !important;
  justify-content: center;
  width: max-content;
  min-width: 1.35rem;
  margin-inline: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.schedule-marker--upcoming { --schedule-marker-color: #111827; }
.schedule-marker--soon { --schedule-marker-color: #2563eb; }
.schedule-marker--today { --schedule-marker-color: #f59e0b; }
.schedule-marker--completed { --schedule-marker-color: #57534e; }
.schedule-marker--overdue { --schedule-marker-color: #78716c; }
.schedule-marker--cancelled { --schedule-marker-color: #a8a29e; }

.schedule-marker--selected .schedule-marker-icon {
  filter: drop-shadow(0 0 0.45rem rgba(37, 99, 235, 0.65));
  transform: scale(1.12);
}

.schedule-marker--selected .schedule-marker-icon:not(.schedule-marker-icon--repeating) {
  box-shadow:
    0 0 0 4px #3b82f6,
    0 0 0.9rem 0.2rem rgba(37, 99, 235, 0.5);
}

.schedule-marker--selected .schedule-marker-icon--repeating::after {
  position: absolute;
  inset: -0.22rem;
  border: 2px solid #3b82f6;
  border-radius: 999px;
  box-shadow: 0 0 0.8rem 0.15rem rgba(37, 99, 235, 0.5);
  content: "";
  pointer-events: none;
}

.schedule-marker-icon {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--schedule-marker-color);
  color: #fff;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--schedule-marker-color) 35%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  transition: box-shadow 120ms ease, filter 120ms ease, transform 120ms ease;
}

.schedule-marker-icon--repeating {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  background: transparent;
  box-shadow: none;
}

.schedule-marker-icon--repeating::before,
.schedule-marker-icon--repeating .schedule-repeat-front {
  position: absolute;
  display: inline-grid;
  width: 1.08rem;
  height: 1.08rem;
  place-items: center;
  border-radius: 999px;
}

.schedule-marker-icon--repeating::before {
  top: 0.13rem;
  left: 0.13rem;
  z-index: 0;
  background: color-mix(in srgb, var(--schedule-marker-color) 65%, transparent);
  box-shadow: 0.13rem 0.13rem 0 color-mix(in srgb, var(--schedule-marker-color) 35%, transparent);
  content: "";
}

.schedule-marker-icon--repeating .schedule-repeat-front {
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--schedule-marker-color);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--schedule-marker-color) 35%, transparent);
}

.schedule-date-list-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}

.schedule-date-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.schedule-date-list-count {
  display: inline-grid;
  min-width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  padding-inline: 0.4rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
}

.schedule-date-list-context {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.3;
}

.schedule-date-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  min-height: 0;
  max-height: 27rem;
  flex: 1;
  padding: 0.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.schedule-date-list-panel[data-height-synced="true"] .schedule-date-list {
  max-height: none;
}

.schedule-date-list-item {
  --schedule-list-color: #2563eb;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #1e293b;
  text-align: left;
}

.schedule-date-list-item:hover,
.schedule-date-list-item--selected {
  background: #fff;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.45);
}

.schedule-date-list-item--selected {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.schedule-date-list-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.schedule-date-list-item--upcoming { --schedule-list-color: #111827; }
.schedule-date-list-item--soon { --schedule-list-color: #2563eb; }
.schedule-date-list-item--today { --schedule-list-color: #f59e0b; }
.schedule-date-list-item--completed { --schedule-list-color: #57534e; }
.schedule-date-list-item--overdue { --schedule-list-color: #78716c; }
.schedule-date-list-item--cancelled { --schedule-list-color: #a8a29e; }

.schedule-date-list-symbol {
  display: inline-grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 999px;
  background: var(--schedule-list-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.schedule-date-list-symbol--repeating {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
}

.schedule-date-list-symbol--repeating::before,
.schedule-date-list-symbol--repeating .schedule-repeat-front {
  position: absolute;
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 999px;
}

.schedule-date-list-symbol--repeating::before {
  top: 0.14rem;
  left: 0.14rem;
  z-index: 0;
  background: color-mix(in srgb, var(--schedule-list-color) 65%, transparent);
  box-shadow: 0.14rem 0.14rem 0 color-mix(in srgb, var(--schedule-list-color) 35%, transparent);
  content: "";
}

.schedule-date-list-symbol--repeating .schedule-repeat-front {
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--schedule-list-color);
}

.schedule-date-list-trash {
  display: inline-grid;
  width: 1.4rem;
  height: 1.4rem;
  align-self: center;
  justify-self: end;
  place-items: center;
  margin-right: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.schedule-date-list-trash:hover:not(:disabled) {
  background: #fee2e2;
  color: #dc2626;
}

.schedule-date-list-trash:disabled {
  cursor: default;
}

.schedule-date-list-trash svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.schedule-date-list-copy {
  display: grid;
  min-width: 0;
}

.schedule-date-list-copy strong {
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-date-list-copy small {
  color: var(--schedule-list-color);
  font-size: 0.67rem;
  font-weight: 650;
}

.schedule-date-list-empty {
  padding: 1.5rem 0.85rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.schedule-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 0.95rem;
  border: 1px solid #334155;
  border-radius: 0.7rem;
  background: #172033;
  color: #fff;
  box-shadow: 0 1rem 2.5rem -1.25rem rgba(15, 23, 42, 0.7);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.65rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.schedule-toast[data-tone="error"] {
  border-color: #fca5a5;
  background: #991b1b;
}

.schedule-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .schedule-calendar-workspace {
    grid-template-columns: minmax(0, 42rem);
  }

  .schedule-date-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 16rem;
  }
}

@media (max-width: 900px) {
  .schedule-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-editor-panel {
    padding: 1rem;
  }

  .schedule-calendar-panel {
    padding: 0.85rem;
  }
}

@media (max-width: 520px) {
  .brand-name,
  .account-menu-name {
    display: none;
  }

  .account-menu-icon {
    display: block;
  }

  .account-menu-trigger {
    width: 2.25rem;
    padding-inline: 0.5rem;
  }

  .schedule-calendar-heading {
    display: grid;
  }

  .schedule-calendar .fc-toolbar {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem;
  }

  .schedule-calendar .fc-toolbar-title {
    font-size: 0.85rem !important;
    text-align: center;
  }

  .schedule-calendar .fc-daygrid-day-frame {
    min-height: 2.9rem;
  }

  .schedule-date-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
