/* Account-scoped work brief, inside the app only. */
body .daily-brief-toggle{position:fixed;right:84px;bottom:24px;z-index:38;display:flex;align-items:center;gap:9px;min-height:48px;padding:9px 17px;border:1px solid var(--theme-line);border-radius:28px;background:var(--theme-surface)!important;color:var(--theme-ink)!important;box-shadow:0 8px 24px #10234820;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer}
.daily-brief-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--theme-accent);color:var(--theme-on-accent);font-size:20px}
body .daily-brief{position:fixed;inset:auto 82px 84px auto;margin:0;padding:0;width:420px;max-width:calc(100vw - 24px);height:min(690px,calc(100dvh - 112px));max-height:calc(100dvh - 112px);border:1px solid var(--theme-line);border-radius:20px;background:var(--theme-surface);color:var(--theme-ink);box-shadow:0 18px 60px #10234830;z-index:250;overflow:hidden}
body .daily-brief[open]{display:flex;flex-direction:column}.daily-brief::backdrop{background:#0b172c55}
.brief-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:20px 22px 16px;border-bottom:1px solid var(--theme-line);background:var(--theme-soft)}
body .daily-brief>.brief-header{flex-direction:row!important;text-align:left;align-items:center}
.brief-header h2{font-size:20px!important;line-height:1.5;margin:3px 0 0!important;color:var(--theme-ink)!important}.brief-eyebrow{margin:0;font-size:9px;letter-spacing:.12em;color:var(--theme-muted)}
body .brief-header>button{min-width:42px;height:42px;min-height:42px;border:0;background:transparent!important;color:var(--theme-ink)!important;border-radius:50%;font-size:25px;padding:0}
.brief-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 24px;scrollbar-width:thin}.brief-scope{font-size:14px;font-weight:600;line-height:1.7;margin:0 0 4px}.brief-note{font-size:11px;line-height:1.7;color:var(--theme-muted);margin:4px 0 12px;overflow-wrap:anywhere}
.brief-tools{display:flex;align-items:flex-end;gap:8px;justify-content:flex-end;margin:14px 0}.brief-tools label{flex:1;min-width:0;margin:0;font-size:11px;color:var(--theme-muted)}.brief-tools select{display:block;width:100%;min-width:0;margin:5px 0 0;height:42px;font-size:12px;background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-line);border-radius:8px;padding:8px}.brief-tools>button{min-height:42px;font-size:12px;flex:none}
.brief-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 18px}body .brief-counts button{padding:10px 3px;min-width:0;min-height:72px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-surface)!important;color:var(--theme-ink)!important;font-size:10px}body .brief-counts button strong{display:block;font-size:23px;line-height:1.4;margin-top:4px}body .brief-counts button[aria-pressed=true]{background:var(--theme-soft)!important;border:2px solid var(--theme-accent);padding:9px 2px}.brief-counts button[data-bucket=overdue] strong{color:var(--theme-accent)}
.brief-mail{border:1px solid var(--theme-line);border-radius:12px;padding:12px;margin:0 0 18px;background:var(--theme-soft)}.brief-mail summary{cursor:pointer;font-size:13px;font-weight:600;min-height:28px}.brief-mail a{display:block;font-size:11px;line-height:1.7;color:var(--theme-accent);padding:8px 0;overflow-wrap:anywhere}.brief-mail .brief-mail-entry{border-bottom:1px solid var(--theme-line)}.brief-mail-entry small{display:block;color:var(--theme-muted);font-size:10px}
.brief-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}.brief-list-heading h3{font-size:14px!important;margin:0!important}.brief-list-heading button{font-size:11px;min-height:36px;padding:6px 8px}
.brief-items{display:grid;gap:10px}.brief-item{display:block;border:1px solid var(--theme-line);border-radius:13px;padding:14px;background:var(--theme-surface);color:var(--theme-ink)!important;text-decoration:none}.brief-item:hover{border-color:var(--theme-accent)}.brief-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:10px;color:var(--theme-muted)}.brief-item-title{font-size:14px;line-height:1.65;display:block;overflow-wrap:anywhere}.brief-item p{font-size:11px;line-height:1.7;margin:6px 0 0;overflow-wrap:anywhere;color:var(--theme-muted)}.brief-item .brief-reason{color:var(--theme-ink);font-size:11px}.brief-item .task-status{font-size:10px!important;min-width:50px!important;min-height:22px!important;height:auto!important}.brief-item-open{display:block;margin-top:9px;font-size:11px;color:var(--theme-accent)}
.brief-empty{padding:20px 14px;border:1px dashed var(--theme-line);border-radius:12px;font-size:12px;line-height:1.8;color:var(--theme-muted);margin:0}.brief-more{display:block;margin:15px auto 0;min-height:44px;font-size:12px}.brief-basis{font-size:11px;color:var(--theme-muted);line-height:1.8;border:0;border-top:1px solid var(--theme-line);border-radius:0;margin:22px 0 0;padding:14px 0 0;background:transparent}.brief-basis summary{cursor:pointer;min-height:28px}.brief-basis ul{padding-left:18px}.brief-footer{flex:none;padding:12px 20px;border-top:1px solid var(--theme-line);font-size:10px;color:var(--theme-muted);background:var(--theme-surface)}
body .daily-brief [hidden]{display:none!important}.daily-brief :is(a,button,select):focus-visible,.daily-brief-toggle:focus-visible{outline:2px solid var(--theme-accent)!important;outline-offset:2px}.workspace-menu-open .daily-brief-toggle{visibility:hidden}
@media(max-width:1100px){body .daily-brief-toggle{right:20px}body .daily-brief{right:20px}}
@media(max-width:720px){body .daily-brief-toggle{right:14px;bottom:calc(86px + env(safe-area-inset-bottom));padding:6px 12px;font-size:12px;min-height:44px}body .daily-brief{inset:auto 0 0;margin:0;width:100%;max-width:100%;height:min(82dvh,720px);max-height:82dvh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.brief-header{padding:16px 18px 13px}.brief-body{padding:14px 16px 20px}.brief-footer{padding:10px 16px}.brief-counts{gap:5px}}
@media(min-width:1180px){body.chat-dock-open .daily-brief-toggle{right:438px}body.chat-dock-open .daily-brief{right:438px}}
@media(prefers-reduced-motion:no-preference){.daily-brief[open]{animation:brief-in .15s ease-out}@keyframes brief-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
