:root {
  --lc-compact-radius: 12px;
  --lc-compact-line: rgba(61, 112, 144, 0.14);
  --lc-compact-shadow: 0 8px 22px rgba(21, 48, 74, 0.07);
}

.login-authorship {
  display: none !important;
}

.login-news {
  display: none !important;
}

.deck-toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(61, 112, 144, 0.15);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
  color: var(--blue-strong);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.deck-toggle:hover,
.deck-toggle:focus-visible {
  outline: none;
  border-color: rgba(35, 111, 159, 0.28);
  background: linear-gradient(135deg, rgba(240, 120, 108, 0.16), rgba(79, 164, 207, 0.16));
}

.app-shell,
.sidebar,
.sidebar nav,
.user-card,
.brand {
  transition: grid-template-columns 0.18s ease, width 0.18s ease, padding 0.18s ease, gap 0.18s ease, opacity 0.18s ease;
}

html.deck-collapsed .app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

html.deck-collapsed .sidebar {
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  overflow: visible;
}

html.deck-collapsed .brand {
  width: 56px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px;
}

html.deck-collapsed .brand > :not(.brand-mark):not(.deck-toggle) {
  display: none;
}

html.deck-collapsed .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 21px;
}

html.deck-collapsed .deck-toggle {
  width: 38px;
  height: 30px;
  margin-left: 0;
}

html.deck-collapsed .sidebar nav,
html.deck-collapsed .user-card {
  display: none;
}

.sidebar nav button.vetlex-hidden-research-nav {
  display: none !important;
}

.sidebar nav button.lab-hidden-advanced-nav {
  display: none !important;
}

.vetlex-research-entry,
.vetlex-terms-entry {
  display: grid;
  gap: 10px;
  border-color: rgba(35, 111, 159, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 96% 0%, rgba(79, 164, 207, 0.14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(240, 120, 108, 0.12), transparent 28%);
}

.vetlex-research-entry h2,
.vetlex-terms-entry h2 {
  margin: 0;
}

.vetlex-research-entry p:not(.kicker),
.vetlex-terms-entry p:not(.kicker) {
  max-width: 720px;
  margin: 0;
}

.vetlex-research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vetlex-research-actions button {
  width: fit-content;
  padding: 10px 13px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--salmon), var(--blue-strong));
  box-shadow: 0 12px 26px rgba(35, 111, 159, 0.18);
  font-size: 12px;
  font-weight: 950;
}

.vetlex-page .newsletter-grid {
  display: none !important;
}

.dashboard-page {
  gap: 12px;
}

.dashboard-page .card,
.dashboard-page .hero-panel {
  border-radius: var(--lc-compact-radius);
  box-shadow: var(--lc-compact-shadow);
}

.dashboard-page .dashboard-hero {
  min-height: 170px;
  grid-template-columns: minmax(0, 1fr) 156px;
  padding: 16px;
}

