.team-calendar-page { --calendar-sugar:#dbb41d; --calendar-cathy:#dc7d32; --calendar-da:#785038; --calendar-sweet:#718044; }
.team-calendar-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.team-calendar-toolbar h2 { margin:0; min-width:190px; text-align:center; font-size:1.3rem; }
.team-calendar-toolbar button:last-child { margin-left:auto; }
.team-calendar-legend { display:flex; flex-wrap:wrap; gap:10px 20px; margin:0 0 20px; color:var(--text-soft); font-size:.86rem; }
.team-calendar-legend span { display:inline-flex; align-items:center; gap:7px; }
.team-calendar-dot { display:inline-block; width:9px; height:9px; flex:none; border-radius:50%; background:var(--calendar-da); }
.team-calendar-sugar .team-calendar-dot,.team-calendar-dot.team-calendar-sugar { background:var(--calendar-sugar); }
.team-calendar-cathy .team-calendar-dot,.team-calendar-dot.team-calendar-cathy { background:var(--calendar-cathy); }
.team-calendar-da .team-calendar-dot,.team-calendar-dot.team-calendar-da { background:var(--calendar-da); }
.team-calendar-sweet .team-calendar-dot,.team-calendar-dot.team-calendar-sweet { background:var(--calendar-sweet); }
.team-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.team-calendar-weekday { padding:10px 4px; text-align:center; background:var(--surface-muted); font-weight:700; font-size:.85rem; }
.team-calendar-day { min-height:125px; min-width:0; padding:5px; border-top:1px solid var(--line); border-right:1px solid var(--line); }
.team-calendar-day:nth-child(7n) { border-right:0; }
.team-calendar-day.outside { background:var(--surface-muted); }
.team-calendar-day.today { box-shadow:inset 0 0 0 2px var(--primary); }
.team-calendar-date { width:32px; height:32px; padding:0; border:0; border-radius:50%; background:transparent; color:inherit; font:inherit; font-weight:700; cursor:pointer; }
.team-calendar-date:hover,.team-calendar-date:focus-visible { background:var(--surface-muted); outline:2px solid var(--primary); }
.team-calendar-desktop-entries { display:grid; gap:4px; }
.team-calendar-entry { display:flex; align-items:flex-start; width:100%; gap:6px; padding:5px 6px; border:1px solid var(--line); border-radius:7px; color:inherit; background:var(--surface); text-align:left; font:inherit; cursor:pointer; }
.team-calendar-entry:hover,.team-calendar-entry:focus-visible { border-color:var(--primary); transform:translateY(-1px); }
.team-calendar-entry .team-calendar-dot { margin-top:5px; }
.team-calendar-entry-copy { display:grid; min-width:0; line-height:1.3; }
.team-calendar-entry-copy strong,.team-calendar-entry-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.team-calendar-entry-copy strong { font-size:.72rem; }
.team-calendar-entry-copy small { font-size:.65rem; opacity:.8; }
.team-calendar-more { border:0; padding:3px; background:transparent; color:inherit; text-align:left; cursor:pointer; font-size:.72rem; }
.team-calendar-mobile-dots { display:none; }
.team-calendar-day-list { display:grid; gap:8px; }
.team-calendar-day-list .team-calendar-entry { padding:12px; }
.team-calendar-day-list .team-calendar-entry-copy strong { font-size:.95rem; }
.team-calendar-day-list .team-calendar-entry-copy small { font-size:.8rem; }
.team-calendar-reminders .record-actions { flex-wrap:wrap; }
.team-calendar-nav-count { margin-left:auto; min-width:23px; padding:3px 6px; border-radius:999px; background:var(--warning-soft); color:var(--warning); font-size:.74rem; font-weight:800; text-align:center; }
[data-calendar-focused-plan="true"] { outline:2px solid var(--primary); outline-offset:2px; }
@media(max-width:700px) {
    .team-calendar-toolbar { display:grid; grid-template-columns:auto 1fr auto; gap:8px; }
    .team-calendar-toolbar h2 { min-width:0; font-size:1.1rem; }
    .team-calendar-toolbar button:last-child { grid-column:1/-1; justify-self:end; margin-left:0; }
    .team-calendar-weekday { padding:8px 0; font-size:.72rem; }
    .team-calendar-day { min-height:72px; padding:3px; }
    .team-calendar-date { width:27px; height:27px; font-size:.83rem; }
    .team-calendar-desktop-entries { display:none; }
    .team-calendar-mobile-dots { display:flex; flex-wrap:wrap; gap:3px; margin-top:4px; }
    .team-calendar-mobile-dots .team-calendar-dot { width:7px; height:7px; }
}
@media(max-width:390px) { .team-calendar-day { min-height:62px; } .team-calendar-mobile-dots .team-calendar-dot { width:6px; height:6px; } }
