/* Pet nhắc việc: occupies only its small button until the user opens the tray. */
#workPet{--pet18-ink:#263d5b;--pet18-muted:#7b8da4;--pet18-line:#e3ebf5;--pet18-blue:#2166ed;position:fixed;right:18px;bottom:calc(var(--pet18-bottom,76px) + env(safe-area-inset-bottom));width:60px;height:64px;z-index:1100;pointer-events:none;color:var(--pet18-ink);font-size:13px;line-height:1.5;isolation:isolate}
#workPet[hidden],#workPet .hidden,#workPet [hidden]{display:none!important}
#workPet button{font:inherit;line-height:1.4;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s;color:inherit}
#workPet button:focus-visible{outline:3px solid #b9d2ff;outline-offset:3px}
#workPet button:disabled{opacity:.55;cursor:not-allowed}
#workPet .pet18-toggle{position:relative;display:grid;place-items:center;pointer-events:auto;width:60px;height:60px;padding:2px;border:1px solid #d9e6fa;border-radius:22px;background:linear-gradient(145deg,#fff,#edf4ff);box-shadow:0 5px 18px #264b7c18,0 1px 3px #264b7c0a;transform-origin:center bottom}
#workPet .pet18-toggle:hover{background:#edf4ff;border-color:#b6d1f9;box-shadow:0 6px 22px #264b7c26}
#workPet .pet18-toggle[aria-expanded="true"]{background:#e7f0ff;border-color:#afccfb}
#workPet .pet18-mascot{width:56px;height:56px;display:grid;place-items:center;pointer-events:none}
#workPet .pet18-art{display:grid;place-items:center;width:100%;height:100%;pointer-events:none}
#workPet .pet18-mascot{object-fit:contain;overflow:visible;filter:drop-shadow(0 2px 1px #3c65a115)}
#workPet .pet18-tail{transform-origin:48px 42px;animation:pet18-tail 8s ease-in-out infinite}
#workPet .pet18-ear{transform-origin:center 21px;animation:pet18-ear 10s ease-in-out infinite}
#workPet .pet18-count{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#2166ed;color:#fff;font-size:10px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 2px 5px #2166ed23}
#workPet .pet18-toggle.is-alert{animation:pet18-alert .8s ease-out 1;border-color:#99bfff}
#workPet .pet18-toggle.is-alert .pet18-count{background:#ec7959}
#workPet.pet18-snoozed .pet18-toggle{background:#f3f6fa;border-color:#e0e6ee}
#workPet.pet18-snoozed .pet18-count{background:#8a9aae}
#workPet.pet18-snoozed .pet18-tail,#workPet.pet18-snoozed .pet18-ear{animation:none}
#workPet.pet18-on-call{visibility:hidden}
#workPet .pet18-bubble{position:absolute;right:0;bottom:76px;pointer-events:auto;width:258px;max-width:calc(100vw - 36px);padding:13px 33px 13px 15px;border:1px solid #dce7f7;border-radius:15px;background:#fff;box-shadow:0 5px 24px #264b7c1b;animation:pet18-appear .16s ease-out}
#workPet .pet18-bubble:after{content:"";position:absolute;right:21px;bottom:-6px;width:10px;height:10px;border-right:1px solid #dce7f7;border-bottom:1px solid #dce7f7;background:#fff;transform:rotate(45deg)}
#workPet .pet18-bubble-title{display:block;margin:0 0 3px;font-size:12px;font-weight:700;color:#33537d}
#workPet .pet18-bubble-text{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.6;color:#73859e;overflow-wrap:anywhere}
#workPet .pet18-bubble-open{display:block;width:100%;border:0;border-radius:8px;background:transparent;padding:0;text-align:left;cursor:pointer;font:inherit}
#workPet .pet18-bubble-open:hover .pet18-bubble-title{color:#1d62ce;text-decoration:underline;text-underline-offset:2px}
#workPet .pet18-bubble-open:focus-visible{outline:2px solid #3576e9;outline-offset:5px}
#workPet .pet18-bubble-open:disabled{cursor:wait;opacity:.7}
#workPet #workPetBubbleClose{position:absolute;top:7px;right:6px;display:grid;place-items:center;width:24px;height:24px;padding:0;background:transparent;border:0;border-radius:7px;color:#8c9bb0;font-size:18px}
#workPet #workPetBubbleClose:hover{background:#f2f6fc;color:#4c6486}
#workPet .pet18-panel{position:absolute;right:0;bottom:76px;pointer-events:auto;display:flex;flex-direction:column;width:346px;max-width:calc(100vw - 36px);max-height:min(610px,calc(100dvh - 168px));border:1px solid #dce6f3;border-radius:18px;background:#fff;box-shadow:0 14px 45px #1a385a20,0 2px 7px #1a385a08;overflow:hidden;animation:pet18-appear .16s ease-out}
#workPet .pet18-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:17px 18px 4px}
#workPet .pet18-panel-head h3{margin:0;font-size:15px;line-height:1.5;font-weight:750;color:#243b5b}
#workPet .pet18-panel-close{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;background:transparent;border:0;border-radius:8px;color:#8b9aaf;font-size:20px}
#workPet .pet18-panel-close:hover{background:#f0f4fa;color:#4c6486}
#workPet .pet18-panel-subtitle{flex:none;margin:0;padding:0 18px 14px;color:#8795a9;font-size:11px;line-height:1.6}
#workPet .pet18-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:none;margin:0 18px 14px;font-size:11px;color:#647c9e}
#workPet .pet18-summary>span,#workPet .pet18-summary>button{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid #e5edf7;border-radius:8px;background:#f6f9fd;color:#67809f;font-size:11px}
#workPet .pet18-summary b{color:#3e648f;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
#workPet .pet18-summary .is-overdue,#workPet .pet18-summary .urgent{background:#fff5f0;border-color:#fae5dc;color:#b5785f}
#workPet .pet18-summary .is-overdue b,#workPet .pet18-summary .urgent b{color:#d46f54}
#workPet .pet18-tabs{display:flex;align-items:center;gap:4px;flex:none;padding:0 12px;border-bottom:1px solid var(--pet18-line)}
#workPet .pet18-tabs button{position:relative;flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 8px 12px;border:0;border-radius:8px 8px 0 0;background:transparent;color:#8898ad;font-size:12px;font-weight:650}
#workPet .pet18-tabs button:hover{background:#f8faff;color:#4d72a9}
#workPet .pet18-tabs button.active,#workPet .pet18-tabs button[aria-selected="true"]{color:#2166ed;background:#f8fbff}
#workPet .pet18-tabs button.active:after,#workPet .pet18-tabs button[aria-selected="true"]:after{content:"";position:absolute;bottom:-1px;left:17px;right:17px;height:2px;border-radius:2px 2px 0 0;background:#2166ed}
#workPet .pet18-tabs button span{padding:1px 5px;border-radius:5px;background:#eef3fc;font-size:10px;font-variant-numeric:tabular-nums}
#workPet .pet18-list{display:flex;flex-direction:column;gap:5px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px;scrollbar-width:thin;scrollbar-color:#cbd6e6 transparent}
#workPet .pet18-item{display:flex;align-items:flex-start;gap:10px;min-width:0;width:100%;padding:11px 9px;border:1px solid transparent;border-radius:11px;background:#fff;text-align:left;flex:none}
#workPet .pet18-item:hover{background:#f5f8fd;border-color:#e7eef9}
#workPet .pet18-item.is-unread,#workPet .pet18-item.unread{background:#f7faff;border-color:#edf3fd}
#workPet .pet18-item-icon{display:grid;place-items:center;width:32px;height:32px;flex:none;margin:1px 0 0;border:1px solid #e1ebfb;border-radius:10px;background:#edf4ff;color:#648fd0;font-size:16px;line-height:1}
#workPet .pet18-item-icon svg{display:block;width:17px;height:17px}
#workPet .pet18-item>div{min-width:0;flex:1}
#workPet .pet18-item b{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.55;font-weight:650;color:#344e71;overflow-wrap:anywhere}
#workPet .pet18-item p{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical;margin:4px 0 5px;font-size:11px;line-height:1.5;color:#8494aa;overflow-wrap:anywhere}
#workPet .pet18-item small{display:block;font-size:10px;line-height:1.5;color:#8a9bb2}
#workPet .pet18-item.is-overdue small,#workPet .pet18-item.overdue small{color:#cf775f}
#workPet .pet18-item.is-overdue .pet18-item-icon,#workPet .pet18-item[data-priority="urgent"] .pet18-item-icon{background:#fff4ed;border-color:#f6e0d4;color:#d68b61}
#workPet .pet18-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:154px;padding:25px 16px;text-align:center;color:#91a0b4;font-size:12px;line-height:1.7}
#workPet .pet18-empty>b,#workPet .pet18-empty h4{margin:0;color:#6d819f;font-size:13px;font-weight:650}
#workPet .pet18-empty p{margin:0;max-width:245px;font-size:11px;line-height:1.8}
#workPet .pet18-empty svg{width:35px;height:35px;margin-bottom:3px;color:#9fb7d8}
#workPet #workPetDemo{padding:7px 11px;border:1px solid #dce8fb;border-radius:8px;background:#f2f7ff;color:#6187c2;font-size:11px}
#workPet #workPetDemo:hover{background:#e8f1ff;border-color:#c4d9f9}
#workPet .pet18-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:12px 14px;border-top:1px solid var(--pet18-line);background:#fbfcff}
#workPet .pet18-panel-footer button{padding:8px 10px;border:1px solid #e4ebf5;border-radius:9px;background:#fff;color:#7990af;font-size:11px;font-weight:600;white-space:nowrap}
#workPet .pet18-panel-footer button:hover{background:#f1f6fe;border-color:#cadaf2}
#workPet #workPetOpenWork{background:#edf4ff;border-color:#dce9ff;color:#3973cf}
#workPet #workPetOpenWork:hover{background:#e1edff;border-color:#c4daff}
#workPet.pet18-in-dialog{--pet18-bottom:92px}
#workPet.pet18-compact{width:44px;height:46px}
#workPet.pet18-compact .pet18-toggle{width:44px;height:44px;border-radius:16px;opacity:.85}
#workPet.pet18-compact .pet18-toggle:hover,#workPet.pet18-compact .pet18-toggle:focus-visible{opacity:1}
#workPet.pet18-compact .pet18-mascot{width:40px;height:40px}
#workPet.pet18-compact .pet18-count{right:-4px;top:-5px;min-width:20px;height:20px;font-size:9px}
#workPet.pet18-compact .pet18-bubble{display:none}
#workPet.pet18-compact .pet18-panel{bottom:59px}
@keyframes pet18-tail{0%,80%,100%{transform:rotate(0deg)}84%{transform:rotate(-4deg)}88%{transform:rotate(3deg)}92%{transform:rotate(-2deg)}}
@keyframes pet18-ear{0%,91%,100%{transform:rotate(0deg)}94%{transform:rotate(3deg)}97%{transform:rotate(-2deg)}}
@keyframes pet18-alert{0%,100%{transform:rotate(0)}20%{transform:rotate(-3deg)}40%{transform:rotate(3deg)}60%{transform:rotate(-2deg)}80%{transform:rotate(1deg)}}
@keyframes pet18-appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
#workPet .pet18-panel-head h3{flex:1}
#workPet .pet18-settings-toggle{width:28px;height:28px;padding:0;border:0;border-radius:8px;background:#f2f6fc;color:#647eaa;font-size:17px}
#workPet .pet18-settings-toggle[aria-expanded="true"]{background:#e5efff;color:#2166ed}
#workPet .pet18-settings{min-height:0;overflow:auto;padding:4px 16px 16px;overscroll-behavior:contain}
#workPet .pet18-settings>b{display:block;margin-bottom:8px;font-size:12px}
#workPet .pet18-avatar-options{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
#workPet .pet18-avatar-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:62px;height:76px;padding:4px 8px;border:1px solid #e3ebf5;border-radius:12px;background:#f9fbff;font-size:11px}
#workPet .pet18-avatar-options .pet18-mascot{width:43px;height:43px}
#workPet .pet18-avatar-options button[aria-pressed="true"]{border-color:#72a5f9;background:#edf4ff;color:#2166ed;box-shadow:0 0 0 2px #2166ed12}
#workPet .pet18-upload{position:relative;display:inline-flex;padding:7px 11px;border:1px solid #dce8fb;border-radius:8px;background:#f2f7ff;color:#527fbd;font-size:11px;cursor:pointer;overflow:hidden}
#workPet .pet18-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#workPet .pet18-upload:focus-within{outline:3px solid #b9d2ff;outline-offset:2px}
#workPet .pet18-settings-note{margin:6px 0 14px;font-size:10px;color:#8192aa;line-height:1.6}
#workPet .pet18-size-label{display:flex;justify-content:space-between;margin:10px 0 6px;font-size:12px;font-weight:600}
#workPet .pet18-size-label span{font-size:11px;color:#7a8fac}
#workPet #workPetSize{width:100%;padding:9px 10px;border:1px solid #dce6f5;border-radius:9px;background:#fff;color:#385578;font:inherit}
#workPet .pet18-desktop-option{display:flex;align-items:center;gap:7px;margin-top:15px;font-size:12px;cursor:pointer}
#workPet .pet18-desktop-option input{accent-color:#2166ed;width:16px;height:16px;margin:0;flex:none;padding:0}
#workPet .pet18-windows-actions{display:flex;flex-direction:column;gap:8px;margin:14px 0 8px;padding:12px;border:1px solid #dce8fa;border-radius:12px;background:#f8fbff}
#workPet .pet18-windows-actions>b{font-size:12px;color:#385b8a}
#workPet .pet18-windows-status{font-size:10px;color:#8395b0}
#workPet .pet18-windows-actions>a{display:block;padding:9px 10px;border:1px solid #cadefb;border-radius:8px;background:#eaf2ff;color:#2466c9;text-align:center;font-size:11px;font-weight:600;text-decoration:none;cursor:pointer}
#workPet .pet18-windows-actions>a:hover{background:#dceaff}
#workPet .pet18-windows-actions>a:focus-visible{outline:3px solid #b9d2ff;outline-offset:2px}
#workPet .pet18-windows-actions>p{margin:0;font-size:10px;line-height:1.7;color:#8395b0}
#workPet .pet18-windows-actions>.pet18-installer-link{padding:0;border:0;background:transparent;color:#6283b1;font-weight:400;text-decoration:underline}
#workPet:not(.pet18-compact){width:var(--pet18-size,64px);height:calc(var(--pet18-size,64px) + 4px)}
#workPet:not(.pet18-compact) .pet18-toggle{width:var(--pet18-size,64px);height:var(--pet18-size,64px)}
#workPet:not(.pet18-compact) .pet18-toggle .pet18-mascot{width:calc(var(--pet18-size,64px) - 6px);height:calc(var(--pet18-size,64px) - 6px)}
#workPet:not(.pet18-compact) .pet18-bubble,#workPet:not(.pet18-compact) .pet18-panel{bottom:calc(var(--pet18-size,64px) + 16px)}
#workPet .pet18-panel,#workPet.pet18-in-dialog .pet18-panel{max-height:min(610px,calc(100dvh - var(--pet18-size,64px) - var(--pet18-bottom,76px) - 40px))}
@media(max-width:760px){
  #workPet{right:12px;--pet18-bottom:77px;width:52px;height:55px}
  #workPet .pet18-toggle{width:52px;height:52px;border-radius:19px}
  #workPet .pet18-mascot{width:49px;height:49px}
  #workPet .pet18-bubble{bottom:66px;max-width:calc(100vw - 24px);width:245px}
  #workPet .pet18-panel{bottom:66px;width:330px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 163px);border-radius:16px}
  #workPet.pet18-in-dialog{--pet18-bottom:128px}
  #workPet.pet18-in-dialog .pet18-panel{max-height:calc(100dvh - 214px)}
  #workPet .pet18-panel-head{padding:14px 16px 4px}
  #workPet .pet18-panel-subtitle{padding-right:16px;padding-left:16px}
  #workPet .pet18-summary{margin-right:16px;margin-left:16px}
  #workPet .pet18-panel-close{width:32px;height:32px}
  #workPet .pet18-tabs button{min-height:42px}
  #workPet .pet18-panel-footer button{min-height:36px}
  #workPet.pet18-compact .pet18-panel{bottom:58px}
}
@media(max-height:520px){
  #workPet{--pet18-bottom:24px}
  #workPet.pet18-in-dialog{--pet18-bottom:24px}
  #workPet .pet18-panel,#workPet.pet18-in-dialog .pet18-panel{max-height:calc(100dvh - 107px)}
  #workPet .pet18-bubble{width:235px}
  #workPet .pet18-panel-subtitle{padding-bottom:8px}
  #workPet .pet18-summary{margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){
  #workPet *,#workPet *:before,#workPet *:after{animation:none!important;transition:none!important}
}
#workPet:not(.pet18-compact) .pet18-panel{max-height:min(610px,calc(100dvh - var(--pet18-size,64px) - var(--pet18-bottom,76px) - 40px))}
#workPet .pet18-reminder-settings{margin:12px 0 16px;padding:12px;background:#f5f8ff;border:1px solid #e2eaff;border-radius:12px}
#workPet .pet18-reminder-settings label{display:block;font-size:12px;font-weight:700;color:#294669;margin-bottom:7px}
#workPet .pet18-reminder-settings select{width:100%;height:38px;border:1px solid #dce7fa;border-radius:9px;background:white;color:#294669;padding:0 9px}
#workPet .pet18-detail{overflow:auto;min-height:0;padding:0 20px 18px;overscroll-behavior:contain}
#workPet .pet18-detail>b,#workPet .pet18-detail>small{display:block;margin:8px 0;color:#294669}
#workPet .pet18-detail>small{font-size:11px;color:#7a8da8}
#workPet .pet18-detail-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;padding:12px;background:#f5f8ff;border:1px solid #e3ebfa;border-radius:12px;color:#254164}
#workPet .pet18-detail button{border:1px solid #dce7ff;border-radius:9px;background:#edf4ff;color:#2162dc;padding:8px 11px;font-size:12px;cursor:pointer;margin:4px 6px 0 0}
#workPet .pet18-detail .pet18-detail-back{border:0;background:transparent;padding-left:0}
#workPet #workPetDetailStatus,#workPet .pet18-detail-file{font-size:11px;line-height:1.6;color:#7a8da8;overflow-wrap:anywhere}
/* Pet may be dragged anywhere; its cards are positioned inside the visible viewport. */
#workPet .pet18-toggle{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
#workPet.pet18-dragging .pet18-toggle{cursor:grabbing;animation:none;box-shadow:0 9px 28px #264b7c38}
#workPet.pet18-dragging .pet18-mascot{transform:rotate(-5deg)}
#workPet .pet18-panel,#workPet .pet18-bubble{position:fixed}
#workPet .pet18-bubble:after{right:auto;left:var(--pet18-tail-left,21px)}
#workPet .pet18-bubble.pet18-below:after{top:-6px;bottom:auto;border-right:0;border-bottom:0;border-left:1px solid #dce7f7;border-top:1px solid #dce7f7}
#workPet .pet18-panel-hide{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;background:transparent;border:0;border-radius:8px;color:#7389a7;font-size:20px}
#workPet .pet18-panel-hide:hover{background:#eef3fa;color:#35557d}
#workPet.pet18-user-hidden{width:116px;height:36px}
#workPet.pet18-user-hidden .pet18-toggle,#workPet.pet18-user-hidden .pet18-panel,#workPet.pet18-user-hidden .pet18-bubble{display:none!important}
#workPet .pet18-restore{display:flex;align-items:center;justify-content:center;gap:6px;pointer-events:auto;width:116px;height:36px;padding:0 8px;border:1px solid #dce7f7;border-radius:18px;background:#fff;box-shadow:0 3px 13px #264b7c16;color:#6380a4;font-size:11px;white-space:nowrap}
#workPet .pet18-restore:hover{background:#edf4ff;border-color:#b6d1f9}
#workPet .pet18-restore-count{display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:10px;background:#2166ed;color:white;font-size:9px;font-weight:750;line-height:1}
