#activity-button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;min-height:30px;padding:5px 9px;border:1px solid #ffffff30;border-radius:6px;background:#ffffff08;color:#c5d3bc;font:11px/18px 'Segoe UI',Arial,sans-serif;white-space:nowrap}
#activity-button svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#activity-button:hover,#activity-button[aria-expanded="true"]{background:#ffffff16;border-color:#c4d7ad80;color:#e4eedb}
#activity-button[data-live="alarm"]{border-color:#d09b64;color:#ffd29a}
#activity-button[data-live="recording"]{border-color:#bd7770;color:#efb0a6}
#activity-button[data-live="alarm"]::after,#activity-button[data-live="recording"]::after{content:'';position:absolute;right:3px;top:3px;width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px #14251f}
.activity-count{display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#c9dda8;color:#233a2b;font-size:10px;font-weight:600;line-height:17px;font-variant-numeric:tabular-nums}
.activity-count[hidden],.activity-panel[hidden],.activity-panel [hidden]{display:none!important}
.activity-panel{position:fixed;right:12px;bottom:60px;z-index:10000;display:flex;flex-direction:column;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 84px);overflow:hidden;padding:12px;border:1px solid #a6b99b60;border-radius:8px;background:#172e25f5;color:#e2ead8;box-shadow:0 12px 32px #0005;backdrop-filter:blur(12px);font:12px/1.4 'Segoe UI',Arial,sans-serif;color-scheme:dark}
.activity-heading-row,.activity-recent-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto}
.activity-heading-row{margin-bottom:8px}
.activity-heading-row h2{margin:0;font-size:13px;font-weight:600}
.activity-close{width:26px;height:25px;padding:0;border-radius:4px;color:#c4d3bb;font-size:20px;line-height:22px}
.activity-close:hover{background:#ffffff12}
.activity-body{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#a4b79480 transparent}
.activity-section+.activity-section{margin-top:12px;padding-top:10px;border-top:1px solid #ffffff1e}
.activity-section[hidden]+.activity-section{margin-top:0;padding-top:0;border-top:0}
.activity-section h3{margin:0 0 6px;color:#bdcdb1;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.055em}
.activity-recent-heading{margin-bottom:6px}
.activity-recent-heading h3{margin:0}
.activity-clear{padding:3px 5px;border:1px solid #ffffff20;border-radius:4px;color:#bfceb3;font-size:10px}
.activity-clear:hover{background:#ffffff0e}
.activity-clear:disabled{opacity:.45;cursor:default}
.activity-list{display:flex;flex-direction:column;gap:4px}
.activity-item{display:flex;align-items:flex-start;gap:8px;width:100%;min-width:0;padding:9px 7px;border:1px solid transparent;border-radius:5px;background:#ffffff04;color:inherit;text-align:left;font:inherit}
button.activity-item:hover{background:#ffffff0d;border-color:#ffffff18}
.activity-item.is-unread{background:#c5d9a90b}
.activity-item-text{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.activity-item strong{font-size:11px;font-weight:500}
.activity-detail{color:#aebfa6;font-size:10px;line-height:1.4}
.activity-time{flex:0 0 auto;margin-top:1px;color:#91a48a;font-size:9px;white-space:nowrap}
.activity-dot{flex:0 0 5px;width:5px;height:5px;margin-top:5px;border-radius:50%;background:#8ea17d}
.activity-item[data-tone="alarm"] .activity-dot{background:#e7b474}
.activity-item[data-tone="recording"] .activity-dot{background:#d58b7f}
.activity-item[data-tone="warning"] .activity-dot{background:#d4be76}
.activity-empty{margin:12px 2px;color:#aabca2;font-size:12px}
.activity-panel button:focus-visible,#activity-button:focus-visible{outline:2px solid #d4e5a1;outline-offset:2px}
@media(max-width:700px){#activity-button{grid-column:2;grid-row:2;justify-self:end;width:28px;height:24px;min-height:24px;padding:3px}.activity-label{display:none}#activity-button .activity-count{position:absolute;right:-3px;bottom:-2px;min-width:12px;height:12px;padding:0 2px;font-size:8px;line-height:12px}footer #tasks{width:calc(100% - 34px)}.activity-panel{right:8px;bottom:76px;max-height:calc(100dvh - 96px)}}
