html[data-theme="dark"] #nav .nav-item.active,html[data-theme="dark"] #nav .nav-item.active *,html[data-theme="dark"] #bottomNav button.active,html[data-theme="dark"] #bottomNav button.active *{color:#fff!important;stroke:currentColor}
html[data-theme="dark"] #nav .nav-item.active{background:#244d82!important;box-shadow:inset 3px 0 #78adff}
.calendar-event-chip.project-colored{background:hsl(var(--project-hue) 75% 94%)!important;color:hsl(var(--project-hue) 75% 27%)!important;border-left:3px solid hsl(var(--project-hue) 65% 48%);padding:5px 7px;border-radius:6px}
html[data-theme="dark"] .calendar-event-chip.project-colored{background:hsl(var(--project-hue) 38% 26%)!important;color:hsl(var(--project-hue) 95% 87%)!important;border-color:hsl(var(--project-hue) 75% 68%)}
.mini-dots i.project-colored{background:hsl(var(--project-hue) 70% 58%)!important}
.jaiyen-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #b5a4ff;
  border-radius: 12px;
  background: linear-gradient(125deg, #5555e9, #9256c7);
  color: white;
  box-shadow: 0 4px 14px #261e5340;
  text-align: left;
  cursor: pointer;
}
.jaiyen-icon {
  inline-size: 24px;
  block-size: 24px;
  flex: none;
  fill: currentColor;
  overflow: visible;
}
.jaiyen-icon > * { transform-box: fill-box; transform-origin: center; }
.jaiyen-icon-triangle, .jaiyen-icon-dot, .jaiyen-icon-plus { color: #e5dcff; }
.jaiyen-icon-plus { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .jaiyen-icon-star { animation: jaiyen-twinkle 3.2s ease-in-out infinite; }
  .jaiyen-icon-triangle { animation: jaiyen-triangle 3.2s ease-in-out infinite; }
  .jaiyen-icon-dot { animation: jaiyen-dot 3.2s ease-in-out infinite; }
  .jaiyen-icon-plus { animation: jaiyen-plus 3.2s ease-in-out infinite; }
}
@keyframes jaiyen-twinkle {
  0%, 100% { transform: rotate(-6deg) scale(.92); }
  48% { transform: rotate(8deg) scale(1.04); }
}
@keyframes jaiyen-triangle {
  0%, 100% { opacity: 1; transform: translate(-1px, 1px) rotate(-16deg); }
  22% { opacity: 1; transform: translate(0, -3px) rotate(28deg); }
  40%, 80% { opacity: 0; transform: translate(-3px, 3px) scale(.3); }
}
@keyframes jaiyen-dot {
  0%, 30%, 70%, 100% { opacity: 0; transform: translate(3px, 3px) scale(.3); }
  49%, 54% { opacity: 1; transform: translate(-1px, -2px); }
}
@keyframes jaiyen-plus {
  0%, 54%, 95%, 100% { opacity: 0; transform: translate(-4px, 3px) rotate(-30deg) scale(.3); }
  73%, 78% { opacity: 1; transform: translate(-1px, 0) rotate(16deg); }
}
.jaiyen-launcher strong, .jaiyen-launcher small { display: block; color: white !important; }
.jaiyen-launcher strong { font-size: 13px; line-height: 1.4; }
.jaiyen-launcher small { font-size: 10px; line-height: 1.3; }
.jaiyen-launcher[hidden], .jaiyen-layer[hidden] { display: none !important; }
.jaiyen-layer{position:fixed;inset:0;z-index:1500;background:#080b2560;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}.jaiyen-dialog{width:min(620px,100%);height:min(780px,90dvh);display:flex;flex-direction:column;background:#fff;color:#25314c;border:1px solid #dad7f5;border-radius:26px;box-shadow:0 25px 90px #080b2540;overflow:hidden}.jaiyen-dialog header{display:flex;align-items:center;gap:12px;padding:22px;border-bottom:1px solid #e5e4f4}.jaiyen-dialog h2{font-size:22px;margin:3px 0 0}.jaiyen-dialog header small{color:#79809a}.jaiyen-symbol{display:grid;place-items:center;background:#7560db;color:#fff;border-radius:15px;width:48px;height:48px;font-size:27px}.jaiyen-dialog button{cursor:pointer;font:inherit}.jaiyen-dialog header button{margin-left:auto;width:38px;height:38px;border-radius:12px;border:1px solid #ddd9f2;background:transparent;color:inherit;font-size:25px}.jaiyen-scope{font-size:11px;padding:12px 22px;color:#617b77;display:flex;align-items:center;justify-content:space-between}.jaiyen-scope button{border:0;background:none;color:#7963ba}.jaiyen-results{overflow:auto;flex:1;min-height:0;padding:12px 22px;overscroll-behavior:contain}.jaiyen-welcome{text-align:center;padding:30px 0 20px}.jaiyen-welcome>span{display:inline-grid;place-items:center;width:62px;height:62px;border-radius:22px;background:#7560db;color:white;font-size:35px}.jaiyen-welcome h3{font-size:23px}.jaiyen-welcome p{font-size:13px;line-height:1.8;color:#74809a}.jaiyen-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.jaiyen-suggestions button{padding:14px;text-align:left;background:transparent;border:1px solid #d8d4ee;color:inherit;border-radius:12px}.jaiyen-result{display:block;width:100%;padding:16px;margin-bottom:10px;border:1px solid #dedff1;border-radius:14px;background:#f8f9ff;text-align:left;color:inherit}.jaiyen-result:hover{border-color:#8b7ddd;background:#f1effd}.jaiyen-result small,.jaiyen-result strong,.jaiyen-result span{display:block}.jaiyen-result small{color:#7d68bd;font-size:11px}.jaiyen-result strong{margin:5px 0;font-size:15px}.jaiyen-result span{font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.jaiyen-result b{display:block;margin-top:8px;font-size:11px;color:#6351bb}.jaiyen-count{font-size:12px;color:#74809a}.jaiyen-dialog form{padding:12px 22px 0}.jaiyen-dialog form label{font-size:12px}.jaiyen-dialog form>div{display:flex;gap:8px;align-items:center;padding:10px;background:#f5f4fc;border:1px solid #d8d4ee;border-radius:16px}.jaiyen-dialog input{flex:1;min-width:0;border:0!important;background:transparent!important;color:inherit;padding:10px;font:inherit;box-shadow:none!important}.jaiyen-dialog form button{width:42px;height:42px;flex-shrink:0;border:0;border-radius:14px;background:#7560db;color:white;font-size:24px}.jaiyen-dialog footer{text-align:center;font-size:10px;color:#85849c;padding:14px 20px}.jaiyen-dialog :focus-visible{outline:2px solid #8b7ddd;outline-offset:3px}
html[data-theme="dark"] .jaiyen-dialog{background:#172237!important;color:#f1f5ff;border-color:#4b5576}html[data-theme="dark"] .jaiyen-result,html[data-theme="dark"] .jaiyen-dialog form>div{background:#25334b!important;border-color:#53617e}html[data-theme="dark"] .jaiyen-result span,html[data-theme="dark"] .jaiyen-dialog p,html[data-theme="dark"] .jaiyen-dialog small,html[data-theme="dark"] .jaiyen-dialog footer{color:#c4d2eb!important}html[data-theme="dark"] .jaiyen-result b{color:#c8baff}body.modal-open .jaiyen-launcher{visibility:hidden}
@media (max-width: 1180px) {
  .jaiyen-launcher { bottom: calc(96px + env(safe-area-inset-bottom)); right: 12px; }
}
@media (max-width: 1180px), (max-width: 1366px) and (pointer: coarse) {
  .jaiyen-launcher {
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    justify-content: center;
  }
  .jaiyen-icon { inline-size: 25px; block-size: 25px; }
  .jaiyen-launcher-label { display: none; }
}
@media(max-width:760px){.jaiyen-layer{padding:10px}.jaiyen-dialog{height:92dvh;border-radius:20px}.jaiyen-dialog header{padding:16px}.jaiyen-results{padding:10px 16px}.jaiyen-welcome{padding:15px 0}.jaiyen-welcome h3{font-size:20px}}
@media print{.jaiyen-launcher,.jaiyen-layer{display:none!important}}
