.soc-calendar { width:100%; min-width:0; box-sizing:border-box; padding:clamp(12px,1.2vw,18px); border:1px solid var(--student-border); border-radius:20px; background:var(--student-surface); color:var(--student-ink); }
.soc-calendar *, .soc-calendar *::after { box-sizing:border-box; }
.soc-calendar header,.soc-calendar header>div { display:flex; align-items:center; }
.soc-calendar header { justify-content:space-between; gap:4px; }
.soc-calendar header h2 { margin:0; font:600 clamp(18px,1.7vw,25px)/1.12 var(--serif,Georgia,serif); color:var(--student-accent); }
.soc-calendar header h2::first-letter,.soc-calendar th::first-letter { text-transform:uppercase; }
.soc-calendar header>div { gap:2px; }
.soc-calendar button { display:grid; place-items:center; position:relative; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.soc-calendar button:focus-visible { outline:2px solid var(--student-accent); outline-offset:1px; }
.soc-calendar .soc-arrow { width:32px; height:32px; border-radius:50%; }
.soc-calendar .soc-arrow svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.soc-calendar table { --day-size:clamp(30px,2.4vw,34px); display:block; width:100%; margin:4px 0 8px; }
.soc-calendar thead,.soc-calendar tbody { display:grid; gap:2px; }
.soc-calendar tr { display:grid; grid-template-columns:repeat(7,min(14.2857%,var(--day-size))); justify-content:space-between; align-items:center; }
.soc-calendar th { display:grid; place-items:center; }
.soc-calendar th,.soc-calendar td { padding:0; border:0; text-align:center; }
.soc-calendar th { height:28px; color:var(--student-muted); font:550 11px/1.2 var(--sans,Arial,sans-serif); }
.soc-calendar td button { margin:auto; width:100%; aspect-ratio:1; height:auto; border-radius:50%; font:550 13px/1 var(--sans,Arial,sans-serif); font-variant-numeric:tabular-nums; }
.soc-calendar td button[aria-current=date] { box-shadow:inset 0 0 0 1px var(--student-accent); }
.soc-calendar td button[data-has-lessons]::after { content:""; position:absolute; bottom:3px; width:4px; height:4px; border-radius:50%; background:currentColor; }
.soc-calendar td button[aria-pressed=true] { color:var(--student-surface); background:var(--student-accent); }
@media(hover:hover){.soc-calendar .soc-arrow:hover { background:var(--student-accent); color:var(--student-surface); } .soc-calendar td button:not([aria-pressed=true]):hover { background:var(--student-tint); }}
.soc-calendar .soc-selected-week { background:var(--student-tint); border-radius:999px; }
.soc-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.soc-balance { flex:0 0 auto; margin:0 0 0 auto; text-align:right; color:var(--student-accent); font:550 13px/1.3 var(--sans,Arial,sans-serif); font-variant-numeric:tabular-nums; }
.soc-agenda { flex:1; min-width:0; overflow:hidden; }
.soc-agenda[data-open=false] { height:0; }
.soc-agenda ul { list-style:none; margin:0; padding:0; }
.soc-agenda li { display:flex; flex-wrap:wrap; gap:0 6px; color:var(--student-ink); font:500 13px/1.45 var(--sans,Arial,sans-serif); }
.soc-agenda li + li { margin-top:4px; }
.soc-agenda li span { min-width:0; overflow-wrap:anywhere; }
.soc-agenda time { color:var(--student-accent); white-space:nowrap; font-variant-numeric:tabular-nums; font-weight:650; }
.soc-calendar .soc-day-count {position:absolute; bottom:0; right:0; display:grid; place-items:center; min-width:13px; height:13px; border-radius:50%; background:var(--student-accent); color:var(--student-surface); font:650 9px/1 var(--sans,Arial,sans-serif);}
.soc-calendar td button:has(.soc-day-count)::after {display:none;}

.soc-calendar [aria-pressed=true] .soc-day-count {
  background: var(--student-surface);
  color: var(--student-accent);
}
