/* Closed dialogs and hidden controls must never be exposed by component styles. */
[hidden], dialog:not([open]) { display: none !important; }
.menu-backdrop { position: fixed; inset: 0; z-index: 9; border: 0; border-radius: 0; background: #04133188; backdrop-filter: blur(3px); cursor: pointer; }
.evidence-viewer { width: min(680px, calc(100% - 28px)); max-height: 88dvh; padding: 0; border-radius: 24px; overflow: auto; background: #fff; }
.evidence-viewer header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #fff; border-bottom: 1px solid #e2e7ef; }
.evidence-viewer h2 { font-size: 18px; margin: 0; }
.evidence-viewer button { min-height: 44px; }
.evidence-stage { padding: 16px; background: #f2f5f8; text-align: center; }
.evidence-stage img { display: block; max-width: 100%; max-height: 58dvh; width: auto; height: auto; margin: auto; object-fit: contain; border-radius: 12px; }
.evidence-viewer footer { padding: 12px 20px; color: #5c697c; font-size: 12px; }
.evidence-viewer::backdrop { background: #03132bb3; backdrop-filter: blur(3px); }
#teamChatNav .nav-icon svg { width: 20px; height: 20px; }
#teamChatNav b { margin-left: auto; border-radius: 12px; padding: 2px 7px; background: #ff5c45; color: #fff; font-size: 11px; }
.team-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.team-filters select { min-width: 0; width: 100%; padding: 10px; border: 1px solid #d6dfeb; border-radius: 12px; }
.filter-drawer { margin: 16px 0; border: 1px solid #dde5db; border-radius: 16px; background: #f7faf4; }
.filter-drawer summary { padding: 14px 18px; cursor: pointer; color: #295c15; font-size: 13px; font-weight: 800; }
.filter-drawer[open] summary { border-bottom: 1px solid #dde5db; }
.filter-drawer .filter-grid { border: 0; margin: 0; }
@media(max-width:700px) { .team-layout { grid-template-rows: 200px minmax(0,1fr); } .team-shell>p:not([role]) { display:none; } .team-shell header { flex-wrap:wrap; } }
@media(min-width:821px) { .menu-backdrop { display: none; } }
