/* Storyverse v36.7 — light-only UI + soft lockscreen using app icon color */

/* Never inherit a dark color scheme from the OS/browser. */
:root,html,body,.theme-root,.julia-shell,.julia-device,.v31-mac-root,
input,textarea,select,button{
  color-scheme:light only!important;
}

/* Keep time-of-day atmosphere without ever darkening the interface. */
.v36-night .v36-atmosphere{
  background:linear-gradient(180deg,rgba(249,246,255,.16),rgba(255,255,255,.08))!important;
}
.v36-evening .v36-atmosphere{
  background:linear-gradient(180deg,rgba(255,244,238,.14),rgba(255,255,255,.07))!important;
}
.v36-morning .v36-atmosphere{
  background:linear-gradient(180deg,rgba(255,250,240,.16),rgba(255,255,255,.06))!important;
}
.v36-afternoon .v36-atmosphere{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,248,244,.05))!important;
}

/* Lockscreen is always light. The wallpaper stays visible through a soft white veil. */
.v361-lock-atmosphere,
.theme-root.has-wallpaper .v361-lock-atmosphere{
  background:linear-gradient(180deg,rgba(255,255,255,.52),rgba(255,255,255,.62))!important;
  backdrop-filter:saturate(1.05) brightness(1.05)!important;
}

.v361-mac-lock,
.theme-root.has-wallpaper .v361-mac-lock{
  color:var(--u-app-icon-color,var(--u-accent))!important;
  text-shadow:none!important;
}

.v361-lock-top,
.v361-lock-title,
.theme-root.has-wallpaper .v361-lock-title,
.theme-root.has-wallpaper .v361-lock-top{
  filter:none!important;
}

.v361-lock-top>span,
.v361-lock-top>strong,
.v361-lock-top>small,
.v361-lock-title,
.v361-lock-card,
.v361-lock-empty,
.v361-unlock,
.v361-lock-shortcut{
  color:var(--u-app-icon-color,var(--u-accent))!important;
}

.v361-lock-title b{
  background:var(--u-app-icon-color,var(--u-accent))!important;
  color:#fff!important;
}

.v361-lock-card,
.theme-root.has-wallpaper .v361-lock-card{
  background:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 11%,white 89%)!important;
  border-color:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 28%,white 72%)!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 11%,transparent)!important;
}

.v361-lock-card.unread,
.theme-root.has-wallpaper .v361-lock-card.unread{
  background:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 16%,white 84%)!important;
}

.v361-lock-card span{opacity:.76!important}
.v361-lock-card small{opacity:.58!important}

.v361-lock-empty,
.theme-root.has-wallpaper .v361-lock-empty{
  background:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 7%,white 93%)!important;
  border-color:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 24%,white 76%)!important;
  opacity:1!important;
}

.v361-unlock,
.theme-root.has-wallpaper .v361-unlock{
  background:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 12%,white 88%)!important;
  border-color:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 28%,white 72%)!important;
  box-shadow:0 10px 24px color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 10%,transparent)!important;
}

.v361-unlock>span{
  background:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 15%,white 85%)!important;
  color:var(--u-app-icon-color,var(--u-accent))!important;
}

.v361-lock-shortcut,
.theme-root.has-wallpaper .v361-lock-shortcut{
  background:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 10%,white 90%)!important;
  border-color:color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 25%,white 75%)!important;
  box-shadow:0 9px 22px color-mix(in srgb,var(--u-app-icon-color,var(--u-accent)) 9%,transparent)!important;
}

/* Control center / desktop glass stay light even at night. */
.v361-control-pop,
.v36-widget,
.v36-pulse{
  background:color-mix(in srgb,var(--u-card) 90%,white 10%)!important;
}

/* Safety net for any legacy dark-state class that may survive in old markup. */
.theme-root.dark,
.theme-root.theme-dark,
.dark .theme-root,
[data-theme="dark"] .theme-root{
  color-scheme:light only!important;
}
