/* V9.3.8 · Lightweight liquid-glass treatment.
   CSS material techniques informed by kevinbism/liquid-glass-effect (MIT).
   See vendor/liquid-glass-LICENSE.txt and THIRD_PARTY_NOTICES.md. */
:root {
  --liquid-fill: rgba(249, 252, 255, .66);
  --liquid-tint: rgba(183, 191, 255, .13);
  --liquid-rim: rgba(255, 255, 255, .88);
  --liquid-ink: #17213a;
  --liquid-fallback: #f4f7fe;
  --liquid-shadow: 0 12px 34px rgba(44, 57, 105, .14), inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(91,110,155,.12);
}
html.theme-dark, html[data-theme="dark"] {
  --liquid-fill: rgba(22, 31, 53, .74);
  --liquid-tint: rgba(115, 129, 221, .12);
  --liquid-rim: rgba(209, 225, 255, .24);
  --liquid-ink: #f4f7ff;
  --liquid-fallback: #172036;
  --liquid-shadow: 0 14px 38px rgba(0,0,0,.32), inset 0 1px 1px rgba(225,236,255,.22), inset 0 -1px 1px rgba(255,255,255,.06);
}
@media (prefers-color-scheme: dark) {
  html.theme-system {
    --liquid-fill: rgba(22,31,53,.74);
    --liquid-tint: rgba(115,129,221,.12);
    --liquid-rim: rgba(209,225,255,.24);
    --liquid-ink: #f4f7ff;
    --liquid-fallback: #172036;
    --liquid-shadow: 0 14px 38px rgba(0,0,0,.32), inset 0 1px 1px rgba(225,236,255,.22), inset 0 -1px 1px rgba(255,255,255,.06);
  }
}
/* Specificity deliberately exceeds legacy runtime styles, including mobile rules. */
#toastRoot .toast.glass-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 18px !important;
  border: 1px solid var(--liquid-rim) !important;
  border-radius: 24px !important;
  color: var(--liquid-ink);
  background: linear-gradient(135deg, var(--liquid-fill), var(--liquid-tint)), var(--liquid-fill) !important;
  box-shadow: var(--liquid-shadow) !important;
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s ease, translate .2s ease;
  animation: glassToastEnter .24s ease-out;
}
#toastRoot[data-toast-layout="floating"] .toast.glass-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h, 96px) + 14px + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%);
  z-index: 180;
  width: max-content;
  max-width: min(calc(100vw - 32px), 460px) !important;
}
body.is-auth #toastRoot[data-toast-layout="floating"] .toast.glass-toast {
  bottom: calc(22px + env(safe-area-inset-bottom)) !important;
}
#toastRoot .toast-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #6366f1;
  background: rgba(119, 125, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38);
}
#toastRoot .toast-symbol svg { width: 17px; height: 17px; }
#toastRoot .toast-message { min-width: 0; }
#toastRoot .toast.glass-toast.is-leaving { opacity: 0; translate: 0 8px; }
@keyframes glassToastEnter {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
/* Existing layout and blue/violet selected states stay in place. */
body.is-workspace .bottom-nav,
body.is-workspace .calendar-card,
body.is-workspace .detail-card,
body .modal {
  background: linear-gradient(135deg, var(--liquid-fill), var(--liquid-tint)), var(--liquid-fill) !important;
  border-color: var(--liquid-rim) !important;
  box-shadow: var(--liquid-shadow) !important;
  -webkit-backdrop-filter: blur(20px) saturate(155%) !important;
  backdrop-filter: blur(20px) saturate(155%) !important;
}
body.is-workspace .bottom-nav { border-radius: 28px !important; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #toastRoot .toast.glass-toast,
  body.is-workspace .bottom-nav,
  body.is-workspace .calendar-card,
  body.is-workspace .detail-card,
  body .modal { background: var(--liquid-fallback) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #toastRoot .toast.glass-toast { animation: none; transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  #toastRoot .toast.glass-toast,
  body.is-workspace .bottom-nav,
  body.is-workspace .calendar-card,
  body.is-workspace .detail-card,
  body .modal {
    background: var(--liquid-fallback) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
