#topicsModal{position:fixed;inset:0;z-index:1100;background:rgba(13,24,39,.65);display:flex;align-items:center;justify-content:center;padding:20px;color:#24384a}
#topicsModal.hidden{display:none}
.tp-shell{width:min(920px,100%);max-height:92vh;overflow:auto;background:#f7f8f4;border-radius:20px;box-shadow:0 24px 90px #0b182950;padding:26px;position:relative}
.tp-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dde5de;padding-bottom:16px}
.tp-heading strong{font-size:18px}.tp-heading button{border:0;background:none;color:#466075;font-size:28px;cursor:pointer}
#topicsError:empty{display:none}#topicsError{color:#9d342e;background:#fff1ec;border-radius:10px;padding:12px;margin-top:12px}
.tp-lead{padding:24px 0 12px}.tp-eyebrow{font-size:12px;letter-spacing:1px;color:#486c60;font-weight:bold}.tp-lead h2{font-size:28px;line-height:1.3;margin:10px 0}.tp-lead p{color:#65746d;line-height:1.7;margin:8px 0}
#topicsModal button{font:inherit;cursor:pointer}#topicsModal[aria-busy=true] .tp-primary{opacity:.6;pointer-events:none}
.tp-primary,.tp-secondary{padding:11px 17px;border-radius:10px;border:1px solid #266452;display:inline-block;margin:6px 7px 4px 0;font-weight:bold}.tp-primary{background:#266452;color:white}.tp-secondary{background:white;color:#266452}
.tp-link{background:none;border:0;color:#396956;padding:9px 0;margin-right:20px;text-decoration:underline;text-underline-offset:3px}
.tp-toolbar{display:flex;gap:20px;align-items:flex-end;margin:16px 0 20px;flex-wrap:wrap}.tp-search{flex:1;min-width:180px;font-size:12px;color:#52675e}.tp-search input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:12px 14px;border:1px solid #ccd8d0;background:white;border-radius:10px;font:inherit;font-size:15px;color:#263c31}.tp-filters{display:flex;gap:7px;padding-bottom:2px}.tp-filters button{border:1px solid #ccd8d0;border-radius:18px;padding:8px 14px;background:white;color:#53695d}.tp-filters button.selected{background:#e0ebe2;border-color:#266452;color:#214f40}
.tp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tp-card{background:white;border:1px solid #dfe6dd;border-radius:14px;padding:20px;display:flex;flex-direction:column;align-items:flex-start}.tp-subject{font-size:12px;color:#7b806f}.tp-card h3{font-size:19px;line-height:1.45;margin:10px 0}.tp-card p{font-size:14px;line-height:1.7;color:#69756c;margin:0 0 14px}.tp-prereq{font-size:13px;color:#50695c;background:#f0f4ed;padding:9px 11px;border-radius:7px;margin-bottom:12px}.tp-card .tp-primary{margin-top:auto}
.tp-route{list-style:none;padding:0;margin:20px 0}.tp-route li{display:flex;gap:13px;border-left:2px solid #d5dfd3;margin-left:12px;padding:8px 14px 18px 0}.tp-dot{margin-left:-13px;width:24px;height:24px;flex:0 0 24px;text-align:center;line-height:24px;background:#edf1e9;border:1px solid #becfc0;border-radius:50%;box-sizing:border-box;color:#6f8271}.tp-route small{display:block;color:#7b867c;margin-top:5px}.tp-route .current .tp-dot{background:#266452;color:#fff}.tp-route .current strong{color:#1f5e49}.tp-route .complete .tp-dot{background:#dcecdf;color:#247049}
.tp-next{padding:22px;background:#eaf1e7;border:1px solid #cbdcc7;border-radius:15px}.tp-next h3{font-size:21px;margin:10px 0}.tp-next p{line-height:1.7}.tp-chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tp-chips span{background:#fff7e7;border:1px solid #dfcda6;border-radius:7px;padding:7px 9px;font-size:13px}.tp-chips .ok{background:#e0eddf;border-color:#b9d1b7;color:#335e37}
.tp-lessons{margin-top:24px}.tp-lessons details,.tp-feedback{background:white;padding:15px 18px;border:1px solid #dfe6dd;border-radius:10px;margin:10px 0}.tp-lessons summary,.tp-feedback summary{cursor:pointer;font-weight:bold}.tp-lessons p,.tp-feedback p{line-height:1.85;font-size:15px}.tp-support{color:#805c29}.tp-footnote,.tp-muted{font-size:13px;color:#758177;line-height:1.7}.tp-footnote{margin-top:22px}
.tp-question{margin:18px 0;padding:18px;border:1px solid #d3dfd1;border-radius:12px;background:white;min-width:0}.tp-question legend{font-size:17px;font-weight:bold;padding:0 7px;line-height:1.6}.tp-question .tp-muted{margin:0 0 12px}.tp-option{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f4f6f1;border-radius:8px;margin:7px 0;line-height:1.5;cursor:pointer}.tp-option input{accent-color:#266452}.tp-number{display:block;font-size:13px;color:#64705f}.tp-number input{display:block;margin-top:8px;padding:11px;border:1px solid #bbcdbb;border-radius:8px;font-size:17px;width:min(280px,90%);color:#253b2d;background:white}
.topic-entry{margin:12px 0;padding:14px 16px;border:1px solid #b5cabc;border-radius:12px;background:#edf4ed;color:#285b45;display:flex;justify-content:space-between;align-items:center;gap:12px}.topic-entry p{font-size:13px;margin:5px 0 0;color:#66816d}.topic-entry button{background:#266452;color:#fff;border:0;border-radius:8px;padding:10px 13px;cursor:pointer;white-space:nowrap}
@media(max-width:600px){#topicsModal{padding:8px}.tp-shell{padding:18px 14px;border-radius:14px;max-height:94vh}.tp-lead h2{font-size:24px}.tp-grid{grid-template-columns:1fr}.tp-card{padding:17px}.tp-toolbar{gap:12px}.tp-filters{width:100%}.tp-next{padding:17px}.topic-entry{align-items:flex-start}.topic-entry p{max-width:220px}}

.subject-topic-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;background:var(--bg2);border-bottom:1px solid var(--border);flex-shrink:0}
.subject-topic-entry strong{display:block;color:var(--txt);font-size:14px}.subject-topic-entry span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.subject-topic-entry button{border:0;border-radius:8px;background:#266452;color:#fff;padding:10px 13px;white-space:nowrap;cursor:pointer;font:inherit;font-size:14px}
@media(max-width:600px){.subject-topic-entry{padding:9px 10px}.subject-topic-entry span{font-size:11px}.subject-topic-entry button{font-size:13px;padding:9px 10px}}
/* 2026-10-15 单元化：状态徽标与前置标签 */
.tp-badge{display:inline-block;font-size:12px;padding:3px 9px;border-radius:999px;margin-bottom:8px;font-weight:600}.tp-ok{background:#e0eddf;color:#247049}.tp-warn{background:#fff3dc;color:#8a5a12}.tp-stop{background:#fbe7e4;color:#a33a2a}.tp-done{background:#e6eaf2;color:#3b4e6e}
.tp-tag{display:inline-block;margin-left:8px;font-size:11px;background:#fff3dc;color:#8a5a12;border-radius:6px;padding:1px 7px;vertical-align:middle}
.tp-card p{word-break:break-all}
