/* Notifications/Tagged (Nov 20, 2026): the box from the side menu (rooftop/tagged.js) */
.tg-back { position: fixed; inset: 0; z-index: 90; background: rgba(20, 26, 40, .32); display: flex; justify-content: flex-end; }
.tg-box { --ink: #1B2333; --muted: #5B6475; --line: #E1E5EE; --brand: #1F3A93; --bad: #B42318;
  width: min(460px, 100vw); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(20, 26, 40, .2);
  font: 13.5px Roboto, "Segoe UI", Arial, sans-serif; color: var(--ink); }
.tg-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.tg-h h2 { margin: 0; font-size: 18px; font-weight: 600; }
.tg-x { all: unset; cursor: pointer; font-size: 24px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.tg-x:hover { background: rgba(0, 0, 0, .06); }
.tg-x:focus-visible, .tg-tabs button:focus-visible, .tg-go:focus-visible, .tg-del:focus-visible, .tg-all:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.tg-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.tg-tabs button { all: unset; cursor: pointer; padding: 9px 10px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.tg-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tg-tabs b { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #C0392B; color: #fff; font: 700 11px/18px Roboto, Arial, sans-serif; text-align: center; }
.tg-body { flex: 1; overflow: auto; padding: 8px 14px 16px; }
.tg-bar { display: flex; justify-content: flex-end; padding: 2px 0 6px; }
.tg-all { all: unset; cursor: pointer; color: var(--brand); font-weight: 500; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; }
.tg-all:hover { background: #F1F4FA; text-decoration: underline; }
.tg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tg-it { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.tg-it.urgent { border-color: #F2B8B5; background: #FFF6F5; }
.tg-it.done { background: #FAFBFD; }
.tg-go { all: unset; cursor: pointer; flex: 1; min-width: 0; display: flex; gap: 10px; padding: 10px 12px; }
.tg-go:hover { background: rgba(31, 58, 147, .04); }
.tg-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
.tg-it.urgent .tg-dot { background: var(--bad); }
.tg-it.done .tg-dot { background: #B3BAC7; }
.tg-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tg-title { font-weight: 600; }
.tg-it.urgent .tg-title { color: var(--bad); }
.tg-where { color: var(--ink); font-size: 12.5px; }
.tg-text { color: #3A4458; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-by { color: var(--muted); font-size: 11.5px; }
.tg-del { all: unset; cursor: pointer; flex: none; width: 34px; display: grid; place-items: center; color: var(--muted); font-size: 18px; border-left: 1px solid var(--line); }
.tg-del:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.tg-empty { color: var(--muted); text-align: center; margin: 36px 0; }
.tg-find { display: block; margin: 4px 0 10px; }
.tg-q { width: 100%; box-sizing: border-box; font: 13.5px Roboto, Arial, sans-serif; border: 1px solid #C9D1DA; border-radius: 8px; padding: 8px 10px; }
.tg-q:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 58, 147, .15); }
.tg-mon { margin-bottom: 8px; }
.tg-mon > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-weight: 600; color: var(--ink); list-style: none; }
.tg-mon > summary::-webkit-details-marker { display: none; }
.tg-mon > summary::before { content: ''; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; margin: 0 4px 0 2px; }
.tg-mon[open] > summary::before { transform: rotate(45deg); }
.tg-mon > summary span { color: var(--muted); font-weight: 400; font-size: 12px; }
.tg-mon .tg-list { padding: 2px 0 4px; }
html.phone .tg-box { width: 100vw; }