.dashboard-page .dashboard-hero h2 {
  max-width: 920px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.dashboard-page .dashboard-hero p {
  max-width: 900px;
  font-size: 13px;
  line-height: 1.48;
}

.dashboard-page .hero-actions {
  margin-top: 10px;
}

.dashboard-page .dashboard-quick-actions {
  gap: 7px;
  margin-top: 10px;
}

.dashboard-page .dashboard-quick-actions button {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-page .shrimp-orbit {
  width: 126px;
  height: 126px;
}

.dashboard-page .shrimp-orbit span {
  font-size: 58px;
}

.dashboard-page > .kpi-grid {
  gap: 10px;
}

.dashboard-page > .kpi-grid .metric-card {
  min-height: 106px;
  padding: 12px;
}

.dashboard-page > .kpi-grid .metric-card .kicker,
.dashboard-page .card .kicker {
  margin-bottom: 5px;
  font-size: 9px;
}

.dashboard-page > .kpi-grid .kpi-value {
  font-size: 25px;
}

.dashboard-page > .kpi-grid .kpi-value span {
  font-size: 13px;
}

.dashboard-page > .kpi-grid .metric-card p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: rgba(102, 120, 138, 0.88);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-page .dashboard-schedule-card,
.dashboard-page .dashboard-calendar-card,
.dashboard-page .dashboard-queue-card,
.dashboard-page .dashboard-today-card,
.dashboard-page .dashboard-alerts-card,
.dashboard-page .dashboard-activity-card {
  padding: 14px;
}

.dashboard-page .dashboard-schedule-card h2,
.dashboard-page .dashboard-calendar-card h2,
.dashboard-page .dashboard-queue-card h2,
.dashboard-page .dashboard-today-card h2,
.dashboard-page .dashboard-alerts-card h2,
.dashboard-page .dashboard-activity-card h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.dashboard-page .schedule-showcase-head {
  gap: 10px;
}

.dashboard-page .schedule-showcase-head > div:first-child {
  padding: 10px;
  border: 1px solid var(--lc-compact-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-page .schedule-showcase-head strong {
  color: var(--salmon-strong);
  font-size: 26px;
  line-height: 1;
}

.dashboard-page .schedule-showcase-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-page .schedule-mini-facts {
  gap: 6px;
}

.dashboard-page .advanced-week-roster {
  gap: 8px;
}

.dashboard-page .roster-day {
  min-height: 0;
  padding: 10px;
  border-radius: 12px;
}

.dashboard-page .roster-day header {
  margin-bottom: 8px;
}

.dashboard-page .shift-day-stack {
  gap: 6px;
}

.dashboard-page .shift-day-card {
  min-height: 72px;
  padding: 8px;
  border-radius: 11px;
}

.dashboard-page .shift-day-head {
  grid-template-columns: 26px minmax(0, 1fr);
}

.dashboard-page .shift-day-head > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.dashboard-page .roster-person.compact {
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 6px;
}

.dashboard-page .roster-person.compact img,
.dashboard-page .roster-person.compact > span,
.dashboard-page .calendar-birthday-avatars span,
.dashboard-page .birthday-month-strip img,
.dashboard-page .birthday-month-strip article > span {
  border-radius: 50%;
}

.dashboard-page .roster-avatar-row img,
.dashboard-page .roster-avatar-row span {
  border-radius: 50%;
}

.dashboard-page .calendar-toolbar {
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-page .calendar-toolbar strong {
  font-size: 26px;
}

.dashboard-page .calendar-toolbar span {
  font-size: 11px;
}

.dashboard-page .calendar-actions {
  gap: 6px;
}

.dashboard-page .calendar-actions button {
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-page .birthday-month-strip {
  gap: 8px;
  margin-bottom: 10px;
}

.dashboard-page .birthday-month-strip article {
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 8px;
  border-radius: 12px;
}

.dashboard-page .birthday-month-strip img,
.dashboard-page .birthday-month-strip article > span {
  width: 36px;
  height: 36px;
}

.dashboard-page .month-weekday-row,
.dashboard-page .month-card-grid {
  gap: 5px;
}

.dashboard-page .month-weekday-row span {
  padding: 6px 4px;
  border-radius: 9px;
  font-size: 9px;
}

.dashboard-page .month-day-card {
  min-height: 76px;
  gap: 5px;
  padding: 7px;
  border-radius: 10px;
}

.dashboard-page .month-day-card header strong {
  font-size: 14px;
}

.dashboard-page .month-day-card header span,
.dashboard-page .calendar-open-day,
.dashboard-page .calendar-holiday {
  font-size: 9px;
  line-height: 1.25;
}

.dashboard-page .calendar-birthday-avatars {
  gap: 4px;
}

.dashboard-page .calendar-birthday-avatars span {
  width: 24px;
  height: 24px;
  font-size: 8px;
}

.dashboard-page .operational-table,
.dashboard-page .alert-list,
.dashboard-page .activity-stream,
.dashboard-page .compact-list {
  max-height: 320px;
}

.dashboard-page .compact-list article,
.dashboard-page .activity-stream article,
.dashboard-page .alert-list article {
  padding: 10px;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .dashboard-page .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-page .shrimp-orbit {
    display: none;
  }

  .dashboard-page .dashboard-schedule-card,
  .dashboard-page .dashboard-calendar-card,
  .dashboard-page .dashboard-queue-card,
  .dashboard-page .dashboard-today-card,
  .dashboard-page .dashboard-alerts-card,
  .dashboard-page .dashboard-activity-card {
    grid-column: span 12;
  }

  .dashboard-page .month-weekday-row {
    display: grid;
  }
}

@media (max-width: 720px) {
  main {
    padding: 10px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    max-height: none;
    gap: 7px;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
  }

  .brand {
    min-height: 46px;
    padding: 7px 9px;
    border-radius: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand span {
    font-size: 9px;
  }

  .brand-ufrpe {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .deck-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 15px;
  }

  .sidebar nav {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    margin: 0 -2px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 3px;
    scroll-snap-type: x proximity;
  }

  .sidebar nav button {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(61, 112, 144, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
    color: var(--muted);
    font-size: 11px;
    scroll-snap-align: start;
  }

  .sidebar nav button.vetlex-hidden-research-nav {
    display: none !important;
  }

  .sidebar nav button.active,
  .sidebar nav button:hover {
    border-color: rgba(35, 111, 159, 0.18);
    box-shadow: inset 0 0 0 1px rgba(79, 164, 207, 0.08);
  }

  .user-card {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .user-card-photo,
  .user-card-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }

  .user-card small {
    display: none;
  }

  .user-card strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-card .badge {
    padding: 3px 6px;
    font-size: 8px;
  }

  .logout-button {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    min-width: 58px;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 10px;
  }

  .user-card .logout-button {
    color: transparent;
    font-size: 0;
  }

  .user-card .logout-button::after {
    content: "Sair";
    color: var(--salmon-strong);
    font-size: 10px;
    font-weight: 950;
  }

  html.deck-collapsed .app-shell {
    display: block;
  }

  html.deck-collapsed .sidebar {
    display: block;
    padding: 8px;
  }

  html.deck-collapsed .brand {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  html.deck-collapsed .brand > :not(.brand-mark):not(.deck-toggle) {
    display: none;
  }

  html.deck-collapsed .brand-mark {
    width: 34px;
    height: 34px;
  }

  html.deck-collapsed .deck-toggle {
    width: 32px;
    height: 32px;
    margin-left: auto;
  }

  html.deck-collapsed .sidebar nav,
  html.deck-collapsed .user-card {
    display: none;
  }

  .topbar {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .dashboard-page {
    gap: 9px;
  }

  .dashboard-page .dashboard-hero {
    min-height: 0;
    padding: 12px;
  }

  .dashboard-page .dashboard-hero h2 {
    font-size: 22px;
    line-height: 1.12;
  }

  .dashboard-page .dashboard-hero p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .dashboard-page .hero-actions {
    gap: 5px;
  }

  .dashboard-page .hero-actions .badge {
    padding: 4px 7px;
    font-size: 9px;
  }

  .dashboard-page .dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .dashboard-quick-actions button {
    width: 100%;
    min-height: 32px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .dashboard-page > .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page > .kpi-grid .metric-card {
    min-height: 86px;
    padding: 10px;
  }

  .dashboard-page > .kpi-grid .metric-card .kicker {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .dashboard-page > .kpi-grid .kpi-value {
    font-size: 22px;
  }

  .dashboard-page > .kpi-grid .metric-card p {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }

  .dashboard-page .dashboard-schedule-card,
  .dashboard-page .dashboard-calendar-card,
  .dashboard-page .dashboard-queue-card,
  .dashboard-page .dashboard-today-card,
  .dashboard-page .dashboard-alerts-card,
  .dashboard-page .dashboard-activity-card {
    padding: 10px;
    border-radius: 12px;
  }

  .dashboard-page .dashboard-schedule-card h2,
  .dashboard-page .dashboard-calendar-card h2,
  .dashboard-page .dashboard-queue-card h2,
  .dashboard-page .dashboard-today-card h2,
  .dashboard-page .dashboard-alerts-card h2,
  .dashboard-page .dashboard-activity-card h2 {
    font-size: 15px;
  }

  .dashboard-page .schedule-showcase-head {
    grid-template-columns: 1fr;
  }

  .dashboard-page .schedule-showcase-head p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .dashboard-page .schedule-showcase-head strong {
    font-size: 22px;
  }

  .dashboard-page .schedule-mini-facts .badge {
    padding: 4px 6px;
    font-size: 9px;
  }

  .dashboard-page .advanced-week-roster {
    grid-template-columns: repeat(7, minmax(36px, 1fr)) !important;
    gap: 4px;
    overflow: visible;
  }

  .dashboard-page .roster-day {
    min-width: 0;
    padding: 5px;
    border-radius: 9px;
  }

  .dashboard-page .roster-day header {
    display: grid;
    gap: 3px;
    margin-bottom: 4px;
  }

  .dashboard-page .roster-day header strong {
    display: block;
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.05;
    text-overflow: clip;
    white-space: nowrap;
  }

  .dashboard-page .roster-day header small {
    font-size: 8px;
  }

  .dashboard-page .roster-day header .badge {
    justify-self: start;
    padding: 2px 4px;
    font-size: 7px;
  }

  .dashboard-page .holiday-ribbon,
  .dashboard-page .birthday-ribbon {
    gap: 3px;
    margin-bottom: 3px;
    padding: 3px;
    border-radius: 7px;
    font-size: 7px;
    line-height: 1.1;
  }

  .dashboard-page .holiday-ribbon span,
  .dashboard-page .birthday-ribbon span {
    width: 14px;
    height: 14px;
  }

  .dashboard-page .shift-day-stack {
    gap: 3px;
  }

  .dashboard-page .shift-day-card {
    min-height: 29px;
    gap: 3px;
    padding: 3px;
    border-radius: 7px;
  }

  .dashboard-page .shift-day-head {
    display: flex;
    gap: 3px;
  }

  .dashboard-page .shift-day-head > span {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 10px;
  }

  .dashboard-page .shift-day-head strong {
    overflow: hidden;
    font-size: 8px;
    line-height: 1.05;
    text-overflow: clip;
    white-space: nowrap;
  }

  .dashboard-page .shift-day-head small {
    display: none;
  }

  .dashboard-page .shift-people {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }

  .dashboard-page .roster-person.compact {
    display: inline-grid;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-page .roster-person.compact img,
  .dashboard-page .roster-person.compact > span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 6px;
  }

  .dashboard-page .roster-person.compact strong,
  .dashboard-page .roster-person.compact small,
  .dashboard-page .roster-person.compact em,
  .dashboard-page .roster-empty.compact small {
    display: none;
  }

  .dashboard-page .roster-empty.compact {
    min-height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .dashboard-page .roster-empty.compact span {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .dashboard-page .calendar-toolbar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dashboard-page .calendar-toolbar strong {
    font-size: 20px;
  }

  .dashboard-page .calendar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .calendar-actions button {
    min-width: 0;
    padding: 6px 4px;
    font-size: 9px;
  }

  .dashboard-page .birthday-month-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .dashboard-page .birthday-month-strip article {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
    padding: 5px;
  }

  .dashboard-page .birthday-month-strip img,
  .dashboard-page .birthday-month-strip article > span {
    width: 26px;
    height: 26px;
    font-size: 8px;
  }

  .dashboard-page .birthday-month-strip strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .birthday-month-strip small {
    font-size: 8px;
  }

  .dashboard-page .month-weekday-row,
  .dashboard-page .month-card-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 3px;
  }

  .dashboard-page .month-weekday-row {
    display: grid;
    margin-bottom: 3px;
  }

  .dashboard-page .month-weekday-row span {
    padding: 3px 0;
    border-radius: 6px;
    font-size: 7px;
    letter-spacing: 0;
  }

  .dashboard-page .month-day-card {
    min-height: 38px;
    gap: 2px;
    padding: 3px;
    border-radius: 7px;
  }

  .dashboard-page .month-day-card header {
    display: block;
  }

  .dashboard-page .month-day-card header strong {
    font-size: 10px;
    line-height: 1;
  }

  .dashboard-page .month-day-card header span {
    display: none;
  }

  .dashboard-page .calendar-holiday {
    display: block;
    overflow: hidden;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
  }

  .dashboard-page .calendar-holiday span {
    width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .dashboard-page .calendar-holiday small,
  .dashboard-page .calendar-open-day {
    display: none;
  }

  .dashboard-page .calendar-birthday-avatars {
    gap: 1px;
  }

  .dashboard-page .calendar-birthday-avatars span {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 5px;
  }

  .dashboard-page .operational-table,
  .dashboard-page .alert-list,
  .dashboard-page .activity-stream,
  .dashboard-page .compact-list {
    max-height: 230px;
  }

  .dashboard-page .compact-list article,
  .dashboard-page .activity-stream article,
  .dashboard-page .alert-list article {
    padding: 8px;
    border-radius: 10px;
  }

  .vetlex-research-entry,
  .vetlex-terms-entry {
    gap: 8px;
    padding: 12px;
  }

  .vetlex-research-entry h2,
  .vetlex-terms-entry h2 {
    font-size: 17px;
  }

  .vetlex-research-entry p:not(.kicker),
  .vetlex-terms-entry p:not(.kicker) {
    font-size: 11px;
    line-height: 1.45;
  }

  .vetlex-research-actions button {
    width: 100%;
    padding: 9px 11px;
  }
}

@media (max-width: 420px) {
  .dashboard-page .advanced-week-roster {
    grid-template-columns: repeat(7, minmax(34px, 1fr)) !important;
  }

  .dashboard-page .roster-day {
    padding: 4px;
  }

  .dashboard-page .shift-day-head strong {
    max-width: 22px;
  }

  .dashboard-page .month-day-card {
    min-height: 34px;
  }
}

html {
  --lical-font-scale: 1;
  --lical-tool-surface: rgba(255, 255, 255, 0.82);
  --lical-tool-border: rgba(35, 111, 159, 0.2);
  --lical-tool-text: #183b4f;
  --lical-tool-muted: #5d7280;
  --lical-tool-shadow: 0 18px 45px rgba(21, 48, 74, 0.18);
  font-size: calc(16px * var(--lical-font-scale));
}

.lical-global-tools,
.lical-search-fab,
.lical-panel,
.lical-tool-status {
  box-sizing: border-box;
  font-size: 13px;
  letter-spacing: 0;
}

.lical-global-tools {
  position: fixed;
  z-index: 1200;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--lical-tool-border);
  border-radius: 16px;
  background: var(--lical-tool-surface);
  box-shadow: var(--lical-tool-shadow);
  backdrop-filter: blur(18px) saturate(1.25);
}

.lical-tool-button,
.lical-search-fab,
.lical-panel button {
  font-family: inherit;
}

.lical-tool-button,
.lical-search-fab {
  border: 1px solid rgba(35, 111, 159, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--lical-tool-text);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.lical-tool-button {
  position: relative;
  min-width: 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 7px;
  border-radius: 12px;
  font-weight: 900;
}

.lical-tool-button b,
.lical-search-fab span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(240, 120, 108, 0.18), rgba(79, 164, 207, 0.18));
  color: var(--blue-strong);
  font-family: "Segoe UI Symbol", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.lical-tool-button span,
.lical-search-fab b {
  line-height: 1;
  white-space: nowrap;
}

.lical-tool-button:hover,
.lical-tool-button:focus-visible,
.lical-search-fab:hover,
.lical-search-fab:focus-visible,
.lical-panel button:hover,
.lical-panel button:focus-visible {
  outline: none;
  border-color: rgba(240, 120, 108, 0.45);
  box-shadow: 0 10px 24px rgba(35, 111, 159, 0.14);
  transform: translateY(-1px);
}

.lical-tool-button[aria-pressed="true"] {
  border-color: rgba(240, 120, 108, 0.5);
  background: linear-gradient(135deg, rgba(240, 120, 108, 0.16), rgba(255, 255, 255, 0.9));
}

.lical-notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0786c;
  box-shadow: 0 0 0 3px rgba(240, 120, 108, 0.18);
}

.lical-search-fab {
  position: fixed;
  z-index: 1201;
  right: 16px;
  bottom: 16px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 9px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 249, 0.78));
  box-shadow: var(--lical-tool-shadow);
  backdrop-filter: blur(18px) saturate(1.25);
  font-weight: 950;
}

.lical-search-fab span {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--salmon), var(--blue-strong));
  color: #fff;
  font-size: 18px;
}

.lical-panel {
  position: fixed;
  z-index: 1210;
  bottom: 76px;
  width: min(378px, calc(100vw - 32px));
  max-height: min(590px, calc(100vh - 104px));
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--lical-tool-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 251, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(79, 164, 207, 0.14), transparent 34%);
  box-shadow: var(--lical-tool-shadow);
  backdrop-filter: blur(22px) saturate(1.22);
  color: var(--lical-tool-text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.lical-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lical-notification-panel,
.lical-accessibility-panel {
  left: 16px;
}

.lical-search-panel {
  right: 16px;
}

.lical-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lical-panel-head strong {
  color: var(--lical-tool-text);
  font-size: 14px;
  line-height: 1.15;
}

.lical-panel-head button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 1px solid rgba(35, 111, 159, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--lical-tool-muted);
  cursor: pointer;
  font-weight: 950;
}

.lical-notification-list,
.lical-search-results,
.lical-access-grid {
  display: grid;
  gap: 8px;
}

.lical-notification-item,
.lical-result,
.lical-access-action {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(35, 111, 159, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--lical-tool-text);
  cursor: pointer;
  text-align: left;
}

.lical-notification-item strong,
.lical-result span,
.lical-access-action strong {
  color: var(--lical-tool-text);
  font-size: 12px;
  line-height: 1.25;
}

.lical-notification-item span,
.lical-result small,
.lical-access-action span,
.lical-empty-state,
.lical-search-box span {
  color: var(--lical-tool-muted);
  font-size: 11px;
  line-height: 1.35;
}

.lical-notification-item.urgent {
  border-color: rgba(240, 120, 108, 0.34);
  background: rgba(240, 120, 108, 0.1);
}

.lical-notification-item.info {
  border-color: rgba(79, 164, 207, 0.28);
  background: rgba(79, 164, 207, 0.1);
}

.lical-search-box {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.lical-search-box input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(35, 111, 159, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--lical-tool-text);
  font: inherit;
  outline: none;
}

.lical-search-box input:focus {
  border-color: rgba(240, 120, 108, 0.5);
  box-shadow: 0 0 0 4px rgba(240, 120, 108, 0.12);
}

.lical-result {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.lical-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lical-result small {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(35, 111, 159, 0.08);
  white-space: nowrap;
}

.lical-access-grid {
  grid-template-columns: 1fr;
}

.lical-access-action {
  min-height: 58px;
}

.lical-access-action[aria-pressed="true"] {
  border-color: rgba(240, 120, 108, 0.38);
  background: rgba(240, 120, 108, 0.11);
}

.lical-font-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.lical-font-controls button {
  height: 38px;
  border: 1px solid rgba(35, 111, 159, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--lical-tool-text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
}

.lical-font-controls span {
  padding: 10px;
  border-radius: 12px;
  background: rgba(35, 111, 159, 0.06);
  color: var(--lical-tool-muted);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.lical-tool-status {
  position: fixed;
  z-index: 1220;
  left: 50%;
  bottom: 82px;
  width: min(420px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(35, 111, 159, 0.18);
  border-radius: 14px;
  background: rgba(24, 59, 79, 0.92);
  color: #fff;
  box-shadow: var(--lical-tool-shadow);
  text-align: center;
  transform: translateX(-50%);
}

html.lical-dyslexia-mode body,
html.lical-dyslexia-mode button,
html.lical-dyslexia-mode input,
html.lical-dyslexia-mode textarea,
html.lical-dyslexia-mode select {
  font-family: Arial, Verdana, Tahoma, sans-serif !important;
  letter-spacing: 0 !important;
}

html.lical-dyslexia-mode p,
html.lical-dyslexia-mode li,
html.lical-dyslexia-mode label,
html.lical-dyslexia-mode small,
html.lical-dyslexia-mode .card,
html.lical-dyslexia-mode .lical-panel {
  line-height: 1.62 !important;
}

html.lical-dyslexia-mode .card,
html.lical-dyslexia-mode .metric-card,
html.lical-dyslexia-mode .lical-panel {
  background-image: none !important;
}

html.lical-night-mode {
  color-scheme: dark;
  --lical-tool-surface: rgba(17, 28, 28, 0.86);
  --lical-tool-border: rgba(157, 202, 205, 0.2);
  --lical-tool-text: #eef8f5;
  --lical-tool-muted: #a9bfbd;
  --lical-tool-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
  --line: rgba(186, 214, 211, 0.16);
  --blue: #74bed1;
  --blue-strong: #8bd5e4;
  --salmon: #ff9b8d;
  --salmon-strong: #ffb6a8;
  --gold: #efca72;
  --muted: #a9bfbd;
}

html.lical-night-mode body {
  background: #0f1616 !important;
  color: #edf7f4 !important;
}

html.lical-night-mode .login-shell,
html.lical-night-mode .app-shell {
  background:
    linear-gradient(135deg, #0f1616 0%, #13201e 46%, #1b1d24 100%) !important;
  color: #edf7f4;
}

html.lical-night-mode .sidebar,
html.lical-night-mode .topbar,
html.lical-night-mode .brand,
html.lical-night-mode .user-card,
html.lical-night-mode .card,
html.lical-night-mode .metric-card,
html.lical-night-mode .hero-panel,
html.lical-night-mode .login-card,
html.lical-night-mode .login-panel,
html.lical-night-mode .login-institution,
html.lical-night-mode .vetlex-research-entry,
html.lical-night-mode .vetlex-terms-entry,
html.lical-night-mode .month-day-card,
html.lical-night-mode .shift-day-card,
html.lical-night-mode .roster-day,
html.lical-night-mode .birthday-month-strip article,
html.lical-night-mode .compact-list article,
html.lical-night-mode .activity-stream article,
html.lical-night-mode .alert-list article {
  border-color: rgba(186, 214, 211, 0.15) !important;
  background:
    linear-gradient(145deg, rgba(22, 35, 34, 0.94), rgba(18, 28, 30, 0.88)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
  color: #edf7f4 !important;
}

html.lical-night-mode .dashboard-hero,
html.lical-night-mode .vetlex-research-entry,
html.lical-night-mode .vetlex-terms-entry {
  background:
    linear-gradient(135deg, rgba(22, 35, 34, 0.96), rgba(25, 29, 39, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(116, 190, 209, 0.14), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(255, 155, 141, 0.1), transparent 28%) !important;
}

html.lical-night-mode h1,
html.lical-night-mode h2,
html.lical-night-mode h3,
html.lical-night-mode h4,
html.lical-night-mode strong,
html.lical-night-mode .kpi-value,
html.lical-night-mode .topbar h1 {
  color: #f7fbf8 !important;
}

html.lical-night-mode p,
html.lical-night-mode small,
html.lical-night-mode label,
html.lical-night-mode span,
html.lical-night-mode li {
  color: inherit;
}

html.lical-night-mode .kicker,
html.lical-night-mode .badge,
html.lical-night-mode .calendar-toolbar span,
html.lical-night-mode .month-day-card header span,
html.lical-night-mode .shift-day-head small,
html.lical-night-mode .user-card small {
  color: #a9bfbd !important;
}

html.lical-night-mode input,
html.lical-night-mode textarea,
html.lical-night-mode select {
  border-color: rgba(186, 214, 211, 0.2) !important;
  background: rgba(10, 16, 17, 0.72) !important;
  color: #f7fbf8 !important;
}

html.lical-night-mode input::placeholder,
html.lical-night-mode textarea::placeholder {
  color: rgba(215, 229, 226, 0.58) !important;
}

html.lical-night-mode .sidebar nav button,
html.lical-night-mode .calendar-actions button,
html.lical-night-mode .dashboard-quick-actions button,
html.lical-night-mode .deck-toggle,
html.lical-night-mode .logout-button {
  border-color: rgba(186, 214, 211, 0.16) !important;
  background: rgba(14, 22, 23, 0.68) !important;
  color: #dceeea !important;
}

html.lical-night-mode .sidebar nav button.active,
html.lical-night-mode .sidebar nav button:hover,
html.lical-night-mode .calendar-actions button:hover,
html.lical-night-mode .dashboard-quick-actions button:hover,
html.lical-night-mode .deck-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 155, 141, 0.18), rgba(116, 190, 209, 0.18)) !important;
  color: #fff !important;
}

html.lical-night-mode .operational-table,
html.lical-night-mode table {
  color: #edf7f4 !important;
}

html.lical-night-mode .lical-tool-button,
html.lical-night-mode .lical-search-fab,
html.lical-night-mode .lical-panel-head button,
html.lical-night-mode .lical-font-controls button {
  border-color: rgba(186, 214, 211, 0.18);
  background: rgba(23, 35, 35, 0.78);
  color: #eef8f5;
}

html.lical-night-mode .lical-tool-button b {
  background: rgba(255, 155, 141, 0.14);
  color: #ffb6a8;
}

html.lical-night-mode .lical-panel {
  background:
    linear-gradient(145deg, rgba(21, 33, 33, 0.96), rgba(16, 25, 26, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(116, 190, 209, 0.14), transparent 34%);
}

html.lical-night-mode .lical-notification-item,
html.lical-night-mode .lical-result,
html.lical-night-mode .lical-access-action,
html.lical-night-mode .lical-search-box input,
html.lical-night-mode .lical-font-controls span {
  border-color: rgba(186, 214, 211, 0.15);
  background: rgba(10, 16, 17, 0.46);
  color: #eef8f5;
}

@media (max-width: 720px) {
  .lical-global-tools {
    left: 10px;
    bottom: 10px;
    max-width: calc(100vw - 82px);
    padding: 5px;
    border-radius: 14px;
  }

  .lical-tool-button {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
  }

  .lical-tool-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .lical-search-fab {
    right: 10px;
    bottom: 10px;
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0;
    border-radius: 16px;
  }

  .lical-search-fab b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .lical-panel {
    left: 10px;
    right: 10px;
    bottom: 70px;
    width: auto;
    max-height: calc(100vh - 92px);
    border-radius: 16px;
  }

  .lical-result {
    grid-template-columns: 1fr;
  }

  .lical-result small {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lical-tool-button,
  .lical-search-fab,
  .lical-panel {
    transition: none;
  }
}

.lab-advanced-suite,
.lab-subpage-chrome {
  border-color: rgba(35, 111, 159, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 96% 0%, rgba(79, 164, 207, 0.16), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(240, 120, 108, 0.12), transparent 28%);
}

.lab-suite-head,
.lab-subpage-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.lab-suite-head h2,
.lab-subpage-main h2 {
  margin-bottom: 6px;
}

.lab-suite-head p:not(.kicker),
.lab-subpage-main p:not(.kicker) {
  max-width: 900px;
  margin: 0;
  font-size: 13px;
  line-height: 1.52;
}

.lab-suite-meter {
  min-width: 132px;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(35, 111, 159, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.lab-suite-meter strong {
  color: var(--salmon-strong);
  font-size: 28px;
  line-height: 1;
}

.lab-suite-meter span {
  color: var(--blue-strong);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lab-suite-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  gap: 4px 10px;
  padding: 14px;
  border: 1px solid rgba(35, 111, 159, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at 100% 0%, rgba(79, 164, 207, 0.12), transparent 34%);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(21, 48, 74, 0.08), inset 0 1px rgba(255, 255, 255, 0.75);
}

.lab-suite-card:hover,
.lab-suite-card:focus-visible,
.lab-subpage-actions button:hover,
.lab-subpage-actions button:focus-visible {
  outline: none;
  border-color: rgba(240, 120, 108, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(35, 111, 159, 0.14);
}

.lab-suite-card span {
  grid-row: span 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--salmon), var(--blue-strong));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.lab-suite-card small,
.lab-suite-card em {
  color: var(--blue-strong);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-suite-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.lab-suite-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.44;
}

.lab-subpage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lab-subpage-actions button {
  width: fit-content;
  padding: 9px 11px;
  border: 1px solid rgba(35, 111, 159, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-page .dashboard-schedule-card {
  grid-column: span 12;
}

.dashboard-page .advanced-week-roster {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 6px;
  align-items: stretch;
}

.dashboard-page .roster-day {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
}

.dashboard-page .roster-day header {
  display: grid;
  gap: 2px;
  min-height: 42px;
  margin-bottom: 6px;
}

.dashboard-page .roster-day header strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .roster-day header small {
  font-size: 9px;
}

.dashboard-page .roster-day header .badge {
  width: fit-content;
  padding: 3px 5px;
  font-size: 8px;
}

.dashboard-page .shift-day-stack {
  gap: 5px;
}

.dashboard-page .shift-day-card {
  min-height: 58px;
  gap: 4px;
  padding: 6px;
  border-radius: 9px;
}

.dashboard-page .shift-day-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px;
}

.dashboard-page .shift-day-head > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
}

.dashboard-page .shift-day-head strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .shift-day-head small {
  display: none;
}

.dashboard-page .shift-people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 2px;
  min-height: 26px;
  padding-left: 1px;
}

.dashboard-page .shift-people .roster-person.compact {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page .shift-people .roster-person.compact + .roster-person.compact {
  margin-left: -7px;
}

.dashboard-page .shift-people .roster-person.compact img,
.dashboard-page .shift-people .roster-person.compact > span {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 8px;
  box-shadow: 0 8px 18px rgba(31, 78, 110, 0.18);
}

.dashboard-page .shift-people .roster-person.compact strong,
.dashboard-page .shift-people .roster-person.compact small,
.dashboard-page .shift-people .roster-person.compact em,
.dashboard-page .shift-people .roster-empty.compact small {
  display: none;
}

.dashboard-page .shift-people .roster-empty.compact {
  min-height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.dashboard-page .shift-people .roster-empty.compact span {
  width: 23px;
  height: 23px;
  font-size: 14px;
}

html.lical-night-mode .lab-advanced-suite,
html.lical-night-mode .lab-subpage-chrome,
html.lical-night-mode .lab-suite-card,
html.lical-night-mode .lab-suite-meter {
  border-color: rgba(186, 214, 211, 0.16) !important;
  background:
    linear-gradient(145deg, rgba(22, 35, 34, 0.94), rgba(18, 28, 30, 0.88)) !important;
  color: #edf7f4 !important;
}

html.lical-night-mode .lab-suite-card strong,
html.lical-night-mode .lab-subpage-main h2 {
  color: #f7fbf8 !important;
}

html.lical-night-mode .lab-suite-card p,
html.lical-night-mode .lab-suite-head p:not(.kicker),
html.lical-night-mode .lab-subpage-main p:not(.kicker) {
  color: #a9bfbd !important;
}

html.lical-night-mode .lab-subpage-actions button {
  border-color: rgba(186, 214, 211, 0.18);
  background: rgba(14, 22, 23, 0.68);
  color: #dceeea;
}

@media (max-width: 980px) {
  .lab-suite-head,
  .lab-subpage-main {
    grid-template-columns: 1fr;
  }

  .lab-suite-meter {
    justify-items: start;
  }

  .lab-subpage-actions {
    justify-content: flex-start;
  }

  .lab-suite-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lab-suite-card {
    min-height: 0;
  }

  .dashboard-page .dashboard-schedule-card {
    overflow: hidden;
  }

  .dashboard-page .advanced-week-roster {
    grid-template-columns: repeat(7, minmax(34px, 1fr)) !important;
    gap: 3px;
  }

  .dashboard-page .roster-day {
    padding: 4px;
  }

  .dashboard-page .roster-day header {
    min-height: 35px;
    margin-bottom: 3px;
  }

  .dashboard-page .roster-day header strong {
    font-size: 9px;
    text-overflow: clip;
  }

  .dashboard-page .roster-day header small {
    font-size: 7px;
  }

  .dashboard-page .shift-day-card {
    min-height: 31px;
    padding: 3px;
  }

  .dashboard-page .shift-day-head {
    display: flex;
    gap: 3px;
  }

  .dashboard-page .shift-day-head > span {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    font-size: 9px;
  }

  .dashboard-page .shift-day-head strong {
    max-width: 24px;
    font-size: 8px;
  }

  .dashboard-page .shift-people {
    min-height: 17px;
  }

  .dashboard-page .shift-people .roster-person.compact,
  .dashboard-page .shift-people .roster-person.compact img,
  .dashboard-page .shift-people .roster-person.compact > span {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 6px;
  }

  .dashboard-page .shift-people .roster-person.compact + .roster-person.compact {
    margin-left: -5px;
  }

  .dashboard-page .shift-people .roster-empty.compact span {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.lical-floating-dock {
  position: fixed;
  z-index: 1240;
  right: 16px;
  bottom: 16px;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--lical-tool-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 251, 0.76)),
    radial-gradient(circle at 0% 100%, rgba(240, 120, 108, 0.12), transparent 30%);
  box-shadow: var(--lical-tool-shadow);
  backdrop-filter: blur(22px) saturate(1.24);
  overflow: visible;
}

.lical-presence-strip[hidden] {
  display: none !important;
}

.lical-presence-strip {
  position: absolute;
  right: 6px;
  bottom: calc(100% + 8px);
  max-width: min(380px, calc(100vw - 44px));
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 8px;
  border: 1px solid rgba(56, 216, 132, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 253, 250, 0.58)),
    radial-gradient(circle at 12% 0%, rgba(56, 216, 132, 0.16), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(79, 164, 207, 0.12), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 34px rgba(21, 48, 74, 0.14);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  scrollbar-width: none;
}

.lical-presence-strip::-webkit-scrollbar {
  display: none;
}

.lical-presence-dot {
  --presence-color: #38d884;
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 2px solid #38d884;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.22) 42%, transparent 43%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 50% 50%, var(--presence-color), transparent 72%);
  box-shadow:
    0 0 0 3px rgba(56, 216, 132, 0.13),
    0 10px 22px rgba(28, 128, 75, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  isolation: isolate;
}

.lical-presence-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid rgba(56, 216, 132, 0.28);
  border-radius: inherit;
  opacity: 0.8;
  animation: licalPresencePulse 2.8s ease-out infinite;
}

.lical-presence-dot::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: inherit;
  background: #38d884;
  box-shadow: 0 0 12px rgba(56, 216, 132, 0.82);
}

.lical-presence-dot > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #124a2e;
  background: rgba(255, 255, 255, 0.54);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.lical-presence-dot.has-photo {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.4)),
    radial-gradient(circle at 50% 50%, var(--presence-color), transparent 72%);
  overflow: visible;
}

.lical-presence-dot.has-photo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html.lical-night-mode .lical-presence-strip {
  border-color: rgba(56, 216, 132, 0.24);
  background:
    linear-gradient(145deg, rgba(12, 27, 42, 0.86), rgba(3, 11, 18, 0.72)),
    radial-gradient(circle at 12% 0%, rgba(56, 216, 132, 0.14), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(143, 247, 255, 0.1), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.32);
}

html.lical-night-mode .lical-presence-dot {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.1) 42%, transparent 43%),
    linear-gradient(145deg, rgba(18, 45, 64, 0.86), rgba(3, 11, 18, 0.64)),
    radial-gradient(circle at 50% 50%, var(--presence-color), transparent 72%);
  box-shadow:
    0 0 0 3px rgba(56, 216, 132, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.lical-night-mode .lical-presence-dot > span {
  color: #dcfff0;
  background: rgba(5, 18, 28, 0.58);
}

@keyframes licalPresencePulse {
  0% {
    transform: scale(0.72);
    opacity: 0.62;
  }
  70% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.lical-deck-trigger,
.lical-chat-fab,
.lical-dock-search input {
  border: 1px solid rgba(35, 111, 159, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: var(--lical-tool-text);
  font-family: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78);
}

.lical-deck-trigger,
.lical-chat-fab {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lical-deck-trigger:hover,
.lical-deck-trigger:focus-visible,
.lical-chat-fab:hover,
.lical-chat-fab:focus-visible {
  outline: none;
  border-color: rgba(240, 120, 108, 0.46);
  box-shadow: 0 12px 26px rgba(35, 111, 159, 0.14);
  transform: translateY(-1px);
}

.lical-deck-trigger span,
.lical-chat-fab span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--salmon), var(--blue-strong));
  color: #fff;
  font-family: "Segoe UI Symbol", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.lical-chat-fab span {
  background: linear-gradient(135deg, var(--blue-strong), #6f8797);
}

.lical-deck-trigger b,
.lical-chat-fab b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lical-dock-search,
.lical-dock-search label {
  min-width: 0;
  display: block;
}

.lical-dock-search input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 15px;
  outline: none;
  font-size: 12px;
  font-weight: 850;
}

.lical-dock-search input:focus {
  border-color: rgba(240, 120, 108, 0.5);
  box-shadow: 0 0 0 4px rgba(240, 120, 108, 0.12);
}

.lical-global-tools.lical-tool-deck {
  left: auto !important;
  right: 16px !important;
  bottom: 82px !important;
  width: min(430px, calc(100vw - 32px));
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.lical-global-tools.lical-tool-deck.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lical-tool-deck .lical-tool-button,
.lical-tool-deck .lical-search-fab {
  position: static !important;
  width: 100% !important;
  height: 42px;
  min-width: 0;
  justify-content: center;
  padding: 0 8px;
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.lical-tool-deck .lical-search-fab {
  display: inline-flex;
  gap: 7px;
  background: rgba(255, 255, 255, 0.8);
}

.lical-tool-deck .lical-tool-button b,
.lical-tool-deck .lical-search-fab span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 15px;
}

.lical-tool-deck .lical-tool-button span,
.lical-tool-deck .lical-search-fab b {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: var(--lical-tool-text);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.lical-panel {
  bottom: 138px;
}

.lical-notification-panel,
.lical-accessibility-panel,
.lical-search-panel {
  right: 16px;
  left: auto;
}

.lical-tool-status {
  bottom: 86px;
}

.support-chat {
  right: 16px !important;
  bottom: 84px !important;
  z-index: 1235 !important;
}

.support-chat .support-toggle {
  display: none !important;
}

.support-panel {
  margin-bottom: 8px;
}

.page-grid:not(.dashboard-page) {
  gap: 12px;
  align-items: start;
}

.page-grid:not(.dashboard-page) > .card,
.page-grid:not(.dashboard-page) > .hero-panel,
.page-grid:not(.dashboard-page) .card,
.page-grid:not(.dashboard-page) .hero-panel {
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(21, 48, 74, 0.07);
}

.page-grid:not(.dashboard-page) h2 {
  margin-bottom: 8px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.12;
}

.page-grid:not(.dashboard-page) h3 {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.2;
}

.page-grid:not(.dashboard-page) p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.page-grid:not(.dashboard-page) .kicker {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.page-grid:not(.dashboard-page) .badge {
  padding: 4px 7px;
  font-size: 10px;
}

.page-grid:not(.dashboard-page) input,
.page-grid:not(.dashboard-page) select,
.page-grid:not(.dashboard-page) textarea {
  min-height: 38px;
  border-radius: 12px;
  font-size: 12px;
}

.page-grid:not(.dashboard-page) button:not(.lical-tool-button):not(.lical-search-fab):not(.lab-suite-card):not(.support-toggle) {
  border-radius: 11px;
  font-size: 12px;
}

.page-grid:not(.dashboard-page) .microbe-stats,
.page-grid:not(.dashboard-page) .factor-grid,
.page-grid:not(.dashboard-page) .admin-grid,
.page-grid:not(.dashboard-page) .decision-grid,
.page-grid:not(.dashboard-page) .terms-grid,
.page-grid:not(.dashboard-page) .legal-grid,
.page-grid:not(.dashboard-page) .reference-grid,
.page-grid:not(.dashboard-page) .citation-grid,
.page-grid:not(.dashboard-page) .assay-grid,
.page-grid:not(.dashboard-page) .pathogen-grid,
.page-grid:not(.dashboard-page) .source-grid,
.page-grid:not(.dashboard-page) .community-summary,
.page-grid:not(.dashboard-page) .profile-mini-stats {
  gap: 9px;
}

.page-grid:not(.dashboard-page) .microbe-stats > div,
.page-grid:not(.dashboard-page) .admin-grid > div,
.page-grid:not(.dashboard-page) .decision-grid article,
.page-grid:not(.dashboard-page) .terms-grid article,
.page-grid:not(.dashboard-page) .legal-grid article,
.page-grid:not(.dashboard-page) .reference-grid article,
.page-grid:not(.dashboard-page) .citation-grid article,
.page-grid:not(.dashboard-page) .pathogen-card,
.page-grid:not(.dashboard-page) .selected-profile,
.page-grid:not(.dashboard-page) .compact-list article,
.page-grid:not(.dashboard-page) .activity-stream article,
.page-grid:not(.dashboard-page) .audit-feed article,
.page-grid:not(.dashboard-page) .user-row {
  padding: 11px;
  border-radius: 13px;
}

.page-grid:not(.dashboard-page) .microbe-stats strong,
.page-grid:not(.dashboard-page) .stat-grid strong,
.page-grid:not(.dashboard-page) .community-summary strong {
  font-size: 22px;
  line-height: 1.05;
}

.page-grid:not(.dashboard-page) .hero-panel,
.page-grid:not(.dashboard-page) .vetlex-page-hero,
.page-grid:not(.dashboard-page) .profile-hero,
.page-grid:not(.dashboard-page) .advanced-hero-card {
  min-height: 0;
}

.page-grid:not(.dashboard-page) .advanced-hero-grid,
.page-grid:not(.dashboard-page) .vetlex-page-hero,
.page-grid:not(.dashboard-page) .profile-hero,
.page-grid:not(.dashboard-page) .hub-generator {
  gap: 12px;
}

.page-grid:not(.dashboard-page) .comparison-table,
.page-grid:not(.dashboard-page) .inventory-list,
.page-grid:not(.dashboard-page) .audit-feed,
.page-grid:not(.dashboard-page) .compact-list,
.page-grid:not(.dashboard-page) .activity-stream,
.page-grid:not(.dashboard-page) .user-management-grid,
.page-grid:not(.dashboard-page) .simulation-ledger,
.page-grid:not(.dashboard-page) .rag-results {
  gap: 8px;
}

.page-grid:not(.dashboard-page) .comparison-table > div,
.page-grid:not(.dashboard-page) .data-editor-head,
.page-grid:not(.dashboard-page) .data-editor-row {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}

html.lical-night-mode .lical-floating-dock,
html.lical-night-mode .lical-global-tools.lical-tool-deck,
html.lical-night-mode .lical-deck-trigger,
html.lical-night-mode .lical-chat-fab,
html.lical-night-mode .lical-dock-search input {
  border-color: rgba(186, 214, 211, 0.18);
  background:
    linear-gradient(145deg, rgba(22, 35, 34, 0.94), rgba(18, 28, 30, 0.88));
  color: #eef8f5;
}

html.lical-night-mode .lical-tool-deck .lical-search-fab {
  background: rgba(23, 35, 35, 0.78);
}

html.lical-night-mode .lical-tool-deck .lical-tool-button span,
html.lical-night-mode .lical-tool-deck .lical-search-fab b {
  color: #eef8f5;
}

@media (max-width: 720px) {
  .lical-floating-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
  }

  .lical-deck-trigger,
  .lical-chat-fab {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .lical-deck-trigger span,
  .lical-chat-fab span {
    width: 25px;
    height: 25px;
    border-radius: 10px;
  }

  .lical-dock-search input {
    height: 38px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 11px;
  }

  .lical-global-tools.lical-tool-deck {
    left: 10px !important;
    right: 10px !important;
    bottom: 66px !important;
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border-radius: 16px;
    max-width: none;
  }

  .lical-tool-deck .lical-tool-button,
  .lical-tool-deck .lical-search-fab {
    width: 100% !important;
    height: 38px;
    padding: 0;
  }

  .lical-tool-deck .lical-tool-button span,
  .lical-tool-deck .lical-search-fab b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .lical-panel {
    left: 10px !important;
    right: 10px !important;
    bottom: 118px;
    width: auto;
  }

  .support-chat {
    right: 10px !important;
    bottom: 64px !important;
  }

  .page-grid:not(.dashboard-page) {
    gap: 10px;
  }

  .page-grid:not(.dashboard-page) > .card,
  .page-grid:not(.dashboard-page) > .hero-panel,
  .page-grid:not(.dashboard-page) .card,
  .page-grid:not(.dashboard-page) .hero-panel {
    padding: 13px;
    border-radius: 13px;
  }

  .page-grid:not(.dashboard-page) p {
    font-size: 12px;
  }
}

.dashboard-page .dashboard-schedule-card.liquid-week-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(49, 128, 150, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 251, 250, 0.74) 44%, rgba(255, 246, 244, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
  box-shadow:
    0 24px 54px rgba(39, 76, 104, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  isolation: isolate;
}

.dashboard-page .dashboard-schedule-card.liquid-week-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(255, 255, 255, 0.55) 28%, transparent 42%),
    linear-gradient(90deg, rgba(62, 177, 169, 0.1), transparent 38%, rgba(236, 143, 130, 0.12));
  opacity: 0.78;
}

.dashboard-page .liquid-week-card > h2 {
  margin-bottom: 8px;
}

.dashboard-page .liquid-week-card .schedule-mini-facts {
  margin-bottom: 8px;
}

.dashboard-page .liquid-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid rgba(49, 128, 150, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 26px rgba(31, 78, 110, 0.08);
  backdrop-filter: blur(18px) saturate(1.26);
}

.dashboard-page .liquid-week-title {
  display: grid;
  min-width: 118px;
  gap: 2px;
}

.dashboard-page .liquid-week-title span {
  color: rgba(53, 87, 103, 0.68);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-page .liquid-week-title strong {
  color: var(--blue-strong);
  font-size: 13px;
  line-height: 1.12;
}

.dashboard-page .liquid-week-actions {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.dashboard-page .liquid-week-actions button {
  min-width: 54px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(49, 128, 150, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--blue-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-page .liquid-week-actions button:hover,
.dashboard-page .liquid-week-actions button:focus-visible,
.dashboard-page .liquid-week-actions button[aria-pressed="true"] {
  border-color: rgba(17, 116, 139, 0.36);
  background: linear-gradient(135deg, rgba(231, 251, 248, 0.86), rgba(255, 240, 236, 0.84));
  color: #0f6271;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 20px rgba(31, 102, 117, 0.11);
}

.dashboard-page .liquid-week-actions button:hover {
  transform: translateY(-1px);
}

.dashboard-page .liquid-week-actions button:focus-visible {
  outline: 2px solid rgba(236, 143, 130, 0.42);
  outline-offset: 2px;
}

.dashboard-page .liquid-week-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid rgba(49, 128, 150, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px rgba(31, 78, 110, 0.08);
  backdrop-filter: blur(20px) saturate(1.2);
}

.dashboard-page .liquid-week-inspector span {
  grid-column: 1 / -1;
  color: rgba(53, 87, 103, 0.62);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-page .liquid-week-inspector strong {
  overflow: hidden;
  color: var(--blue-strong);
  font-size: 17px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .liquid-week-inspector em {
  justify-self: end;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(12, 107, 126, 0.1);
  color: #0d6876;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-page .liquid-week-inspector b {
  justify-self: start;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(236, 143, 130, 0.13);
  color: #b9574d;
  font-size: 11px;
  line-height: 1;
}

.dashboard-page .liquid-week-inspector small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: rgba(46, 70, 84, 0.72);
  font-size: 11px;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .liquid-week-card .advanced-week-roster {
  margin-top: 8px;
}

.dashboard-page .liquid-week-card .roster-day,
.dashboard-page .liquid-week-card .shift-day-card {
  position: relative;
  border: 1px solid rgba(49, 128, 150, 0.13);
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 20px rgba(31, 78, 110, 0.06);
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(1.12);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    opacity 170ms ease,
    filter 170ms ease;
}

.dashboard-page .liquid-week-card .roster-day:hover,
.dashboard-page .liquid-week-card .shift-day-card:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 116, 139, 0.28);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 26px rgba(31, 78, 110, 0.1);
}

.dashboard-page .liquid-week-card .roster-day:focus-visible,
.dashboard-page .liquid-week-card .shift-day-card:focus-visible {
  outline: 2px solid rgba(236, 143, 130, 0.48);
  outline-offset: 2px;
}

.dashboard-page .liquid-week-card .roster-day.today-day,
.dashboard-page .liquid-week-card .roster-day:first-child {
  border-color: rgba(236, 143, 130, 0.24);
}

.dashboard-page .liquid-week-card .roster-day.liquid-selected-day {
  border-color: rgba(17, 116, 139, 0.42);
  background:
    linear-gradient(145deg, rgba(231, 251, 248, 0.78), rgba(255, 255, 255, 0.66) 48%, rgba(255, 240, 236, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 30px rgba(31, 102, 117, 0.13);
}

.dashboard-page .liquid-week-card .shift-day-card.liquid-selected-shift {
  border-color: rgba(236, 143, 130, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 244, 240, 0.86), rgba(236, 252, 249, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 24px rgba(196, 91, 84, 0.11);
}

.dashboard-page .liquid-week-card .shift-day-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0;
  transition: opacity 170ms ease;
}

.dashboard-page .liquid-week-card .shift-day-card:hover::after,
.dashboard-page .liquid-week-card .shift-day-card.liquid-selected-shift::after {
  opacity: 1;
}

.dashboard-page .liquid-week-card.liquid-filter-morning .shift-day-card:not([data-liquid-shift="morning"]),
.dashboard-page .liquid-week-card.liquid-filter-afternoon .shift-day-card:not([data-liquid-shift="afternoon"]),
.dashboard-page .liquid-week-card.liquid-filter-night .shift-day-card:not([data-liquid-shift="night"]) {
  opacity: 0.34;
  filter: saturate(0.68);
}

.dashboard-page .liquid-week-card.liquid-filter-morning .shift-day-card[data-liquid-shift="morning"],
.dashboard-page .liquid-week-card.liquid-filter-afternoon .shift-day-card[data-liquid-shift="afternoon"],
.dashboard-page .liquid-week-card.liquid-filter-night .shift-day-card[data-liquid-shift="night"] {
  border-color: rgba(17, 116, 139, 0.3);
  background: rgba(236, 252, 249, 0.74);
}

html.lical-night-mode .dashboard-page .dashboard-schedule-card.liquid-week-card {
  border-color: rgba(186, 214, 211, 0.18);
  background:
    linear-gradient(135deg, rgba(19, 30, 31, 0.94), rgba(15, 26, 28, 0.86) 44%, rgba(30, 28, 30, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.lical-night-mode .dashboard-page .dashboard-schedule-card.liquid-week-card::before {
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(255, 255, 255, 0.1) 28%, transparent 42%),
    linear-gradient(90deg, rgba(96, 214, 197, 0.12), transparent 38%, rgba(236, 143, 130, 0.12));
}

html.lical-night-mode .dashboard-page .liquid-week-toolbar,
html.lical-night-mode .dashboard-page .liquid-week-inspector,
html.lical-night-mode .dashboard-page .liquid-week-card .roster-day,
html.lical-night-mode .dashboard-page .liquid-week-card .shift-day-card {
  border-color: rgba(186, 214, 211, 0.16);
  background: rgba(24, 37, 38, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

html.lical-night-mode .dashboard-page .liquid-week-title strong,
html.lical-night-mode .dashboard-page .liquid-week-inspector strong {
  color: #f1fbf7;
}

html.lical-night-mode .dashboard-page .liquid-week-title span,
html.lical-night-mode .dashboard-page .liquid-week-inspector span,
html.lical-night-mode .dashboard-page .liquid-week-inspector small {
  color: rgba(221, 240, 236, 0.68);
}

html.lical-night-mode .dashboard-page .liquid-week-inspector em {
  background: rgba(96, 214, 197, 0.13);
  color: #b9f1e8;
}

html.lical-night-mode .dashboard-page .liquid-week-inspector b {
  background: rgba(236, 143, 130, 0.14);
  color: #ffc2b9;
}

html.lical-night-mode .dashboard-page .liquid-week-actions button {
  border-color: rgba(186, 214, 211, 0.14);
  background: rgba(16, 28, 30, 0.68);
  color: #e9f7f3;
}

html.lical-night-mode .dashboard-page .liquid-week-actions button:hover,
html.lical-night-mode .dashboard-page .liquid-week-actions button:focus-visible,
html.lical-night-mode .dashboard-page .liquid-week-actions button[aria-pressed="true"] {
  border-color: rgba(96, 214, 197, 0.32);
  background: linear-gradient(135deg, rgba(34, 63, 61, 0.8), rgba(55, 38, 37, 0.72));
  color: #f2fffb;
}

html.lical-night-mode .dashboard-page .liquid-week-card .roster-day.liquid-selected-day,
html.lical-night-mode .dashboard-page .liquid-week-card .shift-day-card.liquid-selected-shift,
html.lical-night-mode .dashboard-page .liquid-week-card.liquid-filter-morning .shift-day-card[data-liquid-shift="morning"],
html.lical-night-mode .dashboard-page .liquid-week-card.liquid-filter-afternoon .shift-day-card[data-liquid-shift="afternoon"],
html.lical-night-mode .dashboard-page .liquid-week-card.liquid-filter-night .shift-day-card[data-liquid-shift="night"] {
  border-color: rgba(96, 214, 197, 0.34);
  background: linear-gradient(145deg, rgba(29, 56, 54, 0.86), rgba(31, 38, 40, 0.78));
}

@media (max-width: 720px) {
  .dashboard-page .liquid-week-toolbar {
    display: grid;
    gap: 7px;
    padding: 7px;
    border-radius: 13px;
    scroll-margin-top: 210px;
  }

  .dashboard-page .liquid-week-title {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    min-width: 0;
  }

  .dashboard-page .liquid-week-title span {
    align-self: center;
    font-size: 9px;
  }

  .dashboard-page .liquid-week-title strong {
    justify-self: end;
    font-size: 11px;
  }

  .dashboard-page .liquid-week-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .dashboard-page .liquid-week-actions button {
    min-width: 0;
    min-height: 29px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 9px;
  }

  .dashboard-page .liquid-week-inspector {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 6px;
    padding: 7px;
    border-radius: 13px;
    scroll-margin-top: 210px;
  }

  .dashboard-page .liquid-week-inspector span {
    font-size: 8px;
  }

  .dashboard-page .liquid-week-inspector strong {
    font-size: 12px;
  }

  .dashboard-page .liquid-week-inspector em,
  .dashboard-page .liquid-week-inspector b {
    padding: 4px 6px;
    font-size: 8px;
  }

  .dashboard-page .liquid-week-inspector small {
    font-size: 9px;
    white-space: normal;
  }

  .dashboard-page .liquid-week-card .advanced-week-roster {
    margin-top: 6px;
  }

  .dashboard-page .liquid-week-card .roster-day,
  .dashboard-page .liquid-week-card .shift-day-card {
    backdrop-filter: blur(10px) saturate(1.08);
  }

  .dashboard-page .liquid-week-card .shift-day-head {
    justify-content: center;
  }

  .dashboard-page .liquid-week-card .shift-day-head strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .dashboard-page .liquid-week-card .roster-day:hover,
  .dashboard-page .liquid-week-card .shift-day-card:hover {
    transform: none;
  }
}

@media (max-width: 420px) {
  .dashboard-page .liquid-week-toolbar,
  .dashboard-page .liquid-week-inspector {
    margin: 6px 0;
  }

  .dashboard-page .liquid-week-actions button {
    font-size: 8px;
  }
}

@keyframes lical-space-drift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 82px 128px, -140px 220px, 210px -160px, 0 0;
  }
}

@keyframes lical-fish-glide {
  0% {
    transform: translate3d(-22vw, 0, 0) scale(0.92);
    opacity: 0;
  }
  14% {
    opacity: 0.24;
  }
  86% {
    opacity: 0.18;
  }
  100% {
    transform: translate3d(122vw, -5vh, 0) scale(1.02);
    opacity: 0;
  }
}

html.lical-night-mode {
  --lical-space-black: #000;
  --lical-space-panel: rgba(2, 6, 11, 0.78);
  --lical-space-panel-strong: rgba(0, 0, 0, 0.92);
  --lical-space-line: rgba(146, 221, 232, 0.2);
  --lical-tool-surface: rgba(4, 8, 13, 0.56);
  --lical-tool-border: rgba(146, 221, 232, 0.2);
  --lical-tool-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
  background: #000 !important;
}

html.lical-night-mode body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #000 !important;
}

html.lical-night-mode body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.7px),
    radial-gradient(circle at 78% 18%, rgba(126, 232, 242, 0.68) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 72%, rgba(255, 182, 168, 0.52) 0 1px, transparent 1.6px),
    linear-gradient(132deg, #000 0%, #02060d 48%, #000 100%);
  background-size: 178px 178px, 284px 284px, 396px 396px, 100% 100%;
  animation: lical-space-drift 42s linear infinite;
  opacity: 0.94;
}

html.lical-night-mode body::after {
  content: "";
  position: fixed;
  left: -150px;
  top: 70vh;
  z-index: 0;
  width: 132px;
  height: 34px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(126, 232, 242, 0.2) 10% 15%, transparent 16% 20%),
    linear-gradient(105deg, rgba(137, 225, 235, 0.08), rgba(255, 182, 168, 0.24) 48%, rgba(153, 214, 226, 0.08));
  box-shadow:
    22vw -52vh 0 -10px rgba(126, 232, 242, 0.18),
    44vw -33vh 0 -18px rgba(255, 182, 168, 0.16),
    68vw -62vh 0 -12px rgba(146, 221, 232, 0.14),
    88vw -26vh 0 -20px rgba(255, 182, 168, 0.12);
  clip-path: polygon(0 50%, 15% 21%, 25% 38%, 70% 24%, 100% 50%, 70% 76%, 25% 62%, 15% 79%);
  filter: drop-shadow(0 0 18px rgba(126, 232, 242, 0.18));
  mix-blend-mode: screen;
  animation: lical-fish-glide 28s ease-in-out infinite;
}

html.lical-night-mode .login-shell,
html.lical-night-mode .app-shell {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

html.lical-night-mode .sidebar,
html.lical-night-mode .topbar,
html.lical-night-mode .brand,
html.lical-night-mode .user-card,
html.lical-night-mode .card,
html.lical-night-mode .metric-card,
html.lical-night-mode .hero-panel,
html.lical-night-mode .login-card,
html.lical-night-mode .login-panel,
html.lical-night-mode .login-institution,
html.lical-night-mode .vetlex-research-entry,
html.lical-night-mode .vetlex-terms-entry,
html.lical-night-mode .month-day-card,
html.lical-night-mode .shift-day-card,
html.lical-night-mode .roster-day,
html.lical-night-mode .birthday-month-strip article,
html.lical-night-mode .compact-list article,
html.lical-night-mode .activity-stream article,
html.lical-night-mode .alert-list article,
html.lical-night-mode .lab-advanced-suite,
html.lical-night-mode .lab-subpage-chrome,
html.lical-night-mode .lab-suite-card,
html.lical-night-mode .lab-suite-meter {
  border-color: var(--lical-space-line) !important;
  background:
    linear-gradient(145deg, rgba(8, 12, 18, 0.9), rgba(0, 0, 0, 0.76)) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  color: #edf7f4 !important;
  backdrop-filter: blur(18px) saturate(1.14);
}

html.lical-night-mode .dashboard-hero,
html.lical-night-mode .vetlex-research-entry,
html.lical-night-mode .vetlex-terms-entry,
html.lical-night-mode .dashboard-page .dashboard-schedule-card.liquid-week-card {
  background:
    linear-gradient(138deg, rgba(4, 8, 15, 0.9), rgba(0, 0, 0, 0.74) 52%, rgba(9, 13, 21, 0.9)),
    linear-gradient(92deg, rgba(127, 226, 238, 0.09), transparent 42%, rgba(255, 182, 168, 0.08)) !important;
}

html.lical-night-mode .dashboard-page .liquid-week-toolbar,
html.lical-night-mode .dashboard-page .liquid-week-inspector,
html.lical-night-mode .dashboard-page .liquid-week-card .roster-day,
html.lical-night-mode .dashboard-page .liquid-week-card .shift-day-card {
  border-color: rgba(146, 221, 232, 0.2);
  background: rgba(1, 5, 10, 0.58);
  backdrop-filter: blur(18px) saturate(1.18);
}

html.lical-night-mode .lical-floating-dock,
html.lical-night-mode .lical-global-tools.lical-tool-deck,
html.lical-night-mode .lical-panel {
  border-color: rgba(146, 221, 232, 0.22);
  background:
    linear-gradient(145deg, rgba(9, 16, 25, 0.62), rgba(0, 0, 0, 0.46)),
    linear-gradient(92deg, rgba(126, 232, 242, 0.1), transparent 48%, rgba(255, 182, 168, 0.08));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(1.38);
}

html.lical-night-mode .lical-deck-trigger,
html.lical-night-mode .lical-chat-fab,
html.lical-night-mode .lical-dock-search input,
html.lical-night-mode .lical-tool-button,
html.lical-night-mode .lical-search-fab,
html.lical-night-mode .lical-panel-head button,
html.lical-night-mode .lical-font-controls button {
  border-color: rgba(146, 221, 232, 0.2);
  background: rgba(0, 0, 0, 0.46);
  color: #eef8f5;
  backdrop-filter: blur(18px) saturate(1.22);
}

html.lical-night-mode .lical-tool-button[aria-pressed="true"] {
  border-color: rgba(255, 182, 168, 0.42);
  background: linear-gradient(135deg, rgba(255, 182, 168, 0.18), rgba(126, 232, 242, 0.1));
}

html.lical-night-mode .lical-deck-trigger span,
html.lical-night-mode .lical-chat-fab span,
html.lical-night-mode .lical-tool-button b,
html.lical-night-mode .lical-search-fab span {
  background: linear-gradient(135deg, rgba(255, 182, 168, 0.24), rgba(126, 232, 242, 0.22));
  color: #f7fbf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html.lical-deck-opaque .lical-floating-dock,
html.lical-deck-opaque .lical-global-tools.lical-tool-deck,
html.lical-deck-opaque .lical-panel {
  background: #f8fbfb !important;
  backdrop-filter: none !important;
}

html.lical-deck-opaque .lical-deck-trigger,
html.lical-deck-opaque .lical-chat-fab,
html.lical-deck-opaque .lical-dock-search input,
html.lical-deck-opaque .lical-tool-button,
html.lical-deck-opaque .lical-search-fab {
  background: #fff !important;
  backdrop-filter: none !important;
}

html.lical-night-mode.lical-deck-opaque .lical-floating-dock,
html.lical-night-mode.lical-deck-opaque .lical-global-tools.lical-tool-deck,
html.lical-night-mode.lical-deck-opaque .lical-panel {
  border-color: rgba(146, 221, 232, 0.24);
  background: #02050a !important;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.lical-night-mode.lical-deck-opaque .lical-deck-trigger,
html.lical-night-mode.lical-deck-opaque .lical-chat-fab,
html.lical-night-mode.lical-deck-opaque .lical-dock-search input,
html.lical-night-mode.lical-deck-opaque .lical-tool-button,
html.lical-night-mode.lical-deck-opaque .lical-search-fab {
  border-color: rgba(146, 221, 232, 0.2);
  background: #060a10 !important;
  color: #eef8f5;
}

@media (prefers-reduced-motion: reduce) {
  html.lical-night-mode body::before,
  html.lical-night-mode body::after {
    animation: none;
  }
}

html.lical-night-mode {
  --ink: #f7fffc;
  --muted: #c8e8e4;
  --blue-strong: #9ef4ff;
  --salmon-strong: #ffc2b8;
  --line: rgba(158, 244, 255, 0.3);
  --lical-night-plain: #f7fffc;
  --lical-night-soft: #c8e8e4;
  --lical-night-faint: #a9d4d1;
  --lical-night-card-solid: rgba(1, 4, 8, 0.94);
  --lical-night-card-glass: rgba(4, 10, 16, 0.88);
  --lical-night-line: rgba(158, 244, 255, 0.34);
}

html.lical-night-mode .sidebar,
html.lical-night-mode .topbar,
html.lical-night-mode .brand,
html.lical-night-mode .user-card,
html.lical-night-mode .card,
html.lical-night-mode .metric-card,
html.lical-night-mode .hero-panel,
html.lical-night-mode .login-card,
html.lical-night-mode .login-panel,
html.lical-night-mode .login-institution,
html.lical-night-mode .vetlex-research-entry,
html.lical-night-mode .vetlex-terms-entry,
html.lical-night-mode .month-day-card,
html.lical-night-mode .shift-day-card,
html.lical-night-mode .roster-day,
html.lical-night-mode .birthday-month-strip article,
html.lical-night-mode .compact-list article,
html.lical-night-mode .activity-stream article,
html.lical-night-mode .alert-list article,
html.lical-night-mode .community-summary article,
html.lical-night-mode .community-board article,
html.lical-night-mode .schedule-room-grid article,
html.lical-night-mode .lab-advanced-suite,
html.lical-night-mode .lab-subpage-chrome,
html.lical-night-mode .lab-suite-card,
html.lical-night-mode .lab-suite-meter,
html.lical-night-mode .terms-grid article,
html.lical-night-mode .legal-grid article,
html.lical-night-mode .tool-terms-grid article,
html.lical-night-mode .reference-grid article,
html.lical-night-mode .citation-grid article,
html.lical-night-mode .decision-grid article,
html.lical-night-mode .newsletter-grid .card {
  border-color: var(--lical-night-line) !important;
  background:
    linear-gradient(145deg, rgba(6, 13, 21, 0.96), rgba(0, 0, 0, 0.88)) !important;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.075) !important;
  color: var(--lical-night-plain) !important;
}

html.lical-night-mode .card::before,
html.lical-night-mode .hero-panel::before {
  opacity: 0.38;
}

html.lical-night-mode h1,
html.lical-night-mode h2,
html.lical-night-mode h3,
html.lical-night-mode h4,
html.lical-night-mode strong,
html.lical-night-mode .kpi-value,
html.lical-night-mode .topbar h1,
html.lical-night-mode .brand strong,
html.lical-night-mode .month-day-card header strong,
html.lical-night-mode .shift-day-head strong,
html.lical-night-mode .terms-grid article strong,
html.lical-night-mode .legal-grid article strong,
html.lical-night-mode .citation-grid article strong {
  color: var(--lical-night-plain) !important;
}

html.lical-night-mode p:not(.kicker),
html.lical-night-mode .card p:not(.kicker),
html.lical-night-mode .card span:not(.badge),
html.lical-night-mode .metric-card p,
html.lical-night-mode .terms-grid article span,
html.lical-night-mode .legal-grid article span,
html.lical-night-mode .tool-terms-grid article p,
html.lical-night-mode .reference-grid article span,
html.lical-night-mode .citation-grid article p,
html.lical-night-mode .decision-grid article span,
html.lical-night-mode .compact-list article p,
html.lical-night-mode .activity-stream article p,
html.lical-night-mode .alert-list article p,
html.lical-night-mode .calendar-open-day,
html.lical-night-mode .empty-state,
html.lical-night-mode .roster-empty,
html.lical-night-mode .user-card small,
html.lical-night-mode .brand span {
  color: var(--lical-night-soft) !important;
  opacity: 1 !important;
}

html.lical-night-mode .kicker,
html.lical-night-mode .badge,
html.lical-night-mode .login-label,
html.lical-night-mode .calendar-toolbar span,
html.lical-night-mode .month-day-card header span,
html.lical-night-mode .shift-day-head small,
html.lical-night-mode .birthday-month-strip small,
html.lical-night-mode small {
  color: #b7f3f0 !important;
  opacity: 1 !important;
}

html.lical-night-mode .login-tabs {
  border-bottom-color: rgba(158, 244, 255, 0.22) !important;
  background: rgba(0, 0, 0, 0.32) !important;
}

html.lical-night-mode .login-tabs button {
  color: #d4f5f4 !important;
  background: rgba(7, 15, 22, 0.54) !important;
  border-right: 1px solid rgba(158, 244, 255, 0.16) !important;
  opacity: 1 !important;
}

html.lical-night-mode .login-tabs button:last-child {
  border-right: 0 !important;
}

html.lical-night-mode .login-tabs button.active {
  color: #9ef4ff !important;
  background:
    linear-gradient(180deg, rgba(20, 48, 62, 0.78), rgba(5, 14, 22, 0.86)) !important;
  box-shadow:
    inset 0 -3px 0 #9ef4ff,
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

html.lical-night-mode .login-legal-links {
  color: #d2f4f1 !important;
  opacity: 1 !important;
}

html.lical-night-mode .login-legal-links button {
  color: #9ef4ff !important;
  opacity: 1 !important;
}

html.lical-night-mode .login-legal-links span {
  background: rgba(158, 244, 255, 0.62) !important;
}

html.lical-night-mode .login-external-link,
html.lical-night-mode .login-legal-panel,
html.lical-night-mode .external-request-note {
  border-color: rgba(158, 244, 255, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(255, 182, 168, 0.12), rgba(126, 232, 242, 0.12)),
    rgba(2, 8, 14, 0.92) !important;
  color: var(--lical-night-plain) !important;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.075) !important;
}

html.lical-night-mode .login-external-link strong,
html.lical-night-mode .login-legal-panel strong {
  color: #fff7f3 !important;
}

html.lical-night-mode .login-external-link small,
html.lical-night-mode .login-legal-panel p,
html.lical-night-mode .external-form-head p,
html.lical-night-mode .external-request-note {
  color: var(--lical-night-soft) !important;
  opacity: 1 !important;
}

html.lical-night-mode .google-button,
html.lical-night-mode .external-form-head button {
  border-color: rgba(158, 244, 255, 0.28) !important;
  background: rgba(4, 12, 19, 0.92) !important;
  color: #effffb !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075) !important;
}

html.lical-night-mode input,
html.lical-night-mode textarea,
html.lical-night-mode select,
html.lical-night-mode .lical-dock-search input,
html.lical-night-mode .lical-search-box input {
  border-color: rgba(158, 244, 255, 0.3) !important;
  background: rgba(0, 0, 0, 0.72) !important;
  color: #f7fffc !important;
}

html.lical-night-mode input::placeholder,
html.lical-night-mode textarea::placeholder {
  color: #b9d7d4 !important;
  opacity: 1 !important;
}

html.lical-night-mode .user-card-initials,
html.lical-night-mode .calendar-birthday-avatars span,
html.lical-night-mode .roster-avatar-row span,
html.lical-night-mode .roster-person > span {
  border-color: rgba(158, 244, 255, 0.32) !important;
  background:
    linear-gradient(135deg, rgba(255, 182, 168, 0.28), rgba(126, 232, 242, 0.22)),
    #07111a !important;
  color: #f7fffc !important;
}

.lical-governance-business-note,
.lical-governance-role-note {
  display: block;
}

.lical-governance-role-note {
  margin-top: 6px;
}

.lical-font-family-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.lical-font-family-options button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 9px 8px;
  border: 1px solid rgba(138, 91, 79, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: #34231f;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lical-font-family-options button[aria-pressed="true"] {
  border-color: rgba(217, 105, 90, 0.46);
  background:
    linear-gradient(135deg, rgba(217, 105, 90, 0.18), rgba(126, 232, 242, 0.12)),
    rgba(255, 255, 255, 0.82);
}

.lical-font-family-options strong {
  font-size: 0.74rem;
  font-weight: 900;
}

.lical-font-family-options span {
  color: rgba(52, 35, 31, 0.66);
  font-size: 0.64rem;
  line-height: 1.2;
}

html.lical-night-mode .lical-font-family-options button {
  border-color: rgba(158, 244, 255, 0.24);
  background: rgba(4, 16, 22, 0.68);
  color: #f7fffc;
}

html.lical-night-mode .lical-font-family-options button[aria-pressed="true"] {
  border-color: rgba(158, 244, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(126, 232, 242, 0.18), rgba(255, 182, 168, 0.12)),
    rgba(4, 16, 22, 0.86);
}

html.lical-night-mode .lical-font-family-options span {
  color: #b9d7d4;
}

html.lical-font-times body,
html.lical-font-times button,
html.lical-font-times input,
html.lical-font-times textarea,
html.lical-font-times select,
html.lical-font-times .card,
html.lical-font-times .metric-card,
html.lical-font-times .lical-panel {
  font-family: "Times New Roman", Times, serif !important;
}

@media (max-width: 520px) {
  .lical-font-family-options {
    grid-template-columns: 1fr;
  }
}

/* Final dark-mode contrast pass: solid space background and readable VETLeX cards. */
html.lical-night-mode {
  --lical-space-black: #000000;
  --lical-space-card: rgba(2, 7, 13, 0.96);
  --lical-space-card-2: rgba(5, 13, 21, 0.94);
  --lical-space-card-3: rgba(0, 0, 0, 0.88);
  --lical-space-text: #f6fffc;
  --lical-space-soft: #ccefeb;
  --lical-space-muted: #a8d4d2;
  --lical-space-faint: #80aaa9;
  --lical-space-cyan: #8ff7ff;
  --lical-space-mint: #86f2d1;
  --lical-space-salmon: #ffc0b5;
  --lical-space-line: rgba(143, 247, 255, 0.36);
  --lical-space-line-strong: rgba(143, 247, 255, 0.54);
  background: #000 !important;
  color-scheme: dark;
}

html.lical-night-mode body {
  isolation: isolate;
  background:
    radial-gradient(circle at 11% 8%, rgba(143, 247, 255, 0.08), transparent 24%),
    radial-gradient(circle at 91% 12%, rgba(255, 192, 181, 0.07), transparent 26%),
    linear-gradient(180deg, #000 0%, #010205 42%, #000 100%) !important;
  color: var(--lical-space-text) !important;
}

.lical-space-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

html.lical-night-mode .lical-space-canvas {
  display: block;
}

html.lical-night-mode body::before {
  z-index: 0 !important;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 16%, rgba(143, 247, 255, 0.66) 0 1px, transparent 1.7px),
    radial-gradient(circle at 44% 78%, rgba(255, 192, 181, 0.54) 0 1px, transparent 1.8px),
    linear-gradient(180deg, #000, #02050b 48%, #000) !important;
  background-size: 210px 210px, 318px 318px, 440px 440px, 100% 100% !important;
  opacity: 0.58 !important;
  mix-blend-mode: screen;
  animation: lical-space-drift 58s linear infinite !important;
}

html.lical-night-mode body::after {
  z-index: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: auto !important;
  height: auto !important;
  inset: 0 !important;
  clip-path: none !important;
  background:
    linear-gradient(118deg, transparent 0 23%, rgba(143, 247, 255, 0.075) 35%, transparent 48%),
    linear-gradient(36deg, transparent 0 52%, rgba(255, 192, 181, 0.055) 64%, transparent 76%),
    radial-gradient(ellipse at 48% 118%, rgba(128, 242, 209, 0.13), transparent 58%) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0.72 !important;
  mix-blend-mode: screen;
  animation: lical-constellation-aurora 24s ease-in-out infinite alternate !important;
}

html.lical-night-mode .login-shell,
html.lical-night-mode .app-shell,
html.lical-night-mode main,
html.lical-night-mode .sidebar,
html.lical-night-mode .topbar {
  position: relative;
  z-index: 1;
}

html.lical-night-mode .card,
html.lical-night-mode .metric-card,
html.lical-night-mode .hero-panel,
html.lical-night-mode .dashboard-hero,
html.lical-night-mode .login-card,
html.lical-night-mode .login-panel,
html.lical-night-mode .login-institution,
html.lical-night-mode .vetlex-page-hero,
html.lical-night-mode .vetlex-brand-panel,
html.lical-night-mode .vetlex-section-head,
html.lical-night-mode .vetlex-footer,
html.lical-night-mode .vetlex-research-entry,
html.lical-night-mode .vetlex-terms-entry,
html.lical-night-mode .lab-advanced-suite,
html.lical-night-mode .lab-subpage-chrome,
html.lical-night-mode .lab-suite-card,
html.lical-night-mode .lab-suite-meter,
html.lical-night-mode .terms-grid article,
html.lical-night-mode .legal-grid article,
html.lical-night-mode .tool-terms-grid article,
html.lical-night-mode .reference-grid article,
html.lical-night-mode .citation-grid article,
html.lical-night-mode .decision-grid article,
html.lical-night-mode .newsletter-grid .card,
html.lical-night-mode .community-summary article,
html.lical-night-mode .community-board article,
html.lical-night-mode .schedule-room-grid article,
html.lical-night-mode .compact-list article,
html.lical-night-mode .activity-stream article,
html.lical-night-mode .alert-list article,
html.lical-night-mode .audit-feed article,
html.lical-night-mode .user-row,
html.lical-night-mode .pathogen-card,
html.lical-night-mode .selected-profile,
html.lical-night-mode .microbe-stats > div,
html.lical-night-mode .admin-grid > div,
html.lical-night-mode .source-grid article,
html.lical-night-mode .stat-grid div,
html.lical-night-mode .inventory-alerts article,
html.lical-night-mode .inventory-audit article,
html.lical-night-mode .simulation-ledger article,
html.lical-night-mode .rag-results article,
html.lical-night-mode .comparison-table > div,
html.lical-night-mode .empty-state {
  border-color: var(--lical-space-line) !important;
  background:
    linear-gradient(145deg, var(--lical-space-card-2), var(--lical-space-card-3) 58%, rgba(3, 9, 16, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(143, 247, 255, 0.09), transparent 32%) !important;
  color: var(--lical-space-text) !important;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.74),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(143, 247, 255, 0.05) !important;
}

html.lical-night-mode .vetlex-guide-grid {
  position: relative;
  z-index: 1;
}

html.lical-night-mode .vetlex-guide-card {
  position: relative;
  overflow: hidden;
  min-height: 218px;
  border: 1px solid var(--lical-space-line) !important;
  border-top-color: rgba(134, 242, 209, 0.86) !important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--guide-accent, #8ff7ff) 16%, transparent), transparent 33%),
    linear-gradient(145deg, rgba(5, 15, 24, 0.97), rgba(0, 0, 0, 0.92) 62%, rgba(2, 8, 13, 0.98)) !important;
  color: var(--lical-space-text) !important;
  box-shadow:
    0 26px 68px rgba(0, 0, 0, 0.76),
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    0 0 0 1px rgba(143, 247, 255, 0.055) !important;
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
}

html.lical-night-mode .vetlex-guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(143, 247, 255, 0.14), transparent 28%),
    linear-gradient(118deg, transparent 0 42%, rgba(255, 255, 255, 0.055) 50%, transparent 58%);
  opacity: 0.72;
}

html.lical-night-mode .vetlex-guide-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--guide-accent, #8ff7ff) 68%, white), transparent);
  opacity: 0.54;
}

html.lical-night-mode .vetlex-guide-card:hover,
html.lical-night-mode .vetlex-guide-card:focus-visible {
  border-color: var(--lical-space-line-strong) !important;
  transform: translateY(-2px);
  box-shadow:
    0 30px 82px rgba(0, 0, 0, 0.82),
    0 0 34px color-mix(in srgb, var(--guide-accent, #8ff7ff) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
}

html.lical-night-mode .vetlex-guide-card > * {
  position: relative;
  z-index: 1;
}

html.lical-night-mode .vetlex-guide-card strong,
html.lical-night-mode .vetlex-guide-card h3 {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(143, 247, 255, 0.12);
}

html.lical-night-mode .vetlex-guide-card > span:not(.vetlex-guide-head):not(.vetlex-guide-accent),
html.lical-night-mode .vetlex-guide-card p,
html.lical-night-mode .vetlex-guide-card small {
  color: var(--lical-space-soft) !important;
  opacity: 1 !important;
}

html.lical-night-mode .vetlex-guide-card em {
  color: var(--lical-space-cyan) !important;
  opacity: 1 !important;
  text-shadow: 0 0 16px rgba(143, 247, 255, 0.24);
}

html.lical-night-mode .vetlex-guide-icon {
  border-color: rgba(143, 247, 255, 0.2) !important;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.12), transparent 32%),
    rgba(2, 12, 19, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.42) !important;
}

html.lical-night-mode .vetlex-guide-tag,
html.lical-night-mode .badge {
  border: 1px solid rgba(143, 247, 255, 0.2) !important;
  background:
    linear-gradient(135deg, rgba(143, 247, 255, 0.16), rgba(134, 242, 209, 0.08)),
    rgba(1, 8, 13, 0.72) !important;
  color: #eafffc !important;
}

html.lical-night-mode .vetlex-guide-accent {
  background: linear-gradient(90deg, var(--guide-accent, #8ff7ff), rgba(255, 255, 255, 0.72), transparent) !important;
  opacity: 0.95 !important;
}

html.lical-night-mode h1,
html.lical-night-mode h2,
html.lical-night-mode h3,
html.lical-night-mode h4,
html.lical-night-mode strong,
html.lical-night-mode .kpi-value,
html.lical-night-mode .topbar h1,
html.lical-night-mode .brand strong,
html.lical-night-mode .vetlex-section-head h2,
html.lical-night-mode .vetlex-footer strong,
html.lical-night-mode .lab-suite-card strong,
html.lical-night-mode .month-day-card header strong,
html.lical-night-mode .shift-day-head strong,
html.lical-night-mode .terms-grid article strong,
html.lical-night-mode .legal-grid article strong,
html.lical-night-mode .citation-grid article strong,
html.lical-night-mode .decision-grid article strong {
  color: var(--lical-space-text) !important;
}

html.lical-night-mode p:not(.kicker),
html.lical-night-mode li,
html.lical-night-mode label,
html.lical-night-mode .card p:not(.kicker),
html.lical-night-mode .card span:not(.badge),
html.lical-night-mode .metric-card p,
html.lical-night-mode .terms-grid article span,
html.lical-night-mode .legal-grid article span,
html.lical-night-mode .tool-terms-grid article p,
html.lical-night-mode .reference-grid article span,
html.lical-night-mode .citation-grid article p,
html.lical-night-mode .decision-grid article span,
html.lical-night-mode .compact-list article p,
html.lical-night-mode .activity-stream article p,
html.lical-night-mode .alert-list article p,
html.lical-night-mode .calendar-open-day,
html.lical-night-mode .empty-state,
html.lical-night-mode .roster-empty,
html.lical-night-mode .user-card small,
html.lical-night-mode .brand span,
html.lical-night-mode .vetlex-section-head p,
html.lical-night-mode .vetlex-footer p,
html.lical-night-mode .vetlex-stats-strip small,
html.lical-night-mode .vetlex-brand-main p,
html.lical-night-mode .vetlex-partner-stack p {
  color: var(--lical-space-soft) !important;
  opacity: 1 !important;
}

html.lical-night-mode .kicker,
html.lical-night-mode small,
html.lical-night-mode .login-label,
html.lical-night-mode .calendar-toolbar span,
html.lical-night-mode .month-day-card header span,
html.lical-night-mode .shift-day-head small,
html.lical-night-mode .birthday-month-strip small,
html.lical-night-mode .vetlex-stats-strip strong,
html.lical-night-mode a {
  color: var(--lical-space-cyan) !important;
  opacity: 1 !important;
}

html.lical-night-mode input,
html.lical-night-mode textarea,
html.lical-night-mode select,
html.lical-night-mode .lical-dock-search input,
html.lical-night-mode .lical-search-box input {
  border-color: rgba(143, 247, 255, 0.32) !important;
  background: rgba(0, 0, 0, 0.78) !important;
  color: var(--lical-space-text) !important;
}

html.lical-night-mode input::placeholder,
html.lical-night-mode textarea::placeholder {
  color: var(--lical-space-muted) !important;
  opacity: 1 !important;
}

html.lical-night-mode .sidebar,
html.lical-night-mode .topbar,
html.lical-night-mode .brand,
html.lical-night-mode .user-card,
html.lical-night-mode .lical-floating-dock,
html.lical-night-mode .lical-global-tools.lical-tool-deck,
html.lical-night-mode .lical-panel {
  border-color: rgba(143, 247, 255, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(4, 10, 16, 0.84), rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at 0% 0%, rgba(143, 247, 255, 0.08), transparent 32%) !important;
  color: var(--lical-space-text) !important;
}

html.lical-night-mode .lical-deck-trigger,
html.lical-night-mode .lical-chat-fab,
html.lical-night-mode .lical-tool-button,
html.lical-night-mode .lical-search-fab,
html.lical-night-mode .lical-panel-head button,
html.lical-night-mode .lical-font-controls button,
html.lical-night-mode .lical-font-family-options button {
  border-color: rgba(143, 247, 255, 0.24) !important;
  background: rgba(0, 0, 0, 0.62) !important;
  color: var(--lical-space-text) !important;
}

html.lical-night-mode .lical-notification-item,
html.lical-night-mode .lical-result,
html.lical-night-mode .lical-access-action,
html.lical-night-mode .lical-font-controls span,
html.lical-night-mode .lical-font-family-options button[aria-pressed="true"] {
  border-color: rgba(143, 247, 255, 0.26) !important;
  background:
    linear-gradient(145deg, rgba(143, 247, 255, 0.1), rgba(0, 0, 0, 0.64)),
    rgba(3, 11, 18, 0.88) !important;
  color: var(--lical-space-text) !important;
}

@keyframes lical-constellation-aurora {
  0% {
    transform: translate3d(-1.2%, 0, 0) skewX(-3deg);
    opacity: 0.5;
  }
  50% {
    opacity: 0.78;
  }
  100% {
    transform: translate3d(1.2%, -1.3%, 0) skewX(3deg);
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.lical-night-mode body::before,
  html.lical-night-mode body::after,
  html.lical-night-mode .lical-space-canvas {
    animation: none !important;
  }
}

html.lical-night-mode .shrimp-orbit,
html.lical-night-mode .community-summary article,
html.lical-night-mode .compact-list article,
html.lical-night-mode .activity-stream article,
html.lical-night-mode .community-board article,
html.lical-night-mode .schedule-room-grid article,
html.lical-night-mode .shift-strip article,
html.lical-night-mode .audit-action-map article,
html.lical-night-mode .composer-attachments,
html.lical-night-mode .enriched-post .markdown-view,
html.lical-night-mode .hub-generator-preview,
html.lical-night-mode .hub-generator-controls,
html.lical-night-mode .asset-library article,
html.lical-night-mode .table-column-editor article,
html.lical-night-mode .table-cell-editor article,
html.lical-night-mode .hub-asset-preview,
html.lical-night-mode .palette-picker button,
html.lical-night-mode .data-editor-head,
html.lical-night-mode .data-editor-row,
html.lical-night-mode .inventory-alerts article,
html.lical-night-mode .inventory-audit article,
html.lical-night-mode .simulation-ledger article,
html.lical-night-mode .rag-results article,
html.lical-night-mode .comparison-table > div,
html.lical-night-mode .backend-status,
html.lical-night-mode .adapter-panel,
html.lical-night-mode .llm-answer,
html.lical-night-mode .live-room,
html.lical-night-mode .live-room article,
html.lical-night-mode .stat-grid div,
html.lical-night-mode .forest-plot span,
html.lical-night-mode .roster-day,
html.lical-night-mode .shift-day-card,
html.lical-night-mode .roster-avatar-summary,
html.lical-night-mode .roster-person,
html.lical-night-mode .roster-empty,
html.lical-night-mode .birthday-month-strip article,
html.lical-night-mode .month-day-card,
html.lical-night-mode .calendar-holiday,
html.lical-night-mode .holiday-ribbon,
html.lical-night-mode .birthday-ribbon,
html.lical-night-mode .empty-state,
html.lical-night-mode .culture-summary,
html.lical-night-mode .assay-summary,
html.lical-night-mode .assay-grid article,
html.lical-night-mode .factor-bar,
html.lical-night-mode .factor-grid > *,
html.lical-night-mode .microbe-stats > div,
html.lical-night-mode .microbe-filters,
html.lical-night-mode .microbe-table article,
html.lical-night-mode .collection-strip article,
html.lical-night-mode .reference-grid article,
html.lical-night-mode .source-grid article,
html.lical-night-mode .decision-grid article,
html.lical-night-mode .terms-grid article,
html.lical-night-mode .tool-terms-grid article,
html.lical-night-mode .legal-grid article,
html.lical-night-mode .citation-grid article,
html.lical-night-mode .profile-photo-ring,
html.lical-night-mode .profile-score,
html.lical-night-mode .profile-photo-drop,
html.lical-night-mode .profile-avatar-options button,
html.lical-night-mode .profile-role-lock,
html.lical-night-mode .profile-password,
html.lical-night-mode .profile-preferences,
html.lical-night-mode .profile-mini-stats article,
html.lical-night-mode .profile-upcoming,
html.lical-night-mode .profile-signature,
html.lical-night-mode .selected-profile,
html.lical-night-mode .molecule-editor svg,
html.lical-night-mode .rdkit-canvas,
html.lical-night-mode .molecule-3d {
  border-color: rgba(143, 247, 255, 0.26) !important;
  background:
    linear-gradient(145deg, rgba(7, 18, 29, 0.94), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 12% 0%, rgba(143, 247, 255, 0.12), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(255, 192, 181, 0.07), transparent 30%) !important;
  color: var(--lical-space-text) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.lical-night-mode .roster-day.holiday-day,
html.lical-night-mode .month-day-card.holiday {
  border-color: rgba(240, 173, 53, 0.46) !important;
  background:
    linear-gradient(145deg, rgba(19, 17, 8, 0.94), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 84% 0%, rgba(240, 173, 53, 0.18), transparent 34%) !important;
}

html.lical-night-mode .roster-day.birthday-day,
html.lical-night-mode .month-day-card.birthday,
html.lical-night-mode .birthday-month-strip article {
  border-color: rgba(255, 192, 181, 0.38) !important;
  background:
    linear-gradient(145deg, rgba(26, 9, 13, 0.92), rgba(0, 0, 0, 0.8)),
    radial-gradient(circle at 8% 0%, rgba(255, 192, 181, 0.16), transparent 34%) !important;
}

html.lical-night-mode .roster-day.today-day,
html.lical-night-mode .month-day-card.today,
html.lical-night-mode .shift-day-card.filled {
  border-color: rgba(143, 247, 255, 0.42) !important;
  outline-color: rgba(143, 247, 255, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(6, 23, 34, 0.96), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 90% 6%, rgba(143, 247, 255, 0.16), transparent 32%) !important;
}

html.lical-night-mode .tabs button,
html.lical-night-mode .hero-actions button,
html.lical-night-mode .community-tabs button,
html.lical-night-mode .composer-template-row button,
html.lical-night-mode .composer-mode-tabs button,
html.lical-night-mode .studio-mode-tabs button,
html.lical-night-mode .asset-actions button,
html.lical-night-mode .composer-actions button,
html.lical-night-mode .asset-library button,
html.lical-night-mode .data-editor > button,
html.lical-night-mode .generator-type-grid button,
html.lical-night-mode .table-editor button,
html.lical-night-mode .palette-picker button,
html.lical-night-mode .calendar-actions button,
html.lical-night-mode .dashboard-quick-actions button,
html.lical-night-mode .source-search button,
html.lical-night-mode .adapter-panel button,
html.lical-night-mode .advanced-hero-card button,
html.lical-night-mode .snapshot-panel button,
html.lical-night-mode .inventory-actions button,
html.lical-night-mode .action-row button,
html.lical-night-mode .profile-avatar-options button,
html.lical-night-mode .profile-accent-options button,
html.lical-night-mode .profile-password button,
html.lical-night-mode .profile-form-grid button,
html.lical-night-mode .copy-button,
html.lical-night-mode .logout-button,
html.lical-night-mode .ghost,
html.lical-night-mode button.ghost,
html.lical-night-mode button.danger,
html.lical-night-mode button:not(.lical-deck-trigger):not(.lical-chat-fab):not(.lical-tool-button):not(.lical-search-fab):not(.support-toggle):not(.support-send):not(.active) {
  border: 1px solid rgba(143, 247, 255, 0.26) !important;
  background:
    linear-gradient(145deg, rgba(8, 20, 31, 0.92), rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at 0% 0%, rgba(143, 247, 255, 0.1), transparent 40%) !important;
  color: #f6fffc !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.lical-night-mode .tabs button.active,
html.lical-night-mode .community-tabs button.active,
html.lical-night-mode .composer-mode-tabs button.active,
html.lical-night-mode .studio-mode-tabs button.active,
html.lical-night-mode .generator-type-grid button.active,
html.lical-night-mode .profile-avatar-options button.active,
html.lical-night-mode .profile-accent-options button.active,
html.lical-night-mode button.active,
html.lical-night-mode .calendar-actions button:not(:disabled),
html.lical-night-mode .dashboard-quick-actions button:hover,
html.lical-night-mode .inventory-actions button:hover,
html.lical-night-mode .action-row button:hover {
  border-color: rgba(143, 247, 255, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(143, 247, 255, 0.24), rgba(255, 192, 181, 0.14)),
    rgba(1, 10, 17, 0.96) !important;
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(143, 247, 255, 0.22);
}

html.lical-night-mode .logout-button,
html.lical-night-mode button.danger,
html.lical-night-mode .danger.ghost {
  border-color: rgba(255, 192, 181, 0.34) !important;
  color: #ffe7e3 !important;
}

html.lical-night-mode .comparison-table .comparison-head,
html.lical-night-mode .month-weekday-row span,
html.lical-night-mode .shift-day-head > span,
html.lical-night-mode .calendar-holiday span,
html.lical-night-mode .holiday-ribbon span,
html.lical-night-mode .birthday-ribbon span,
html.lical-night-mode .roster-empty span,
html.lical-night-mode .molecule-3d span,
html.lical-night-mode .profile-photo-drop > strong,
html.lical-night-mode .profile-avatar-options button span,
html.lical-night-mode .profile-accent-options button {
  border: 1px solid rgba(143, 247, 255, 0.28) !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.13), transparent 32%),
    rgba(2, 13, 21, 0.94) !important;
  color: #ffffff !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.lical-night-mode .profile-accent-options button {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--swatch, #8ff7ff) 44%, #02070d), rgba(0, 0, 0, 0.86)) !important;
}

html.lical-night-mode .roster-person img,
html.lical-night-mode .roster-person > span,
html.lical-night-mode .roster-avatar-row img,
html.lical-night-mode .roster-avatar-row span,
html.lical-night-mode .calendar-birthday-avatars span,
html.lical-night-mode .birthday-month-strip img,
html.lical-night-mode .birthday-month-strip article > span {
  border-color: rgba(2, 8, 13, 0.92) !important;
  color: #ffffff !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(143, 247, 255, 0.18) !important;
}

html.lical-night-mode .shift-strip article strong,
html.lical-night-mode .shift-strip article span,
html.lical-night-mode .community-summary strong,
html.lical-night-mode .community-summary span,
html.lical-night-mode .compact-list article strong,
html.lical-night-mode .activity-stream article strong,
html.lical-night-mode .schedule-room-grid article strong,
html.lical-night-mode .audit-action-map article strong,
html.lical-night-mode .audit-action-map article span,
html.lical-night-mode .assay-grid article strong,
html.lical-night-mode .assay-grid article b,
html.lical-night-mode .assay-summary strong,
html.lical-night-mode .culture-summary strong,
html.lical-night-mode .factor-bar strong,
html.lical-night-mode .factor-grid strong,
html.lical-night-mode .microbe-stats strong,
html.lical-night-mode .microbe-table article strong,
html.lical-night-mode .collection-strip article strong,
html.lical-night-mode .profile-score strong,
html.lical-night-mode .profile-photo-drop strong,
html.lical-night-mode .profile-mini-stats strong,
html.lical-night-mode .profile-role-lock strong,
html.lical-night-mode .profile-signature,
html.lical-night-mode .comparison-table strong,
html.lical-night-mode .backend-status strong,
html.lical-night-mode .live-room strong,
html.lical-night-mode .stat-grid strong,
html.lical-night-mode .forest-plot em {
  color: #ffffff !important;
  opacity: 1 !important;
}

html.lical-night-mode .shift-strip article p,
html.lical-night-mode .shift-strip article small,
html.lical-night-mode .community-summary p,
html.lical-night-mode .compact-list article p,
html.lical-night-mode .activity-stream article p,
html.lical-night-mode .schedule-room-grid article p,
html.lical-night-mode .audit-action-map article p,
html.lical-night-mode .assay-grid article span,
html.lical-night-mode .assay-grid article p,
html.lical-night-mode .assay-summary span,
html.lical-night-mode .assay-summary p,
html.lical-night-mode .culture-summary span,
html.lical-night-mode .culture-summary p,
html.lical-night-mode .factor-bar span,
html.lical-night-mode .factor-grid span,
html.lical-night-mode .microbe-stats span,
html.lical-night-mode .microbe-filters label,
html.lical-night-mode .microbe-table article span,
html.lical-night-mode .collection-strip article span,
html.lical-night-mode .reference-grid article span,
html.lical-night-mode .source-grid article span,
html.lical-night-mode .decision-grid article span,
html.lical-night-mode .terms-grid article span,
html.lical-night-mode .tool-terms-grid article p,
html.lical-night-mode .legal-grid article span,
html.lical-night-mode .citation-grid article p,
html.lical-night-mode .roster-day small,
html.lical-night-mode .roster-person small,
html.lical-night-mode .roster-person em,
html.lical-night-mode .roster-empty small,
html.lical-night-mode .roster-avatar-summary small,
html.lical-night-mode .calendar-holiday small,
html.lical-night-mode .holiday-ribbon small,
html.lical-night-mode .birthday-ribbon small,
html.lical-night-mode .month-day-card header span,
html.lical-night-mode .profile-score span,
html.lical-night-mode .profile-photo-drop span,
html.lical-night-mode .profile-avatar-options button small,
html.lical-night-mode .profile-role-lock span,
html.lical-night-mode .profile-role-lock small,
html.lical-night-mode .profile-mini-stats span,
html.lical-night-mode .profile-upcoming p,
html.lical-night-mode .backend-status span,
html.lical-night-mode .live-room small,
html.lical-night-mode .stat-grid span {
  color: var(--lical-space-soft) !important;
  opacity: 1 !important;
}

html.lical-night-mode .molecule-editor svg,
html.lical-night-mode .rdkit-canvas {
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 247, 255, 0.14), transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(255, 192, 181, 0.08), transparent 28%),
    rgba(2, 7, 13, 0.98) !important;
}

html.lical-night-mode .molecule-editor line {
  stroke: rgba(143, 247, 255, 0.48) !important;
}

html.lical-night-mode .molecule-editor circle {
  fill: #07131d !important;
  stroke: rgba(143, 247, 255, 0.76) !important;
}

html.lical-night-mode .molecule-editor text {
  fill: #f6fffc !important;
}

html.lical-night-mode .hub-chart-svg,
html.lical-night-mode .hub-table-svg {
  border-color: rgba(143, 247, 255, 0.24) !important;
  background: rgba(2, 7, 13, 0.92) !important;
}

html.lical-night-mode .brand-mark,
html.lical-night-mode .user-card-initials,
html.lical-night-mode .login-logo {
  border-color: rgba(143, 247, 255, 0.28) !important;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(143, 247, 255, 0.14), rgba(255, 192, 181, 0.08)),
    #02070d !important;
  color: #ffffff !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.lical-night-mode .card,
html.lical-night-mode .hero-panel,
html.lical-night-mode .sidebar,
html.lical-night-mode .topbar,
html.lical-night-mode .brand,
html.lical-night-mode .user-card,
html.lical-night-mode .community-summary article,
html.lical-night-mode .compact-list article,
html.lical-night-mode .activity-stream article,
html.lical-night-mode .community-board article,
html.lical-night-mode .schedule-room-grid article,
html.lical-night-mode .shift-strip article,
html.lical-night-mode .schedule-board article,
html.lical-night-mode .week-roster-grid article,
html.lical-night-mode .schedule-mini-facts > div,
html.lical-night-mode .audit-action-map article,
html.lical-night-mode .composer-attachments,
html.lical-night-mode .enriched-post .markdown-view,
html.lical-night-mode .hub-generator-preview,
html.lical-night-mode .hub-generator-controls,
html.lical-night-mode .asset-library article,
html.lical-night-mode .table-column-editor article,
html.lical-night-mode .table-cell-editor article,
html.lical-night-mode .hub-asset-preview,
html.lical-night-mode .palette-picker button,
html.lical-night-mode .data-editor-head,
html.lical-night-mode .data-editor-row,
html.lical-night-mode .inventory-alerts article,
html.lical-night-mode .inventory-audit article,
html.lical-night-mode .simulation-ledger article,
html.lical-night-mode .rag-results article,
html.lical-night-mode .report-box,
html.lical-night-mode .locked-article,
html.lical-night-mode .comparison-table > div,
html.lical-night-mode .backend-status,
html.lical-night-mode .adapter-panel,
html.lical-night-mode .llm-answer,
html.lical-night-mode .live-room,
html.lical-night-mode .live-room article,
html.lical-night-mode .stat-grid div,
html.lical-night-mode .roster-day,
html.lical-night-mode .shift-day-card,
html.lical-night-mode .roster-avatar-summary,
html.lical-night-mode .roster-person,
html.lical-night-mode .roster-empty,
html.lical-night-mode .birthday-month-strip article,
html.lical-night-mode .month-day-card,
html.lical-night-mode .calendar-holiday,
html.lical-night-mode .holiday-ribbon,
html.lical-night-mode .birthday-ribbon,
html.lical-night-mode .empty-state,
html.lical-night-mode .culture-summary,
html.lical-night-mode .assay-summary,
html.lical-night-mode .assay-grid article,
html.lical-night-mode .factor-bar,
html.lical-night-mode .factor-grid > *,
html.lical-night-mode .process-timeline article,
html.lical-night-mode .process-timeline > div,
html.lical-night-mode .microbe-stats > div,
html.lical-night-mode .microbe-filters,
html.lical-night-mode .microbe-table article,
html.lical-night-mode .collection-strip article,
html.lical-night-mode .reference-grid article,
html.lical-night-mode .source-grid article,
html.lical-night-mode .decision-grid article,
html.lical-night-mode .terms-grid article,
html.lical-night-mode .tool-terms-grid article,
html.lical-night-mode .legal-grid article,
html.lical-night-mode .citation-grid article,
html.lical-night-mode .profile-photo-ring,
html.lical-night-mode .profile-score,
html.lical-night-mode .profile-photo-drop,
html.lical-night-mode .profile-avatar-options button,
html.lical-night-mode .profile-role-lock,
html.lical-night-mode .profile-password,
html.lical-night-mode .profile-preferences,
html.lical-night-mode .profile-mini-stats article,
html.lical-night-mode .profile-upcoming,
html.lical-night-mode .profile-signature,
html.lical-night-mode .selected-profile,
html.lical-night-mode .molecule-editor svg,
html.lical-night-mode .rdkit-canvas,
html.lical-night-mode .molecule-3d {
  background-color: #02070d !important;
}

html.lical-night-mode .schedule-board article,
html.lical-night-mode .week-roster-grid article,
html.lical-night-mode .schedule-mini-facts > div,
html.lical-night-mode .process-timeline article,
html.lical-night-mode .process-timeline > div,
html.lical-night-mode .report-box,
html.lical-night-mode .locked-article {
  border-color: rgba(143, 247, 255, 0.26) !important;
  background:
    linear-gradient(145deg, rgba(7, 18, 29, 0.95), rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 10% 0%, rgba(143, 247, 255, 0.11), transparent 34%),
    #02070d !important;
  color: var(--lical-space-text) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.lical-night-mode .schedule-board article h3,
html.lical-night-mode .week-roster-grid article h3,
html.lical-night-mode .process-timeline article strong,
html.lical-night-mode .process-timeline > div strong,
html.lical-night-mode .report-box strong,
html.lical-night-mode .locked-article strong {
  color: #ffffff !important;
}

html.lical-night-mode .schedule-board article p,
html.lical-night-mode .schedule-board article span,
html.lical-night-mode .schedule-board article small,
html.lical-night-mode .week-roster-grid article p,
html.lical-night-mode .week-roster-grid article span,
html.lical-night-mode .week-roster-grid article small,
html.lical-night-mode .process-timeline article span,
html.lical-night-mode .process-timeline article p,
html.lical-night-mode .process-timeline > div span,
html.lical-night-mode .process-timeline > div p,
html.lical-night-mode .report-box p,
html.lical-night-mode .locked-article span {
  color: var(--lical-space-soft) !important;
  opacity: 1 !important;
}

html.lical-night-mode .vetlex-partnership,
html.lical-night-mode .vetlex-partner-stack em {
  color: var(--lical-space-cyan) !important;
  opacity: 0.95 !important;
}

html.lical-night-mode .dashboard-page .liquid-week-inspector {
  border-color: rgba(143, 247, 255, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(7, 18, 29, 0.96), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 8% 0%, rgba(143, 247, 255, 0.12), transparent 34%),
    #02070d !important;
  background-color: #02070d !important;
  color: var(--lical-space-text) !important;
}

html.lical-night-mode .dashboard-page .liquid-week-inspector strong,
html.lical-night-mode .dashboard-page .liquid-week-inspector b {
  color: #ffffff !important;
}

html.lical-night-mode .dashboard-page .liquid-week-inspector span,
html.lical-night-mode .dashboard-page .liquid-week-inspector small {
  color: var(--lical-space-soft) !important;
}

html.lical-night-mode .dashboard-page .liquid-week-inspector em,
html.lical-night-mode .dashboard-page .liquid-week-inspector b {
  border: 1px solid rgba(143, 247, 255, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(143, 247, 255, 0.16), rgba(255, 192, 181, 0.08)),
    #06131d !important;
  background-color: #06131d !important;
}

html.lical-night-mode .schedule-showcase-head > div {
  border: 1px solid rgba(143, 247, 255, 0.24) !important;
  background:
    linear-gradient(145deg, rgba(7, 18, 29, 0.96), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 8% 0%, rgba(143, 247, 255, 0.12), transparent 34%),
    #02070d !important;
  background-color: #02070d !important;
  color: var(--lical-space-text) !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.lical-night-mode .schedule-showcase-head > div strong,
html.lical-night-mode .schedule-showcase-head > div b {
  color: #ffffff !important;
}

html.lical-night-mode .schedule-showcase-head > div span,
html.lical-night-mode .schedule-showcase-head > div small {
  color: var(--lical-space-soft) !important;
}

section.card.span-12 > .assay-grid .equation-tip {
  border-bottom-color: rgba(35, 111, 159, 0.32);
}

section.card.span-12 > .assay-grid .equation-tip > span {
  width: min(300px, calc(100vw - 42px));
  padding: 11px 12px;
  border: 1px solid rgba(61, 112, 144, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 253, 0.9)),
    radial-gradient(circle at 10% 0%, rgba(79, 164, 207, 0.1), transparent 34%);
  color: var(--ink);
  box-shadow:
    0 16px 38px rgba(21, 48, 74, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

section.card.span-12 > .assay-grid .equation-tip:hover > span,
section.card.span-12 > .assay-grid .equation-tip:focus > span {
  transform: translateY(0);
}

section.card.span-12 > .assay-grid .equation-tip > span strong {
  color: var(--blue-strong);
}

section.card.span-12 > .assay-grid .equation-tip > span em,
section.card.span-12 > .assay-grid .equation-tip > span small {
  color: #425f77;
  opacity: 1;
}

html.lical-night-mode section.card.span-12 > .assay-grid .equation-tip {
  border-bottom-color: rgba(143, 247, 255, 0.42) !important;
}

html.lical-night-mode section.card.span-12 > .assay-grid .equation-tip > span {
  border-color: rgba(143, 247, 255, 0.24) !important;
  background:
    linear-gradient(145deg, rgba(7, 18, 29, 0.96), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 8% 0%, rgba(143, 247, 255, 0.12), transparent 34%),
    #02070d !important;
  color: var(--lical-space-text) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.lical-night-mode section.card.span-12 > .assay-grid .equation-tip > span strong {
  color: #ffffff !important;
}

html.lical-night-mode section.card.span-12 > .assay-grid .equation-tip > span em,
html.lical-night-mode section.card.span-12 > .assay-grid .equation-tip > span small {
  color: var(--lical-space-soft) !important;
}

body:has(.login-shell) .lical-floating-dock,
body:has(.login-shell) .lical-global-tools.lical-tool-deck,
body:has(.login-shell) .lical-panel,
body:has(.login-shell) .lical-tool-status {
  display: none !important;
  pointer-events: none !important;
}

/* Sidebar collapse polish: keep the new control, remove the legacy deck button. */
.deck-toggle,
html.deck-collapsed .deck-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.deck-collapsed .app-shell:not(.sidebar-collapsed) {
  grid-template-columns: 280px 1fr !important;
}

html.deck-collapsed .app-shell:not(.sidebar-collapsed) .sidebar {
  width: auto !important;
  min-width: 0 !important;
  align-items: stretch !important;
}

html.deck-collapsed .app-shell:not(.sidebar-collapsed) .brand {
  justify-content: flex-start !important;
}

html.deck-collapsed .app-shell:not(.sidebar-collapsed) .brand > :not(.brand-mark):not(.deck-toggle) {
  display: block !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.deck-collapsed .app-shell .sidebar nav,
html.deck-collapsed .app-shell .user-card {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.sidebar-toggle {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(79, 164, 207, 0.2) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 10% 0%, rgba(240, 120, 108, 0.16), transparent 38%),
    radial-gradient(circle at 90% 100%, rgba(79, 164, 207, 0.18), transparent 34%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -10px 22px rgba(79, 164, 207, 0.08),
    0 16px 32px rgba(35, 111, 159, 0.14) !important;
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
}

.sidebar-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.68), transparent 44%, rgba(255, 255, 255, 0.36));
  opacity: 0.7;
}

.sidebar-toggle::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -65%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  transform: rotate(14deg);
  transition: left 0.42s ease;
}

.sidebar-toggle:hover::after,
.sidebar-toggle:focus-visible::after {
  left: 118%;
}

.sidebar-toggle span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 7px 10px rgba(35, 111, 159, 0.22));
}

.app-shell.sidebar-collapsed .sidebar {
  position: sticky;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 6%, rgba(240, 120, 108, 0.2), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(79, 164, 207, 0.22), transparent 36%),
    radial-gradient(circle at 38% 86%, rgba(191, 241, 230, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 252, 253, 0.46)) !important;
  border-right-color: rgba(79, 164, 207, 0.2) !important;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    18px 0 54px rgba(21, 48, 74, 0.1) !important;
  backdrop-filter: blur(28px) saturate(1.75);
  -webkit-backdrop-filter: blur(28px) saturate(1.75);
}

.app-shell.sidebar-collapsed .sidebar::before {
  content: "";
  position: absolute;
  inset: 10px 9px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.14)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 26%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -18px 34px rgba(79, 164, 207, 0.06);
}

.app-shell.sidebar-collapsed .sidebar > * {
  position: relative;
  z-index: 1;
}

.app-shell.sidebar-collapsed .brand {
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 20% 0%, rgba(240, 173, 53, 0.14), transparent 36%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(35, 111, 159, 0.12) !important;
}

.app-shell.sidebar-collapsed .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.55)),
    radial-gradient(circle at 20% 12%, rgba(240, 120, 108, 0.26), transparent 40%),
    radial-gradient(circle at 88% 88%, rgba(79, 164, 207, 0.22), transparent 38%) !important;
  border: 1px solid rgba(79, 164, 207, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 15px 30px rgba(35, 111, 159, 0.16) !important;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  width: 54px;
  min-height: 46px;
  border-radius: 18px;
}

.app-shell.sidebar-collapsed nav {
  gap: 11px;
  scrollbar-width: none;
}

.app-shell.sidebar-collapsed nav::-webkit-scrollbar {
  display: none;
}

.app-shell.sidebar-collapsed nav button {
  --lical-icon: #236f9f;
  --lical-icon-glow: rgba(35, 111, 159, 0.18);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36)),
    radial-gradient(circle at 20% 4%, var(--lical-icon-glow), transparent 36%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -10px 22px rgba(21, 48, 74, 0.05),
    0 16px 28px rgba(21, 48, 74, 0.1) !important;
  color: var(--lical-icon) !important;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
}

.app-shell.sidebar-collapsed nav button:nth-child(6n + 1) {
  --lical-icon: #d86f62;
  --lical-icon-glow: rgba(240, 120, 108, 0.22);
}

.app-shell.sidebar-collapsed nav button:nth-child(6n + 2) {
  --lical-icon: #236f9f;
  --lical-icon-glow: rgba(79, 164, 207, 0.22);
}

.app-shell.sidebar-collapsed nav button:nth-child(6n + 3) {
  --lical-icon: #a56511;
  --lical-icon-glow: rgba(240, 173, 53, 0.22);
}

.app-shell.sidebar-collapsed nav button:nth-child(6n + 4) {
  --lical-icon: #2f8a76;
  --lical-icon-glow: rgba(95, 198, 173, 0.22);
}

.app-shell.sidebar-collapsed nav button:nth-child(6n + 5) {
  --lical-icon: #7a5cc9;
  --lical-icon-glow: rgba(122, 92, 201, 0.2);
}

.app-shell.sidebar-collapsed nav button:nth-child(6n + 6) {
  --lical-icon: #c94f42;
  --lical-icon-glow: rgba(201, 79, 66, 0.2);
}

.app-shell.sidebar-collapsed nav button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(135deg, var(--lical-icon-glow), transparent 52%);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-shell.sidebar-collapsed nav button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--lical-icon);
  box-shadow: 0 0 14px var(--lical-icon-glow);
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-shell.sidebar-collapsed nav button:hover,
.app-shell.sidebar-collapsed nav button:focus-visible,
.app-shell.sidebar-collapsed nav button.active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 0 0 1px color-mix(in srgb, var(--lical-icon) 22%, transparent),
    0 18px 34px rgba(21, 48, 74, 0.15) !important;
}

.app-shell.sidebar-collapsed nav button:hover::before,
.app-shell.sidebar-collapsed nav button:focus-visible::before,
.app-shell.sidebar-collapsed nav button.active::before {
  opacity: 1;
  transform: scale(1);
}

.app-shell.sidebar-collapsed nav button.active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.app-shell.sidebar-collapsed .nav-icon {
  color: var(--lical-icon);
  filter:
    drop-shadow(0 6px 10px var(--lical-icon-glow))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

.app-shell.sidebar-collapsed .user-card {
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
    radial-gradient(circle at 50% 0%, rgba(240, 120, 108, 0.12), transparent 42%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(21, 48, 74, 0.1) !important;
}

.app-shell.sidebar-collapsed .user-card-photo,
.app-shell.sidebar-collapsed .user-card-initials,
.app-shell.sidebar-collapsed .logout-button {
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 12px 24px rgba(21, 48, 74, 0.13);
}

.app-shell.sidebar-collapsed .logout-button {
  color: #c94f42;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.4)),
    radial-gradient(circle at 20% 0%, rgba(240, 120, 108, 0.18), transparent 36%) !important;
}

html.lical-night-mode .app-shell.sidebar-collapsed .sidebar {
  background:
    radial-gradient(circle at 14% 8%, rgba(240, 120, 108, 0.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(143, 247, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(14, 28, 42, 0.82), rgba(4, 12, 22, 0.74)) !important;
  border-right-color: rgba(143, 247, 255, 0.18) !important;
  box-shadow:
    inset -1px 0 0 rgba(143, 247, 255, 0.14),
    18px 0 54px rgba(0, 0, 0, 0.28) !important;
}

html.lical-night-mode .app-shell.sidebar-collapsed .sidebar::before {
  border-color: rgba(143, 247, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(143, 247, 255, 0.1), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 28%);
}

html.lical-night-mode .app-shell.sidebar-collapsed nav button,
html.lical-night-mode .app-shell.sidebar-collapsed .brand,
html.lical-night-mode .app-shell.sidebar-collapsed .user-card,
html.lical-night-mode .app-shell.sidebar-collapsed .sidebar-toggle {
  border-color: rgba(143, 247, 255, 0.14) !important;
  background:
    linear-gradient(145deg, rgba(16, 35, 54, 0.72), rgba(4, 12, 22, 0.48)),
    radial-gradient(circle at 20% 0%, var(--lical-icon-glow, rgba(143, 247, 255, 0.14)), transparent 38%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.26) !important;
}

@media (max-width: 1100px) {
  html.deck-collapsed .app-shell:not(.sidebar-collapsed),
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr !important;
  }

  .app-shell.sidebar-collapsed .sidebar::before {
    inset: 8px;
  }
}

.ephemeral-credential-card {
  border-color: rgba(56, 216, 132, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 253, 250, 0.76)),
    radial-gradient(circle at 0% 0%, rgba(56, 216, 132, 0.14), transparent 34%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 34px rgba(21, 48, 74, 0.12) !important;
}

.ephemeral-credential-card .ghost {
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--blue-strong);
  background: rgba(35, 111, 159, 0.08);
  border: 1px solid rgba(35, 111, 159, 0.14);
  font-size: 12px;
  font-weight: 950;
}

html.lical-night-mode .ephemeral-credential-card {
  border-color: rgba(56, 216, 132, 0.22) !important;
  background:
    linear-gradient(145deg, rgba(12, 27, 42, 0.9), rgba(3, 11, 18, 0.72)),
    radial-gradient(circle at 0% 0%, rgba(56, 216, 132, 0.12), transparent 34%) !important;
}
