.learning-page>main{min-height:100vh;padding:7.5rem 0 3rem}.learning-board{--learning-chart: var(--chart-1);--learning-chart-empty: color-mix( in srgb, var(--foreground) 9%, var(--paper-warm) );width:min(calc(100% - var(--page-gutter) * 2),74rem);margin-inline:auto;color:var(--foreground);font-family:inherit}.learning-board *,.learning-board *:before,.learning-board *:after{box-sizing:border-box}.learning-board__header{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-bottom:2rem}.learning-board__heading h1{margin:0;font-size:clamp(1.8rem,3vw,2.45rem);font-weight:620;letter-spacing:-.055em;line-height:1.25}.learning-board__heading-dot{color:var(--learning-chart);margin-left:.2rem}.learning-board__heading p{margin:.6rem 0 0;color:var(--muted-foreground);font-size:.78rem}.learning-board__actions{display:flex;align-items:center;gap:.5rem}.learning-board__actions [data-slot=button]{border-radius:999px}.learning-widget{height:100%;min-width:0;gap:0;padding:1.65rem 1.8rem 1.35rem;overflow:hidden;border:1px solid color-mix(in srgb,var(--foreground) 12%,transparent);border-radius:var(--widget-radius);background:var(--paper-warm);box-shadow:none}.learning-widget [data-slot=card-header]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0}.learning-widget [data-slot=card-title] h2{margin:0;color:var(--muted-foreground);font-size:.76rem;font-weight:500;letter-spacing:.12em}.learning-widget [data-slot=card-action]{display:flex;align-items:center;flex-shrink:0;color:var(--muted-foreground);font-size:.71rem;line-height:1.3}.learning-widget [data-slot=card-action] svg{width:1rem;height:1rem}.learning-widget [data-slot=card-action]{gap:.5rem}.learning-widget__grip{display:inline-flex;cursor:grab;opacity:.28;transition:opacity .16s ease}.learning-widget:hover .learning-widget__grip,[data-slot=widget]:focus-visible .learning-widget__grip{opacity:.8}.learning-widget [data-slot=card-content]{display:flex;flex-direction:column;flex:1;min-height:0;gap:0;padding:0}.learning-widget [data-slot=card-footer]{display:flex;justify-content:space-between;gap:.6rem;padding:0;margin-top:1rem;color:var(--muted-foreground);font-size:.66rem}.learning-widget [data-slot=card-footer]>span{display:inline-flex;align-items:center;gap:.35rem}.learning-widget [data-slot=card-footer] svg{width:.9rem;height:.9rem}.learning-widget__metric{display:flex;align-items:baseline;gap:.7rem;margin-top:.95rem}.learning-widget__metric strong{color:var(--foreground);font-family:inherit;font-size:clamp(2.3rem,4vw,2.9rem);font-weight:500;line-height:1.1;letter-spacing:-.055em;font-variant-numeric:tabular-nums}.learning-widget__metric>span{color:var(--muted-foreground);font-size:.75rem}.learning-widget__metric>button{margin-left:auto}.learning-widget__caption{margin:.8rem 0 0;color:var(--muted-foreground);font-size:.73rem}.learning-widget__text-action{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;flex-shrink:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:.67rem;cursor:pointer;text-decoration:none}.learning-widget__text-action svg{width:.9rem;height:.9rem}.learning-widget__text-action:hover{color:var(--learning-chart)}.learning-widget__text-action:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:3px}.learning-heatmap{margin-top:auto;padding-top:.65rem}.learning-heatmap__months{display:grid;grid-template-columns:repeat(26,minmax(0,1fr));gap:4px;margin-bottom:.4rem;color:var(--muted-foreground);font-size:.59rem;line-height:1}.learning-heatmap__months span{white-space:nowrap}.learning-heatmap__days{display:grid;grid-auto-flow:column;grid-template-columns:repeat(26,minmax(0,1fr));grid-template-rows:repeat(7,11px);gap:4px}.learning-heatmap__days button,.learning-heatmap__legend i{display:block;min-width:0;border:0;padding:0;border-radius:3px;background:var(--learning-chart-empty)}.learning-heatmap__days button{cursor:pointer;transition:filter .12s ease}.learning-heatmap [data-level="1"],.learning-heatmap__legend [data-level="1"]{background:color-mix(in srgb,var(--learning-chart) 25%,var(--paper-warm))}.learning-heatmap [data-level="2"],.learning-heatmap__legend [data-level="2"]{background:color-mix(in srgb,var(--learning-chart) 45%,var(--paper-warm))}.learning-heatmap [data-level="3"],.learning-heatmap__legend [data-level="3"]{background:color-mix(in srgb,var(--learning-chart) 70%,var(--paper-warm))}.learning-heatmap [data-level="4"],.learning-heatmap__legend [data-level="4"]{background:var(--learning-chart)}.learning-heatmap [data-future]{opacity:.25;cursor:default}.learning-heatmap [data-today]{outline:1px solid var(--learning-chart);outline-offset:1px}.learning-heatmap button:not(:disabled):hover{filter:brightness(.87)}.learning-heatmap button:focus-visible{outline:2px solid var(--foreground);outline-offset:2px}.learning-heatmap__legend{gap:3px!important}.learning-heatmap__legend i{width:9px;height:9px}.learning-heatmap__legend i:first-of-type{margin-left:5px}.learning-heatmap__legend i:last-of-type{margin-right:5px}.learning-goal{display:flex;align-items:stretch;gap:4px;height:32px;margin-top:auto}.learning-goal>span{flex:1;border-radius:2px;background:var(--learning-chart-empty)}.learning-goal>span.is-filled{background:var(--learning-chart)}.learning-goal__labels{display:flex;justify-content:space-between;margin-top:.55rem;color:var(--muted-foreground);font-size:.62rem;font-variant-numeric:tabular-nums}.learning-widget__status svg{color:var(--learning-chart)}.learning-rhythm{width:100%;height:135px;min-height:100px;margin-top:auto;aspect-ratio:auto}.learning-widget__trend.is-positive{color:var(--status-positive-fg)}.learning-track-list{display:flex;flex-direction:column;justify-content:space-evenly;gap:2px;flex:1;margin-top:.7rem}.learning-track-list>button{display:grid;grid-template-columns:1.8rem minmax(0,1fr) minmax(2.5rem,7rem) 4.4rem 1rem;align-items:center;width:100%;gap:.7rem;min-height:36px;padding:.35rem .3rem;border:0;border-radius:8px;background:transparent;color:var(--foreground);text-align:left;cursor:pointer}.learning-track-list>button:hover,.learning-track-list>button:focus-visible{background:color-mix(in srgb,var(--learning-chart) 5%,var(--paper-warm))}.learning-track-list>button:focus-visible{outline:2px solid var(--ring);outline-offset:1px}.learning-track-list__number{color:var(--muted-foreground);font-family:var(--font-mono),monospace;font-size:.67rem}.learning-track-list__title{font-size:.83rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.learning-track-list__bar{height:5px;overflow:hidden;border-radius:3px;background:var(--learning-chart-empty)}.learning-track-list__bar>span{display:block;height:100%;border-radius:inherit;background:var(--learning-chart)}.learning-track-list__count{font-family:var(--font-mono),monospace;font-size:.75rem;text-align:right}.learning-track-list__count small{color:var(--muted-foreground);font:inherit;font-size:.68rem}.learning-track-list>button>svg{width:.9rem;height:.9rem;color:var(--muted-foreground)}.learning-note-list{display:flex;flex:1;flex-direction:column;justify-content:flex-end;gap:.1rem;margin-top:.75rem}.learning-note-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:1rem;min-height:33px;color:var(--foreground);text-decoration:none}.learning-note-list>a>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.79rem}.learning-note-list>a>time{color:var(--muted-foreground);font-family:var(--font-mono),monospace;font-size:.64rem}.learning-note-list>a>svg{width:.9rem;height:.9rem;color:var(--muted-foreground)}.learning-note-list>a:hover{color:var(--learning-chart)}.learning-milestone{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:.7rem;padding-top:.4rem;text-align:center}.learning-milestone__ring{display:grid;place-items:center;position:relative;width:112px;height:112px}.learning-milestone__ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.learning-milestone__ring circle{fill:none;stroke:var(--learning-chart-empty);stroke-width:5}.learning-milestone__ring circle+circle{stroke:var(--learning-chart);stroke-linecap:round}.learning-milestone__ring strong{font-family:inherit;font-size:1.85rem;font-weight:500;letter-spacing:-.055em}.learning-milestone__ring small{margin-left:3px;font-size:.75rem;color:var(--muted-foreground)}.learning-milestone h3{margin:0;font-size:.83rem;font-weight:500}.learning-milestone p{margin:.28rem 0 0;color:var(--muted-foreground);font-size:.67rem}.learning-board__footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.3rem;padding-inline:.3rem;color:var(--muted-foreground);font-size:.64rem}.learning-board__admin{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:.75rem .85rem;border-radius:.9rem;background:var(--secondary)}.learning-board__admin>div,.learning-board__admin-actions,.learning-board__admin-actions label{display:flex;align-items:center;gap:.6rem}.learning-board__admin>div>svg{width:1rem;height:1rem;color:var(--primary)}.learning-board__admin span,.learning-board__admin-actions label{color:var(--content-secondary);font-size:.75rem}.learning-board__admin-actions input{width:3.25rem;height:2rem;border:1px solid var(--input);border-radius:.5rem;background:var(--background);text-align:center}.learning-message{margin:0 0 1rem;padding:.75rem .85rem;border-radius:.8rem;color:var(--status-negative-fg);background:var(--status-negative-bg);font-size:.78rem}.learning-progressbar{display:block;width:100%;height:.24rem;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--primary) 12%,var(--background))}.learning-progressbar>span{display:block;height:100%;border-radius:inherit;background:var(--primary);transition:width .24s ease}.learning-detail-dialog,.learning-history-dialog{--background: #fff;--foreground: #2b333e;--primary: #6c63ff;--primary-foreground: #fff;--secondary: #f0eeff;--secondary-foreground: #5548e6;--muted: #f1efff;--muted-foreground: #716f80;--content-secondary: #59566a;--border: #e5e2f0;--input: #e5e2f0;--ring: #6c63ff;display:flex;flex-direction:column;width:min(calc(100vw - 2rem),68rem);max-width:68rem;height:min(86vh,48rem);gap:1rem;overflow:hidden;padding:1.5rem;border-color:var(--border);border-radius:1.5rem;color:var(--foreground);background:var(--background);font-family:Geist,Helvetica Neue,PingFang SC,Microsoft YaHei,system-ui,sans-serif}.learning-history-dialog{display:flex;flex-direction:column;height:auto;max-height:80dvh;width:min(calc(100vw - 2rem),40rem)}.learning-history-dialog__list{overflow-y:auto;margin-top:.5rem}.learning-history-dialog__list>button{display:flex;align-items:center;width:100%;gap:.9rem;padding:.8rem .5rem;border:0;border-radius:.6rem;background:transparent;color:var(--foreground);text-align:left;cursor:pointer}.learning-history-dialog__list>button:hover{background:var(--secondary)}.learning-history-dialog__list>button>span{display:grid;flex:1;gap:.3rem}.learning-history-dialog__list strong{font-size:.83rem;font-weight:500}.learning-history-dialog__list small,.learning-history-dialog__list time{color:var(--muted-foreground);font-size:.7rem}.learning-history-dialog__list svg{flex-shrink:0;width:1rem;height:1rem;color:var(--primary)}.learning-history-dialog__empty{display:grid;justify-items:center;gap:.7rem;padding:3rem 1rem;text-align:center}.learning-history-dialog__empty>svg{width:2rem;height:2rem;opacity:.65}.learning-history-dialog__empty>p{margin:0;font-size:.95rem}.learning-history-dialog__empty>span{color:var(--muted-foreground);font-size:.75rem}.learning-detail-dialog__summary span,.learning-detail-dialog__summary small,.learning-detail-dialog__note>span{color:var(--muted-foreground);font-size:.7rem}.learning-detail-dialog [data-slot=dialog-title]{font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.04em}.learning-detail-dialog [data-slot=dialog-description]{font-size:.75rem}.learning-detail-dialog__summary{display:grid;grid-template-columns:.75fr 1.25fr auto;align-items:end;gap:1rem}.learning-detail-dialog__summary>div{display:grid;min-width:0;gap:.3rem}.learning-detail-dialog__summary strong{overflow:hidden;font-size:1rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.learning-detail-dialog__summary>div:first-child strong{font-family:var(--font-mono);font-size:2rem;font-weight:500;letter-spacing:-.05em}.learning-detail-dialog__summary small{font-size:.6rem;letter-spacing:.06em}.learning-detail-dialog__note{display:grid;grid-template-columns:5rem minmax(0,1fr);align-items:start;gap:.8rem;padding:.75rem;border-radius:.75rem;background:color-mix(in srgb,var(--primary) 6%,var(--background))}.learning-detail-dialog__note>span{padding-top:.2rem}.learning-detail-dialog__note p{margin:0;color:var(--content-secondary);font-size:.78rem;line-height:1.7;white-space:pre-line}.learning-detail-dialog__note textarea{width:100%;resize:vertical;border:0;outline:0;color:var(--foreground);background:transparent;font:inherit;font-size:.78rem;line-height:1.6}.learning-detail-dialog__scroll{min-height:0;overflow-y:auto;padding:.15rem .4rem .2rem 0;scrollbar-color:var(--border) transparent;scrollbar-width:thin}.learning-detail-dialog>:not(.learning-detail-dialog__tabs){flex-shrink:0}.learning-detail-dialog__tabs{min-height:0;flex:1;gap:.85rem}.learning-detail-dialog__tabs>[data-slot=tabs-list]{flex-shrink:0;max-width:100%}.learning-detail-dialog__units{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.85rem}.learning-detail-unit{min-width:0;padding:1rem;border:1px solid var(--border);border-radius:1rem}.learning-detail-unit>header{display:grid;gap:.75rem;margin-bottom:.8rem}.learning-detail-unit>header>div{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem}.learning-detail-unit h3{margin:0;flex:1;font-size:.86rem;font-weight:600}.learning-detail-unit--course{grid-column:1 / -1}.learning-detail-unit--course ul{grid-template-columns:1fr}.learning-detail-unit--course .learning-detail-task{min-height:2.8rem;padding-block:.6rem}.learning-detail-unit--course .learning-detail-task__label{white-space:normal;overflow-wrap:anywhere;font-size:.82rem;line-height:1.6}.learning-detail-unit__source{display:inline-flex;align-items:center;gap:.25rem;justify-self:start;color:var(--primary);font-size:.75rem}.learning-detail-unit__source svg{width:.85rem;height:.85rem}.learning-detail-unit>header span{color:var(--muted-foreground);font-family:var(--font-mono);font-size:.65rem}.learning-detail-unit ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin:0;padding:0;list-style:none}.learning-detail-task{display:flex;min-width:0;min-height:2.25rem;align-items:center;gap:.42rem;padding:.35rem .4rem;border-radius:.55rem;background:color-mix(in srgb,var(--muted) 52%,var(--background))}.learning-detail-task.is-current{background:var(--secondary)}.learning-detail-task.is-complete{color:var(--muted-foreground)}.learning-detail-task__label{min-width:0;flex:1;overflow:hidden;font-size:.72rem;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.learning-detail-task.is-complete .learning-detail-task__label{text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted-foreground) 45%,transparent)}.learning-detail-task__state,.learning-detail-task__check>span:not(.sr-only){display:grid;width:1rem;height:1rem;flex:0 0 1rem;place-items:center;border:1px solid color-mix(in srgb,var(--primary) 30%,var(--border));border-radius:50%;color:var(--primary)}.learning-detail-task__state svg,.learning-detail-task__check svg{width:.65rem;height:.65rem}.learning-detail-task__check{display:grid;cursor:pointer}.learning-detail-task__check input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.learning-detail-task__check input:focus-visible+span{outline:2px solid var(--ring);outline-offset:2px}.learning-detail-task [data-slot=button]{height:1.7rem;padding-inline:.35rem;font-size:.62rem}@media(max-width:760px){.learning-page>main{padding:5.7rem 0 2.5rem}.learning-board{width:min(100% - 1.5rem,74rem)}.learning-board__header{align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.learning-board__heading h1{font-size:1.85rem}.learning-board__heading p{font-size:.7rem}.learning-board__actions{flex-direction:column;align-items:flex-end;gap:.2rem}.learning-board__actions [data-slot=button]{font-size:.68rem;height:1.9rem}.learning-widget{padding:1.45rem 1.35rem 1.2rem}.learning-heatmap__days{gap:3px;grid-template-rows:repeat(7,12px)}.learning-heatmap__months{gap:3px;font-size:.55rem}.learning-track-list>button{grid-template-columns:1.3rem minmax(0,1fr) 3.8rem .8rem;gap:.45rem}.learning-track-list__title{font-size:.78rem}.learning-track-list__bar{display:none}.learning-note-list>a{gap:.55rem}.learning-note-list>a>span{font-size:.76rem}.learning-board__footer{flex-direction:column;align-items:flex-start;gap:.4rem}.learning-board__admin,.learning-board__admin-actions{align-items:stretch;flex-direction:column}.learning-board__admin-actions label{justify-content:space-between}.learning-detail-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;padding:1rem;border:0;border-radius:0}.learning-detail-dialog__summary{grid-template-columns:.75fr 1.25fr}.learning-detail-dialog__summary>[data-slot=button]{display:none}.learning-detail-dialog__units,.learning-detail-unit ul{grid-template-columns:1fr}.learning-detail-dialog__note{grid-template-columns:1fr;gap:.35rem}}@media(prefers-reduced-motion:reduce){.learning-heatmap__days button,.learning-progressbar>span{transition:none}}
