/* Native disclosures keep learning previews in the portal's mobile reading flow. */
.learning-collection{min-width:0;display:grid;gap:24px;color:var(--ink)}
.learning-group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px}
.learning-group-heading h3,.learning-group-heading h4{font-family:"Nunito",sans-serif;font-size:16px;font-weight:800;margin:0;overflow-wrap:anywhere}
.learning-group-heading>span{color:var(--muted);font-size:12px;white-space:nowrap}
.learning-day-list{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.learning-item.record-item{display:block;padding:0;border:0;margin:0;min-width:0}
.learning-item.record-item+.learning-item{border-top:1px solid var(--line)}
.learning-collection summary{display:block;list-style:none;cursor:pointer;min-height:44px;padding:14px;overflow-wrap:anywhere}
.learning-collection summary::-webkit-details-marker{display:none}
.learning-collection summary:focus-visible{outline:3px solid var(--action);outline-offset:-3px;border-radius:12px}
.learning-collection summary:hover{background:#fffdf2}
.learning-lesson-top,.learning-report-bottom{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;margin-bottom:8px;color:var(--muted);font-variant-numeric:tabular-nums}
.learning-lesson-top>time{font-weight:800;color:var(--action)}
.learning-view{display:inline-flex;align-items:center;gap:4px;color:var(--action);font-size:12px;font-weight:800;margin-left:auto;flex-shrink:0}
.learning-view .fi{font-size:14px}.learning-open{display:none}
.learning-lesson[open]>summary .learning-open,.learning-week-report[open]>summary .learning-open{display:inline}
.learning-lesson[open]>summary .learning-closed,.learning-week-report[open]>summary .learning-closed{display:none}
.learning-lesson[open]>summary .fi,.learning-week-report[open]>summary .fi{transform:rotate(180deg)}
.learning-topic{display:block;font-family:"Nunito",sans-serif;font-size:16px;font-weight:800;line-height:1.45;margin:0 0 4px}
.learning-subject,.learning-teacher,.learning-subjects{display:block;font-size:12px;color:var(--muted);line-height:1.6}
.learning-teacher{margin-top:4px}
.learning-lesson-body{padding:0 14px 14px}
.learning-lesson-body>section{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.learning-lesson-body h4,.learning-lesson-body h5,.learning-week-comment h4{font-family:"Nunito",sans-serif;font-size:14px;font-weight:800;line-height:1.5;margin:0 0 6px}
.learning-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:0;max-width:72ch}
.learning-item .item-actions{padding:0 14px 14px;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.learning-item .item-actions button{min-width:44px;min-height:44px;margin:0}
.learning-week-title{font-family:"Nunito",sans-serif;font-size:16px;line-height:1.5;font-weight:800;margin:0 0 12px;overflow-wrap:anywhere}
.learning-week-title>span{display:block;font-family:"DM Sans",sans-serif;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
.learning-week-report{border:1px solid var(--line);border-radius:16px;background:var(--paper);overflow:hidden;margin-top:12px}
.learning-report-teacher{display:block;font-family:"Nunito",sans-serif;font-size:16px;line-height:1.5;font-weight:800;margin:0 0 4px}
.learning-subjects{margin-bottom:12px}
.learning-report-bottom{margin-bottom:0}
.learning-report-body{padding:0 14px 16px;border-top:1px solid var(--line)}
.learning-report-body>.learning-day{margin-top:20px}
.learning-report-body .learning-day-list{border:0;border-radius:0;background:transparent}
.learning-report-body .learning-lesson>summary{padding:12px 0}
.learning-report-body .learning-lesson-body{padding:0 0 12px}
.learning-report-body .learning-group-heading{margin-bottom:0}
.learning-week-comment{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.learning-comment{display:grid;gap:12px;min-width:0}
.learning-comment textarea{width:100%;min-width:0;min-height:100px;padding:10px 12px;background:var(--paper);color:var(--ink);border:1px solid #d9e2c7;border-radius:10px;font-size:16px;line-height:1.6;resize:vertical}
.learning-comment textarea:focus-visible{outline:3px solid var(--action);outline-offset:2px}
.learning-comment .btn-sky{justify-self:start;min-width:88px}
.learning-empty{font-size:14px;color:var(--muted);margin:16px 0 0}
@media(max-width:360px){.learning-lesson-top,.learning-report-bottom{flex-wrap:wrap}.learning-report-bottom .learning-view{flex-shrink:1}.learning-view{font-size:12px}.learning-collection summary{padding:12px}.learning-report-body{padding-left:12px;padding-right:12px}}
