.learning-summary { grid-column: 2; grid-row: 2 / span 4; align-self: start; position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.learning-summary > summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 21px 20px 0; cursor: default; }
.learning-summary > summary::-webkit-details-marker { display: none; }
.summary-title { color: var(--ink); font-size: 16px; font-weight: 600; }
#compactStudyTime, .summary-chevron { display: none; }
.summary-content { padding: 15px 20px 18px; }
.summary-status-row { display: flex; align-items: center; justify-content: center; }
.check-in-state { color: var(--muted); background: #f4f6fa; border-radius: 999px; padding: 4px 10px; font-size: 10px; }
.check-in-state[data-checked='true'] { background: #eaf7f0; color: #388361; }
.learning-ring { position: relative; width: 164px; height: 164px; margin: 16px auto 22px; }
.learning-ring svg { width: 100%; height: 100%; display: block; }
.learning-ring circle { fill: none; stroke-width: 11px; }
.ring-track { stroke: #eff2fa; }
.ring-fill { stroke: #6374d8; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress,0) * 100); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 80px 80px; transition: stroke-dashoffset .3s ease; }
.ring-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-value strong { font-size: 34px; line-height: 1.2; font-weight: 550; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-value span { color: var(--muted); font-size: 12px; }
.summary-goal, .summary-week-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
.summary-goal strong, .summary-week-head strong { color: var(--ink); font-weight: 550; }
.goal-track { height: 5px; overflow: hidden; border-radius: 5px; background: #eff2fa; margin-top: 10px; }
.goal-track > span { display: block; height: 100%; width: 0; background: #7a89dd; border-radius: inherit; transition: width .3s ease; }
.summary-week-head { margin-top: 24px; }
.learning-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; list-style: none; padding: 0; margin: 14px 0 20px; }
.learning-week li { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.week-dot { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #e4e9f4; border-radius: 50%; background: #f7f8fc; }
.learning-week [data-today='true'] .week-dot { border-color: #93a2e3; }
.learning-week [data-checked='true'] .week-dot { background: #6374d8; color: white; border-color: #6374d8; }
.week-dot .studio-icon { width: 12px; height: 12px; stroke-width: 2.2; }
.summary-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); padding-top: 16px; }
.summary-totals > div { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: var(--muted); }
.summary-totals > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.summary-totals strong { color: var(--ink); font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; }
.summary-rule { color: var(--muted); font-size: 10px; margin: 19px 0 0; line-height: 1.8; }
.summary-load-state { color: var(--muted); font-size: 11px; margin: 12px 0 0; }
.learning-summary[data-error='true'] .summary-load-state { color: #a66b3b; }
@media(max-width: 1000px) {
 .learning-summary { position: static; align-self: stretch; width: 100%; order: 3; margin-top: 14px; border-radius: 12px; }
 .learning-summary > summary { padding: 14px 16px; cursor: pointer; min-height: 52px; }
 .summary-title { font-size: 13px; }
 #compactStudyTime { display: inline; margin-left: auto; font-size: 12px; color: var(--blue); font-weight: 550; }
 .summary-chevron { display: inline-flex; color: #8591aa; transition: transform .15s; }
 .summary-chevron .studio-icon { width: 15px; height: 15px; }
 .learning-summary[open] .summary-chevron { transform: rotate(180deg); }
 .summary-content { border-top: 1px solid var(--line); padding: 16px 20px; }
 .learning-ring { width: 150px; height: 150px; margin: 12px auto 18px; }
 .learning-week { max-width: 340px; margin-inline: auto; }
}
@media(prefers-reduced-motion: reduce) { .ring-fill, .goal-track > span, .summary-chevron { transition: none; } }
