/* Learning records use the same quiet blue surfaces as the practice workspace. */
#learning-profile-dialog{width:min(920px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d1dfee;border-radius:16px;overflow:hidden;color:var(--ink,#24364c);background:var(--white,#fff);box-shadow:0 22px 80px #243c5b30;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6;box-sizing:border-box}
#learning-profile-dialog[open]{display:flex;flex-direction:column}
#learning-profile-dialog::backdrop{background:#21354b70;backdrop-filter:blur(3px)}
#learning-profile-dialog *{min-width:0;box-sizing:border-box}
#learning-profile-dialog button{font-family:inherit;cursor:pointer;appearance:none;-webkit-tap-highlight-color:transparent}
#learning-profile-dialog button:disabled{opacity:.5;cursor:wait}
#learning-profile-dialog button:focus-visible,#learning-profile-dialog summary:focus-visible{outline:2px solid #3d6596;outline-offset:3px}
#learning-profile-dialog .lp-chevron{display:block;width:16px;height:16px;flex:0 0 16px;align-self:center;color:#8295ac;transition:transform .15s}
#learning-profile-dialog details[open]>summary>.lp-chevron{transform:rotate(180deg)}
.lp-dialog .primary,.lp-dialog .secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:9px;padding:9px 18px;font-size:13px;font-weight:500;line-height:1.5;text-decoration:none;box-shadow:none}
.lp-dialog .primary{background:#307bb7;color:#fff;border:1px solid #307bb7}.lp-dialog .primary:hover{background:#286a9f;border-color:#286a9f}
.lp-dialog .secondary{background:#eff3f9;color:#395373;border:1px solid #bbc8d8}.lp-dialog .secondary:hover{background:#dce6f3;border-color:#a6bbd3}
.lp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:25px 30px 19px;border-bottom:1px solid var(--line,#dce5f1);flex-shrink:0}
.lp-brand{margin:0 0 5px;font-size:12px;color:#6d7d92;letter-spacing:.6px}
.lp-head h2{font-size:24px;font-weight:650;line-height:1.4;margin:0;letter-spacing:.4px}
.lp-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;margin:-3px -7px 0 0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;font:29px/1 sans-serif;color:#6b7d93}
.lp-close:hover{color:#2e5e8d;background:#edf5fc}
.lp-content{padding:22px 30px 26px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;flex:1;overflow-wrap:anywhere}
.lp-intro{margin:0 0 22px;color:#5c6f86;font-size:14px;line-height:1.8}
.lp-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.4fr);gap:0;margin-bottom:7px;border:1px solid #dce6f1;border-radius:9px;background:#f5f9fd;overflow:hidden}
.lp-metric{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 15px}
.lp-metric+.lp-metric{border-left:1px solid #dce6f1}
.lp-metric>span{display:block;color:#61768f;font-size:12px}
.lp-session-metrics>div>span{display:block;color:#526983;font-size:13px}
.lp-metric strong{display:block;margin:0;font-size:21px;line-height:1.3;font-weight:600;color:#2e526f;font-variant-numeric:tabular-nums;white-space:nowrap}
.lp-metric strong small,.lp-session-metrics small{font-size:12px;font-weight:400;color:#687c92;margin-left:6px}
.lp-metric .lp-duration{font-size:14px;white-space:normal;text-align:right;line-height:1.5}
.lp-metric-verified strong{color:#3b7065}.lp-metric-consolidate strong{color:#966e3f}.lp-metric-unverified strong{color:#65738e}
.lp-metrics-note{margin:0 0 17px;font-size:12px;color:#7b8b9e;line-height:1.7}
.lp-advice{position:relative;margin-bottom:15px;padding:20px;border:1px solid #d5d8f0;border-radius:11px;background:linear-gradient(120deg,#f5f2ff 0%,#f0f7ff 100%)}
.lp-advice-heading{padding-right:108px}.lp-advice-heading>p{font-size:11px;line-height:1.7;color:#7d7d9e;margin:5px 0 0}.lp-advice-heading h3{margin:0;font-size:20px;font-weight:650;color:#565c94;line-height:1.5}
.lp-ai-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}.lp-ai-mark{display:block;flex:0 0 20px;color:#7d6cc2}.lp-ai-state{display:inline-flex;align-items:center;min-height:22px;padding:1px 7px;border:1px solid #e0d8f2;border-radius:20px;background:#eee9f9;color:#81709e;font-size:11px;font-weight:500;line-height:1.6;white-space:nowrap}
.lp-advice>h4{font-size:16px;font-weight:600;color:#365a7b;margin:16px 0 5px;line-height:1.7}
.lp-advice-description{font-size:14px;color:#637b94;line-height:1.8;margin:0}
.lp-advice-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.lp-advice-actions>button{max-width:100%}
.lp-model-settings>summary{position:absolute;right:20px;top:20px;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;list-style:none;font-size:12px;color:#747b9c;cursor:pointer;line-height:1.5;padding:4px 8px;border:1px solid #dadff0;border-radius:6px;background:#ffffff80}
.lp-model-settings>summary:hover{background:#fff}.lp-model-settings>summary::-webkit-details-marker{display:none}
.lp-model-placeholder{margin:15px 0;padding:14px;border:1px solid #d9e5ef;border-radius:8px;background:#f0f5fa}
.lp-model-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lp-model-fields label{font-size:12px;color:#72849a;line-height:1.7}
.lp-model-fields input{display:block;width:100%;min-height:33px;margin-top:5px;padding:5px 8px;border:1px solid #d6dfe9;border-radius:5px;background:#eaf0f6;color:#7e8da0;font:inherit;cursor:not-allowed;box-shadow:none}
.lp-model-placeholder>p{margin:10px 0 0;font-size:12px;line-height:1.8;color:#7c8da1}
.lp-advice-evidence{margin-top:15px;padding-top:11px;border-top:1px solid #dce1f0}.lp-advice-evidence>summary,.lp-timing-rules>summary{display:flex;align-items:center;justify-content:space-between;gap:9px;list-style:none;font-size:12px;color:#6b829b;line-height:1.8;cursor:pointer}
.lp-advice-evidence>summary::-webkit-details-marker,.lp-timing-rules>summary::-webkit-details-marker{display:none}
.lp-advice-evidence ul{margin:9px 0 0;padding-left:17px;font-size:12px;line-height:1.9;color:#6c8097}.lp-advice-evidence li+li{margin-top:5px}
.lp-timing-rules{margin:0 0 24px}.lp-timing-rules>p{font-size:12px;color:#7d8da1;line-height:1.9;margin:8px 0 0}
.lp-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.lp-section-head h3,.lp-storage h3{font-size:16px;font-weight:650;margin:0}
.lp-section-head p{font-size:12px;color:#718297;margin:0;text-align:right}
.lp-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.lp-filters button{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:36px;border:1px solid #dce5f0;background:#fff;border-radius:7px;padding:6px 11px;font-size:13px;color:#65788f}
.lp-filters button:hover{background:#eff6fc;color:#315d88}
.lp-filters button[aria-pressed=true]{background:#e5f2ff;border-color:#a8c9e8;color:#2c6194;font-weight:600}
.lp-filters button span{font-size:11px;font-weight:400;color:#708299;font-variant-numeric:tabular-nums}
.lp-record-note{font-size:12px;color:#758498;margin:0 0 16px;line-height:1.8}
.lp-task-list{display:flex;flex-direction:column;gap:11px}
.lp-other-tasks{margin-top:15px;border:1px solid #dce5f0;border-radius:9px;background:#f7faff;overflow:hidden}
.lp-other-tasks>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;padding:13px 16px;font-size:13px;color:#59738f;cursor:pointer}
.lp-other-tasks>summary::-webkit-details-marker{display:none}
.lp-other-tasks>.lp-task-list{padding:0 12px 12px}
.lp-task{border:1px solid #dce5f0;border-radius:10px;padding:17px 18px 0;background:#fff;overflow:hidden}
.lp-task-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.lp-task-heading{display:flex;flex-wrap:wrap;gap:7px 9px;align-items:center}
.lp-task h4{font-size:15px;font-weight:600;margin:0;line-height:1.65}
.lp-status{display:inline-block;flex-shrink:0;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:500;line-height:1.6;white-space:nowrap}
.lp-status-verified{background:#eaf5ef;color:#437262}.lp-status-consolidate{background:#fbf0df;color:#9a733e}.lp-status-unverified{background:#eef1f7;color:#6d7c91}
.lp-lock{font-size:11px;color:#7c8798;white-space:nowrap}
.lp-task-open{flex-shrink:0;font-size:12px;font-weight:400;line-height:1.6;color:#326b9f;padding:3px 0 6px;border:0;border-radius:0;background:transparent;box-shadow:none;white-space:nowrap}
.lp-task-open:hover,.lp-view-profile:hover{color:#204f7c;text-decoration:underline;text-underline-offset:3px}
.lp-task-meta{display:flex;flex-wrap:wrap;gap:5px 22px;color:#78879b;margin:10px 0 12px;font-size:12px;line-height:1.8}
.lp-task-meta strong{font-weight:450;color:#536a85;margin-left:5px}
.lp-partial-inline{font-size:11px;color:#8b7a62;margin-left:7px}
.lp-record{border-top:1px solid #e7edf5}
.lp-record>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;cursor:pointer;list-style:none;color:#617994;font-size:12px}
.lp-record>summary::-webkit-details-marker{display:none}
.lp-record-body{border-top:1px solid #edf1f6;padding:13px 0 16px;font-size:13px;line-height:1.9;color:#5d7189}
.lp-status-explanation{margin:0 0 11px}
.lp-direct-evidence{margin:0 0 12px;padding:9px 12px;background:#f0f6fc;border-left:2px solid #a9c6e3;color:#4f6d8d;white-space:pre-wrap}
.lp-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 12px;font-size:12px}
.lp-dates dt{color:#8390a2;margin-bottom:2px}.lp-dates dd{margin:0;color:#5a708a}
.lp-assistance{font-size:12px;color:#7a899a;margin:11px 0}
.lp-history-note{font-size:12px;color:#8b7a62;margin:10px 0}
.lp-evidence{background:#f8fafc;border:1px solid #e5ebf2;border-radius:7px;padding:12px 14px;margin-top:13px}
.lp-evidence h5{margin:0;font-size:13px;font-weight:600;color:#4d6580}
.lp-evidence>p{font-size:12px;color:#7b8899;margin:3px 0 10px}
.lp-evidence dl{margin:0}.lp-evidence dl>div+div{border-top:1px solid #e5ebf2;margin-top:10px;padding-top:10px}
.lp-evidence dt{font-size:13px;font-weight:550;color:#6f624e}.lp-evidence dd{font-size:12px;margin:3px 0 0;color:#63778e;white-space:pre-wrap}
.lp-no-evidence{font-size:12px;color:#8591a1;margin:10px 0 0}
.lp-task-locked{background:#fbfcfe}.lp-task-locked h4{color:#6d7e91}
.lp-empty{text-align:center;padding:28px 14px;background:#f7faff;border:1px dashed #d6e3f0;border-radius:10px}
.lp-empty h3,.lp-empty h4{font-size:15px;font-weight:550;color:#59738d;margin:0 0 6px}.lp-empty p{font-size:13px;color:#788ca1;margin:0;line-height:1.8}
.lp-assessments{margin:0 0 28px}.lp-assessments ul{list-style:none;padding:0;margin:0;border:1px solid #dce5f0;border-radius:10px;overflow:hidden}
.lp-assessments li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:14px 17px;background:#fbfcff}
.lp-assessments li+li{border-top:1px solid #e4ebf4}.lp-assessments strong{display:block;font-size:13px;font-weight:550}.lp-assessments time{display:block;font-size:12px;color:#8290a2;margin-top:3px}.lp-assessments li>span{font-size:13px;color:#526e8d;flex-shrink:0}
.lp-assessment-heading{flex:1}
.lp-assessment-details{flex:1 1 100%;border-top:1px solid #e7edf5}
.lp-assessment-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;padding:8px 0 0;font-size:12px;line-height:1.8;color:#647e9a;cursor:pointer}
.lp-assessment-details>summary::-webkit-details-marker{display:none}
.lp-concept-list{margin:11px 0 0;padding:0 12px;border:1px solid #e1e9f2;border-radius:7px;background:#fff}
.lp-concept-list>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center;gap:9px 18px;padding:10px 0}.lp-concept-list>div+div{border-top:1px solid #eaf0f6}
.lp-concept-list dt{font-size:13px;color:#536b85}.lp-concept-list dd{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 11px;margin:0;font-size:12px;color:#6a7e96}
.lp-concept-state{font-size:11px;line-height:1.7;padding:2px 6px;border-radius:4px}.lp-concept-scored{color:#4d7b6c;background:#edf6f1}.lp-concept-unscored{color:#937344;background:#fbf3e8}
.lp-concept-note{font-size:12px;line-height:1.8;margin:10px 0 0;color:#7c8b9f}
.lp-storage{display:flex;gap:22px;align-items:center;justify-content:space-between;margin-top:28px;padding:19px 20px;border:1px solid #dbe6f1;background:#f3f8fd;border-radius:10px}
.lp-storage h3{font-size:14px}.lp-storage p{font-size:12px;line-height:1.8;color:#728398;margin:5px 0 0}
.lp-export{flex-shrink:0;text-align:center;align-self:center}.lp-export .secondary{font-size:12px;padding:9px 12px;background:#fff;white-space:normal}
.lp-export-status{display:block;max-width:150px;font-size:11px;color:#698099;line-height:1.6;margin-top:5px}.lp-export-status:empty{display:none}
.lp-storage-unavailable{border-color:#e9d8bd;background:#fcf8f0}.lp-storage-unavailable h3{color:#896740}
.lp-interpretation{font-size:12px;line-height:1.9;color:#7f8c9e;margin:16px 0 0}
.lp-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:11px;padding:16px 30px;border-top:1px solid var(--line,#dce5f1);background:#fcfdff;flex-shrink:0}
.lp-actions button{min-height:40px;font-size:13px;padding:9px 18px}
.lp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#learning-profile-dialog.lp-session-dialog{width:min(620px,calc(100vw - 32px))}
.lp-session-metrics{display:grid;grid-template-columns:1.3fr 1fr 1fr;border:1px solid #dce6f1;border-radius:10px;overflow:hidden;margin:25px 0 18px;background:#f5f9fd}
.lp-session-metrics>div{padding:19px 17px}.lp-session-metrics>div+div{border-left:1px solid #dce6f1}
.lp-session-metrics strong{display:block;font-size:23px;color:#365f85;line-height:1.5;margin-top:7px;font-weight:600;font-variant-numeric:tabular-nums}
.lp-session-note{font-size:12px;color:#78899d;line-height:1.9;margin:0 0 16px}
.lp-return-details{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px;margin:20px 0;padding:15px 0;border-top:1px solid #e4ebf3;border-bottom:1px solid #e4ebf3}
.lp-return-details dt{font-size:12px;color:#7b8da3;margin-bottom:5px}.lp-return-details dd{font-size:14px;color:#476480;margin:0;line-height:1.8}.lp-return-details dd small{display:block;font-size:11px;color:#8591a3;margin-top:3px}
.lp-view-profile{font-size:13px;font-weight:400;line-height:1.6;color:#386fa3;padding:3px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
@media(max-width:680px){
 .lp-head{padding:21px 22px 17px}.lp-content{padding:20px 22px 23px}.lp-actions{padding:15px 22px}
 .lp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.lp-metric{padding:10px 13px}.lp-metric:nth-child(odd){border-left:0}.lp-metric:nth-child(n+3){border-top:1px solid #dce6f1}
 .lp-advice{padding:18px}.lp-model-settings>summary{right:18px;top:18px}.lp-model-fields{grid-template-columns:1fr}.lp-model-placeholder{padding:12px}
 .lp-section-head{flex-wrap:wrap;gap:4px}.lp-section-head p{text-align:left}.lp-task{padding:15px 14px 0}.lp-task-top{gap:9px}.lp-task-open{font-size:12px}.lp-task-meta{gap:4px 13px}
 .lp-storage{gap:14px;flex-direction:column;align-items:flex-start;padding:17px}.lp-export{align-self:flex-start;text-align:left}.lp-export-status{max-width:none}
 .lp-session-metrics>div{padding:16px 12px}.lp-session-metrics strong{font-size:21px}
}
@media(max-width:420px){
 #learning-profile-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:12px}
 .lp-head{padding:18px 16px 15px}.lp-head h2{font-size:22px}.lp-content{padding:18px 16px 21px}.lp-actions{padding:13px 16px}
 .lp-intro{font-size:13px;margin-bottom:17px}.lp-metric{padding:10px}.lp-metric strong{font-size:20px}.lp-metric .lp-duration{font-size:13px}
 .lp-advice{padding:16px}.lp-advice-heading{padding-right:92px}.lp-advice-heading h3{font-size:17px}.lp-ai-title-row{gap:5px 6px}.lp-ai-state{font-size:10px;min-height:20px;padding:1px 6px}.lp-model-settings>summary{right:16px;top:16px;font-size:11px;gap:4px;padding:4px 6px}.lp-advice-description{font-size:13px}.lp-advice>h4{font-size:15px}.lp-advice-actions>button{flex:1 1 auto;padding:9px 12px}
 .lp-filters{gap:5px}.lp-filters button{font-size:12px;gap:5px;padding:6px 8px}.lp-filters button span{font-size:10px}
 .lp-task-top{flex-direction:column;gap:6px}.lp-task-open{align-self:flex-start;padding:0}.lp-task-meta{margin-top:8px}.lp-dates{grid-template-columns:1fr;gap:8px}
 .lp-assessments li{align-items:flex-start;gap:8px;padding:13px 14px;flex-wrap:wrap}.lp-assessments li>span{font-size:12px}
 .lp-concept-list>div{grid-template-columns:1fr;gap:5px}.lp-concept-list dd{justify-content:flex-start;gap:5px 9px}
 .lp-session-metrics{grid-template-columns:1fr}.lp-session-metrics>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px}.lp-session-metrics>div+div{border-left:0;border-top:1px solid #dce6f1}.lp-session-metrics strong{margin:0;font-size:21px}
 .lp-return-details{grid-template-columns:1fr;gap:13px}
 .lp-actions button{flex:1}.lp-evidence{padding:11px}
}
@media(prefers-reduced-motion:reduce){#learning-profile-dialog .lp-chevron{transition:none}}
