/* v0.4.13 Team Intelligence; scoped to original Team screen. No competing layout solver. */
#teamView .re413-digest{min-width:0;margin:0 0 14px}
#teamView .re413-digest-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
#teamView .re413-digest-header h3{margin:0;font-size:17px}
#teamView .re413-digest-periods{display:flex;flex-wrap:wrap;gap:4px}
#teamView .re413-digest-periods button{font:inherit;font-size:12px;border-radius:7px;border:1px solid var(--border,#9db1bd);padding:7px 10px;background:var(--card,#fff);color:var(--text,#172e3c);cursor:pointer}
#teamView .re413-digest-periods button[aria-pressed="true"]{background:#087eab;border-color:#087eab;color:#fff}
#teamView .re413-digest-periods button:focus-visible{outline:3px solid #12b2d8;outline-offset:2px}
#teamView .re413-digest-meta{font-size:12px;opacity:.8;margin:8px 0}
#teamView .re413-digest-status{line-height:1.45;font-size:13px;margin:9px 0}
#teamView .re413-digest-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#teamView .re413-stat{display:flex;flex-direction:column;gap:2px;background:var(--card,#f0f6f8);border:1px solid var(--border,#d5e2ea);border-radius:9px;padding:10px;min-width:0}
#teamView .re413-stat strong{font-size:21px;font-variant-numeric:tabular-nums}
#teamView .re413-stat span{font-size:11px;opacity:.8}
#teamView .re413-digest-subgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:13px}
#teamView .re413-digest h4{font-size:13px;margin:8px 0 6px}
#teamView .re413-trend{display:flex;align-items:flex-end;min-width:0;gap:5px;min-height:116px;max-width:100%;overflow-x:auto;padding-bottom:4px}
#teamView .re413-trend-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;min-width:35px;flex:1 0 35px;max-width:90px;min-height:102px}
#teamView .re413-trend-item strong{font-size:11px;font-variant-numeric:tabular-nums}
#teamView .re413-trend-bar{display:block;min-height:3px;width:65%;background:#1598bf;border-radius:4px 4px 0 0}
#teamView .re413-trend-item small{font-size:10px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;opacity:.8}
#teamView .re413-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#teamView .re413-category{display:flex;gap:6px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border,#cfdae1);font-size:12px;padding:5px 2px}
#teamView .re413-category strong{font-variant-numeric:tabular-nums}
#teamView .re413-person{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--border,#cfdae1);padding:8px 2px;font-size:12px}
#teamView .re413-person span{opacity:.83}
#teamView .re413-work{padding:9px 0;border-bottom:1px solid var(--border,#d6e1e7)}
#teamView .re413-work-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}
#teamView .re413-work-head small{opacity:.7}
#teamView .re413-work p{margin:4px 0;font-size:11px}
#teamView .re413-note{font-size:11px;line-height:1.45;opacity:.82;margin:12px 0 0}
/* Color parity: a saved contributor accent is used in both themes, Team and Overview. */
#teamView .re309-person-card{border-left:4px solid var(--re324-contributor-color,#12b2d8)}
[data-theme="dark"] #teamView .re309-person-card{border-left-color:var(--re324-contributor-color,#12b2d8)}
#teamView .re309-person-card .re309-avatar,#teamView .re309-profile-hero .re309-avatar{border:3px solid var(--re324-contributor-color,#12b2d8)}
[data-theme="dark"] #teamView .re309-person-card .re309-avatar,[data-theme="dark"] #teamView .re309-profile-hero .re309-avatar{border-color:var(--re324-contributor-color,#12b2d8)}
.re407-card .re408-team-native .re309-person-card{border-left:4px solid var(--re324-contributor-color,#12b2d8)}
[data-theme="dark"] .re407-card .re408-team-native .re309-person-card{border-left-color:var(--re324-contributor-color,#12b2d8)}
.re407-card .re408-team-native .re309-person-card .re309-avatar{border:3px solid var(--re324-contributor-color,#12b2d8)}
[data-theme="dark"] .re407-card .re408-team-native .re309-person-card .re309-avatar{border-color:var(--re324-contributor-color,#12b2d8)}
@media(max-width:800px){#teamView .re413-digest-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#teamView .re413-digest-subgrid{grid-template-columns:1fr}}


/* Cloud v0.4.14–15: complete high-contrast semantic theme pairs for embedded Team Digest.
   Avoid inherited --card/--text variables: the shell can override them with
   mismatched theme values when entering a customer/owner view. */
#appShell #teamView #re413Digest{
 --re414-surface:#ffffff;--re414-ink:#142b3a;--re414-muted:#40596b;
 --re414-subtle:#eef4f8;--re414-border:#bacdd8;--re414-accent:#086b94;
 background:var(--re414-surface)!important;color:var(--re414-ink)!important;
 border-color:var(--re414-border)!important;
}
#appShell[data-theme="dark"] #teamView #re413Digest,
[data-theme="dark"] #appShell #teamView #re413Digest{
 --re414-surface:#18242d;--re414-ink:#f0f7fb;--re414-muted:#bbd0dc;
 --re414-subtle:#233742;--re414-border:#466171;--re414-accent:#78dfff;
}
#appShell #teamView #re413Digest :is(h3,h4,.re413-stat strong,.re413-trend-item strong,.re413-category strong,.re413-person strong,.re413-work-head strong){color:var(--re414-ink)!important;}
#appShell #teamView #re413Digest :is(.re413-digest-meta,.re413-digest-status,.re413-stat span,.re413-note,.re413-work p,.re413-work-head small,.re413-person span,.re413-trend-item small){color:var(--re414-muted)!important;opacity:1!important;}
#appShell #teamView #re413Digest .re413-stat{
 background:var(--re414-subtle)!important;border-color:var(--re414-border)!important;color:var(--re414-ink)!important;
}
#appShell #teamView #re413Digest .re413-digest-periods button{
 background:var(--re414-subtle)!important;color:var(--re414-ink)!important;border-color:var(--re414-border)!important;
}
#appShell #teamView #re413Digest .re413-digest-periods button[aria-pressed="true"]{
 background:#056c96!important;color:#ffffff!important;border-color:#0785b5!important;
}
#appShell #teamView #re413Digest .re413-digest-periods button:hover:not([aria-pressed="true"]){
 background:var(--re414-surface)!important;border-color:var(--re414-accent)!important;
}
#appShell #teamView #re413Digest :is(.re413-work,.re413-category,.re413-person){border-color:var(--re414-border)!important;}
#appShell #teamView #re413Digest a{color:var(--re414-accent)!important;}
#appShell #teamView #re413Digest :is(.re376-handle,.re376-options,.re376-resize,.re403-more){
 color:#b0f1ff!important;background:rgba(6,73,104,.91)!important;border-color:#57c8e9!important;
}
#appShell #teamView #re413Digest>.re403-more.re414-remove-icon{font:700 22px/1 system-ui,sans-serif!important;}
#appShell #teamView #re413Digest .re376-heading{padding-inline:37px!important;}

/* Permanent reserved control rail: the four editor handles may fade in, but
   changing visibility must not cover the date selectors or shift the title. */
#appShell #teamView #re413Digest .re413-digest-header{
 padding-right:88px!important;box-sizing:border-box;min-width:0;
}
#appShell #teamView #re413Digest .re413-digest-periods{max-width:100%;justify-content:flex-end;}
@media(max-width:700px){#appShell #teamView #re413Digest .re413-digest-header{padding-right:0!important;}}

/* v0.4.15: Digest is content of canonical Team module m3, not an extra card. */
#teamView #re415TeamDetailsModule{position:relative;min-width:0;align-content:start;}
#teamView #re415TeamDetailsModule>.re415-module-heading{
 margin:0;min-width:0;font-size:17px;line-height:1.35;
 padding:8px 94px 8px 40px!important;box-sizing:border-box;overflow-wrap:anywhere;
}
#teamView #re415TeamDetailsModule>.re376-handle,
#teamView #re415TeamDetailsModule>.re376-options,
#teamView #re415TeamDetailsModule>.re403-more,
#teamView #re415TeamDetailsModule>.re376-resize{z-index:4;}
#appShell #teamView #re415TeamDetailsModule>.re403-more.re414-remove-icon{font:700 22px/1 system-ui,sans-serif!important;}
#teamView[data-re415-selection="all"] #re309Profile{display:none!important;}
#teamView:not([data-re415-selection="all"]) .re415-manager-contributors{display:none;}
#teamView #re413Digest{margin:0;overflow-wrap:anywhere;}
#teamView .re415-optional-trend{margin-top:10px;}
#teamView .re415-optional-trend summary{cursor:pointer;color:var(--re414-ink);font-size:12px;font-weight:650;}
#teamView .re415-optional-trend summary:focus-visible{outline:3px solid #12b2d8;outline-offset:2px;}
#teamView #re415TeamDetailsModule .re413-digest-header{padding-right:0!important;}
#teamView #re415TeamDetailsModule .re413-digest-subgrid{grid-template-columns: minmax(0,1fr) minmax(0,1fr);}
@media(max-width:1050px){#teamView #re415TeamDetailsModule .re413-digest-subgrid{grid-template-columns:minmax(0,1fr)};}
@media(max-width:640px){#teamView #re415TeamDetailsModule>.re415-module-heading{padding-right:92px!important;}#teamView #re415TeamDetailsModule .re413-digest-stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
