/* Course discovery and the semester suggestion dialog share one compact surface. */
.planner-page .sidebar.add-course-sidebar{display:flex;flex-direction:column;gap:14px;min-width:0;align-self:start}
.smart-planning-launch{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 16px;border-radius:11px;box-shadow:0 4px 12px #1765dc14}
.smart-planning-launch svg{width:21px;height:21px;flex-shrink:0}
.smart-planning-launch span{font-size:15px;letter-spacing:.3px}
.smart-planning-launch small{color:#d9e8ff;font-size:10px}
/* Layout and card utilities come from MonMap's retained source components. */
.monmap-add-panel{background:transparent;min-width:0}
.monmap-add-panel .mm-unit-search{border:0;box-shadow:none;margin:0;padding:0;min-width:0;width:100%;height:23px;outline:none;font-size:12px}
.monmap-add-panel .mm-unit-detail{border:0;background:transparent;padding:0;line-height:1.5}
.monmap-add-panel .mm-unit-zh,.monmap-add-panel .mm-unit-en{display:block;overflow-wrap:anywhere;line-height:1.5}
.monmap-add-panel .mm-unit-plus{border:0;background:transparent;min-width:28px;min-height:32px}
.monmap-add-panel .mm-unit-row{min-height:64px}
.monmap-add-panel #quick-results{max-height:670px;overflow-y:auto;scrollbar-width:thin}
.monmap-add-panel #unit-filter-chips:empty{display:none}
.monmap-add-panel .mm-unit-popover[popover]{padding:0;max-height:calc(100svh - 24px);overflow-y:auto}
.monmap-add-panel .mm-unit-popover p{margin:0}
.monmap-add-panel .mm-unit-popover button{line-height:1.5}
.monmap-add-panel .mm-unit-popover .mm-filter-body{max-height:calc(100svh - 100px);overflow-y:auto}
.monmap-add-panel .mm-area-filter{margin:0;width:100%;font-size:12px}
.monmap-add-panel .mm-template-load small{font-size:9px;line-height:1.2}
.monmap-add-panel [hidden]{display:none!important}
#smart-planning-dialog{width:760px;max-height:90svh;overflow:auto}
.smart-dialog-heading{display:flex;align-items:center;gap:11px}
.smart-dialog-heading>svg{width:25px;height:25px;color:#1765dc}
.smart-dialog-heading h2{font-size:19px}
.smart-dialog-heading small{font-size:11px;margin-top:2px}
.smart-planning-body{padding:24px 28px 26px}
.smart-context{display:flex;gap:14px;justify-content:space-between;align-items:start;background:#f2f6fc;border:1px solid #e1e9f3;padding:14px 16px;border-radius:9px;margin-bottom:18px}
.smart-context strong{font-size:13px}
.smart-context small{font-size:11px;margin-top:3px}
.smart-context>span{white-space:nowrap;font-size:11px;color:#627a9b}
.smart-intro{font-size:13px;line-height:1.9;color:#697b91;margin-bottom:17px}
.smart-planning-body label{font-size:12px;margin:0 0 16px}
.smart-planning-body label small{display:inline;margin-left:6px;font-size:10px}
.smart-planning-body select{font-size:13px;min-height:44px}
.smart-field-note{font-size:11px;line-height:1.7;color:var(--muted);margin:-7px 0 16px}
.smart-planning-body form>.primary{min-height:46px;margin:5px 0 0}
.smart-plan-preview{margin-top:22px;padding-top:21px;border-top:1px solid var(--line)}
.smart-preview-title{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:14px}
.smart-preview-title h3{font-size:16px;margin:0 0 5px}
.smart-preview-title p{font-size:11px;color:var(--muted);margin:0}
.smart-preview-title>span{font-size:12px;color:#1765dc;white-space:nowrap}
.smart-course-list{list-style:none;padding:0;margin:0;background:#f8fafd;border:1px solid #e1e8f1;border-radius:9px}
.smart-course-list li{padding:14px 16px;margin:0;border-bottom:1px dashed #dce3ed}
.smart-course-list li:last-child{border-bottom:0}
.smart-course-list li>div{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;font-size:13px}
.smart-course-list li strong{color:#245fae}
.smart-course-list li>small{margin:3px 0 6px;font-size:11px}
.smart-course-list li>p{font-size:11px;margin:0;color:#6d7d91}
.smart-course-list .smart-course-warning{color:#916322;margin-top:6px;line-height:1.7}
.smart-blocked{font-size:12px;margin-top:16px}
.smart-blocked summary{font-size:12px}
.smart-blocked p{font-size:11px;color:var(--muted);line-height:1.8}
.smart-plan-preview .note{font-size:12px;margin:14px 0}
.smart-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px}
.smart-dialog-actions button{min-height:44px;font-size:13px}
.smart-plan-error{color:#b4403c;font-size:12px;margin:14px 0 0;line-height:1.8}
.smart-plan-error:empty{display:none}
@media(min-width:1280px){.planner-page .workspace-layout{grid-template-columns:minmax(0,1fr) 292px;gap:22px}}
@media(max-width:1279px){.planner-page .sidebar.add-course-sidebar{max-width:none}}
@media(max-width:850px){.planner-page .sidebar.add-course-sidebar{display:flex}}
@media(max-width:600px){.smart-planning-body{padding:18px 18px 20px}.smart-planning-body .two{grid-template-columns:1fr;gap:0}.smart-context{display:block;padding:12px}.smart-context>span{display:block;margin-top:8px}.smart-dialog-heading h2{font-size:17px}.smart-dialog-actions{flex-direction:column-reverse;align-items:stretch}.smart-dialog-actions button{width:100%}.smart-preview-title{gap:10px}.smart-preview-title>span{font-size:11px}}
@media print{#smart-planning-dialog{display:none!important}}

/* Help me choose: explicit conditions, followed by an unsaved timetable preview. */
.smart-planning-body [hidden]{display:none!important}
.smart-planning-body #help-select-form{padding:0;border:0;box-shadow:none;margin:0;background:transparent}
.smart-planning-body .choice-check{display:flex;align-items:flex-start;gap:9px;line-height:1.7;margin:12px 0;font-size:12px}
.smart-planning-body .choice-check input{width:17px;height:17px;min-height:0;flex:0 0 17px;margin:3px 0 0;accent-color:#2e63d8}
.smart-planning-body .choice-check small{display:block;margin:2px 0 0;color:#738199}
.choice-check>span{color:#4b5d76}
.choice-permission-list{border:1px solid #dee7f2;border-radius:10px;padding:10px 16px 16px;margin:3px 0 20px;background:#f8fafd}
.choice-permission-list legend{font-size:13px;font-weight:650;padding:0 7px}
.choice-permission-list>small,.choice-permission-list>p{font-size:11px;color:#728098;line-height:1.7}
.choice-assessment-note{margin:8px 0 18px}
.choice-more{border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:14px 0;margin:16px 0}
.choice-more>summary{font-size:12px;color:#4d5e75;cursor:pointer}
.choice-more>label{margin:14px 0 8px}
#choice-exclude-results{max-height:180px;overflow:auto;display:grid;gap:3px}
#choice-exclude-results button{text-align:left;border:0;background:#f3f6fb;padding:9px;font-size:12px;line-height:1.5;white-space:normal}
#choice-excluded{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
#choice-excluded button{font-size:11px;padding:4px 9px;background:#eef3fb;border-color:#dce5f0;border-radius:6px}
.choice-data-note{font-size:11px;line-height:1.9;color:#728199;margin:16px 0 4px}
#help-select-form>.primary{width:100%;margin-top:16px}
.choice-preview-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;margin:0 0 20px;border:1px solid #b9cff6;border-left:4px solid #2e63d8;border-radius:12px;background:#f5f8ff;scroll-margin-top:100px}
.choice-preview-banner h2{font-size:18px;margin:7px 0;color:#263e64}
.choice-preview-banner p{font-size:12px;line-height:1.8;margin:6px 0 0;color:#62748e}
.choice-preview-eyebrow{font-size:11px;letter-spacing:.5px;color:#2e63d8;font-weight:650}
.choice-preview-controls{display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.choice-view-switch{display:flex;gap:3px;padding:3px;background:#e8eef8;border-radius:8px}
.choice-view-switch button{font-size:12px;padding:7px 13px;background:transparent;border-color:transparent;box-shadow:none}
.choice-view-switch button[aria-pressed="true"]{background:#fff;color:#275dc7;box-shadow:0 1px 4px #24497818}
.choice-preview-actions{display:flex;flex-wrap:wrap;gap:8px}
.choice-preview-actions button{font-size:12px;min-height:40px;padding:8px 12px}
.choice-preview-banner .choice-target-warning{flex-basis:100%;padding-top:12px;border-top:1px dashed #cddaf1;color:#94611d}
.choice-suggestions{min-width:0;padding:18px;border:1px solid #dce5f2;border-radius:12px;background:#fff;align-self:start}
.choice-summary h2{font-size:15px;margin:0 0 7px}
.choice-summary p{font-size:11px;margin:0;color:#6d7e95}
.choice-suggestion-list{list-style:none;padding:0;margin:16px 0 0}
.choice-suggestion-list>li{border-top:1px dashed #dbe4f0;padding:16px 0}
.choice-item-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#285daf}
.choice-item-heading span{font-size:11px;color:#748198}
.choice-suggestion-list h3{font-size:13px;margin:7px 0 3px;line-height:1.6}
.choice-suggestion-list small{font-size:11px;line-height:1.5;color:#78869a}
.choice-suggestion-list p{font-size:11px;line-height:1.8;color:#687991;margin:9px 0}
.choice-suggestion-list .choice-replacement{display:inline-block;padding:3px 7px;border-radius:5px;background:#edf3ff;color:#3264b1}
.choice-suggestion-list details{font-size:11px;color:#90621e;margin:10px 0}
.choice-suggestion-list details p{color:#90621e}
.choice-item-actions{display:flex;gap:7px;margin-top:12px}
.choice-item-actions button{font-size:11px;min-height:34px;padding:5px 10px}
.choice-removals{border-top:1px solid #e4e9f0;padding-top:12px}
.choice-removals h3{font-size:13px;margin:0 0 10px}
.choice-removals p{font-size:11px;line-height:1.8;color:#6c7c91}
.choice-removals small{display:block;color:#95702d}
.choice-preview-active .monmap-planner .choice-target-term{background:#eef5ff;box-shadow:inset 3px 0 #2e63d8}
.choice-preview-active .monmap-planner .choice-added{border:2px solid #3974df;background:#f8fbff}
.choice-preview-active .monmap-planner .choice-added-label{font-size:10px;color:#2e63d8;font-weight:650;margin-bottom:3px}
.choice-preview-active .monmap-planner .mm-slot{grid-template-columns:repeat(var(--slot-cols),minmax(172px,1fr))}
.choice-preview-active .monmap-planner .drag-handle,.choice-preview-active .monmap-planner .course-more{display:none}
.choice-preview-active .monmap-planner button:disabled{cursor:default;opacity:.5}
@media(max-width:1100px){.choice-preview-controls{align-items:flex-start}.choice-preview-active .workspace-layout{display:flex;flex-direction:column}.choice-preview-active .plan-main,.choice-preview-active .choice-suggestions{width:100%}.choice-suggestions{order:-1}.choice-suggestion-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;max-height:410px;overflow:auto}.choice-suggestions .choice-data-note{margin-top:8px}}
@media(max-width:600px){.choice-preview-banner{padding:16px 14px}.choice-preview-banner h2{font-size:16px}.choice-preview-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.choice-preview-actions .primary{grid-column:1/-1}.choice-preview-controls{width:100%}.choice-suggestion-list{grid-template-columns:1fr;max-height:350px}.choice-suggestions{padding:16px}.choice-view-switch{width:100%}.choice-view-switch button{flex:1}.smart-planning-body .choice-check{font-size:12px}}
@media print{.choice-preview-banner,.choice-suggestions{display:none!important}}
@media print{.choice-preview-active .choice-preview-banner{display:block!important}.choice-preview-active .choice-preview-controls{display:none!important}}

/* First-entry choice and whole-study wizard. */
#study-start-dialog{width:760px;max-height:90svh;overflow:auto}
#study-start-dialog .dialog-head h2{font-size:20px;margin:0 0 5px}
#study-start-dialog .dialog-head small{font-size:12px;color:#76859a;line-height:1.7}
.study-dialog-body{padding:26px 28px}
.study-dialog-body h3{font-size:17px;color:#294366;margin:0 0 20px}
.study-entry-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.study-entry-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:24px 22px;white-space:normal;border:1px solid #dbe4f1;border-radius:13px;background:#fff;gap:13px;line-height:1.8}
.study-entry-card.recommended,.study-task-card.recommended{border-color:#9dbcf1;background:#f4f8ff}
.study-entry-card:hover,.study-task-card:hover{border-color:#2f66d9;box-shadow:0 3px 12px #285abd12}
.study-entry-card strong{font-size:19px;color:#244d89}
.study-entry-card>span:not(.study-entry-icon){font-size:13px;color:#61728c}
.study-entry-card small{font-size:11px;color:#4371b9;margin-top:auto;padding-top:8px}
.study-entry-icon{width:42px;height:42px;display:grid;place-items:center;background:#e4edfd;border-radius:11px;color:#2e63d8;font-size:25px}
.study-quiet{font-size:11px;line-height:1.9;color:#7c8a9e;margin:20px 0 0}
.study-task-options{display:grid;gap:12px}
.study-task-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:19px 21px;border:1px solid #dce5f2;background:#fff;border-radius:10px;text-align:left;white-space:normal}
.study-task-card b{font-size:15px;color:#2c466e}.study-task-card span{font-size:12px;line-height:1.7;color:#72829a}
.study-chooser-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-size:11px;color:#8190a4}
.study-text-button{border:0;background:transparent;box-shadow:none;padding:4px 0;font-size:12px;color:#2d65c7;text-align:left}
.study-steps{display:flex;list-style:none;gap:12px;padding:0 0 20px;margin:0 0 24px;border-bottom:1px solid #e4eaf4}
.study-steps li{display:flex;gap:7px;align-items:center;font-size:12px;color:#8a96a8;flex:1}
.study-steps li>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eff2f7;font-size:12px;font-weight:600;flex-shrink:0}
.study-steps .current{color:#245dc2;font-weight:650}.study-steps .current>span{background:#2f65d6;color:#fff}.study-steps .done>span{background:#e7efff;color:#3166c7}
#study-wizard-form{padding:0;margin:0;background:transparent;box-shadow:none;border:0}
#study-wizard-form label{font-size:12px;line-height:1.8;margin-bottom:18px}
#study-wizard-form input,#study-wizard-form select{font-size:13px;min-height:44px}
.study-profile{padding:16px;background:#f4f7fc;border:1px solid #dfe7f3;border-radius:10px;display:grid;gap:6px}
.study-profile b{font-size:13px}.study-profile span{font-size:11px;color:#6c809e}
.study-record-summary{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0;padding:18px 0;border-bottom:1px dashed #dce4f0;gap:15px}
.study-record-summary>div{display:grid;gap:6px;padding-left:15px;border-left:1px solid #e1e8f2}
.study-record-summary>div:first-child{border:0;padding-left:0}.study-record-summary b{font-size:25px;color:#264d80}.study-record-summary span{font-size:11px;color:#75869d}
.study-inline-note{font-size:12px;line-height:1.9;color:#6a7d97;margin:12px 0 20px}
.study-start-fields{align-items:start}
#study-wizard-form .study-start-fields label{margin-top:0}
.study-field-help{display:block;font-size:11px;font-weight:400;color:#74839a;line-height:1.7;margin-top:7px}
.study-rhythm-settings{padding:0 20px;background:#f5f8fc;border:1px solid #e0e8f3;border-radius:10px}
.study-setting{padding:16px 0}
.study-setting+.study-setting{border-top:1px dashed #cfdced}
.study-setting-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.study-setting h4{font-size:12px;font-weight:500;color:#687b96;margin:0 0 5px;line-height:1.6}
.study-setting-head p{font-size:14px;font-weight:600;line-height:1.7;color:#29466d;margin:0}
.study-setting-head .study-text-button{flex-shrink:0;min-height:32px;line-height:1.7}
.study-setting-note{font-size:11px;line-height:1.9;color:#73849c;margin:9px 0 0}
#study-wizard-form .study-setting label{display:block;max-width:350px;margin:14px 0 0}
.study-arrangement-note{font-size:12px;line-height:1.8;color:#536f96;margin:9px 0 0}
.study-dialog-body .choice-check,.study-ack{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.8}
.study-dialog-body .choice-check input,.study-ack input{width:17px;height:17px;min-height:0!important;flex:0 0 17px;margin-top:3px;accent-color:#3067d9}
.study-wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:23px;margin-top:22px;border-top:1px solid #e4eaf3}
.study-wizard-actions button{min-height:42px;font-size:13px}.study-wizard-actions>.primary{min-width:180px}
.study-before-generate{padding:15px 18px;background:#f2f6fd;border-radius:9px;margin:20px 0 0}
.study-before-generate b{font-size:12px;color:#315a91}.study-before-generate p{font-size:12px;line-height:1.8;color:#72839b;margin:6px 0 0}
#study-exclude-results{display:grid;gap:4px;max-height:170px;overflow:auto}#study-exclude-results button{font-size:12px;text-align:left;white-space:normal;border:0;background:#f4f7fb;padding:8px}
.study-excluded{display:flex;flex-wrap:wrap;gap:7px}.study-excluded button{font-size:11px;padding:5px 8px;border-color:#dfe7f2;background:#f4f7fb}
.study-ack{flex-basis:100%;margin:0;padding-top:14px;border-top:1px dashed #cbdaf2;color:#5b718f}
.study-pending{margin:17px 0;padding:13px;border:1px solid #ebdfc8;background:#fffaf1;border-radius:8px;font-size:12px;color:#8d6a36}
.study-pending p{font-size:11px;line-height:1.85;margin:11px 0}.study-pending p+p{padding-top:8px;border-top:1px dashed #eddec4}.study-pending small{display:block}
.study-added-details>summary{font-size:12px;color:#365c96;margin-top:18px}.study-added-details .choice-suggestion-list{max-height:600px;overflow:auto}
.monmap-planner .study-placeholder{min-width:0;min-height:94px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;padding:12px 13px;border:1px dashed #afc4e6;border-radius:7px;background:#f4f8fe;color:#607b9f;text-align:left;white-space:normal;box-shadow:none}
.monmap-planner .study-placeholder>span{font-size:10px}.monmap-planner .study-placeholder strong{font-size:12px;line-height:1.7}.monmap-planner .study-placeholder small{font-size:10px;line-height:1.65;color:#8798af}
.study-saved-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#f4f8ff;border:1px solid #d5e2f6;border-radius:10px;padding:15px 19px;margin-bottom:19px}
.study-saved-summary b{font-size:13px;color:#335b95}.study-saved-summary p{font-size:11px;line-height:1.8;color:#74869f;margin:6px 0 0}
@media(max-width:600px){#study-start-dialog .dialog-head h2{font-size:18px}.study-dialog-body{padding:20px 18px}.study-entry-options{grid-template-columns:1fr;gap:12px}.study-entry-card{padding:17px 18px;gap:8px}.study-entry-icon{width:32px;height:32px;font-size:21px}.study-entry-card strong{font-size:17px}.study-entry-card small{padding-top:0}.study-steps{gap:6px}.study-steps li{font-size:10px;gap:4px}.study-steps li>span{width:22px;height:22px;font-size:11px}.study-dialog-body .two{grid-template-columns:1fr;gap:0}.study-record-summary{gap:8px}.study-record-summary>div{padding-left:8px}.study-record-summary b{font-size:22px}.study-wizard-actions .primary{min-width:0}.study-wizard-actions button{font-size:12px}.study-saved-summary{display:block}.study-saved-summary button{margin-top:10px}.study-chooser-foot{flex-wrap:wrap}}
@media print{#study-start-dialog{display:none!important}.study-placeholder{break-inside:avoid}}

/* Keep the main decision visible; show optional details on demand. */
#smart-planning-dialog{width:720px;overflow:hidden}
#smart-planning-dialog[open]{display:flex;flex-direction:column}
#smart-planning-dialog .dialog-head{flex-shrink:0}
#smart-planning-dialog .smart-planning-body{overflow:auto;min-height:0}
#smart-planning-dialog .dialog-head{padding:20px 28px}
#smart-planning-dialog .dialog-head h2{margin:0;font-size:20px}
#smart-planning-dialog .smart-context{padding:12px 15px;margin-bottom:22px}
#smart-planning-dialog .smart-context small{display:block;font-size:11px;color:#78879c}
#smart-planning-dialog .choice-more{margin:0;border-bottom:0;padding:14px 0}
#smart-planning-dialog .choice-more>summary{display:flex;align-items:baseline;gap:10px;list-style:none;font-size:13px;font-weight:600;color:#334d70}
#smart-planning-dialog .choice-more>summary::before{content:'›';font-size:18px;line-height:1;transition:transform .15s}
#smart-planning-dialog .choice-more[open]>summary::before{transform:rotate(90deg)}
#smart-planning-dialog .choice-more>summary>span{font-size:11px;font-weight:400;color:#7a89a0}
#smart-planning-dialog .choice-preferences>.two{margin-top:18px}
#smart-planning-dialog .choice-assessment-note{margin:8px 0;color:#78879c}
#smart-planning-dialog .choice-inline-help{font-size:11px;color:#78879c;margin:6px 0;line-height:1.7}
#smart-planning-dialog .choice-permission-list{padding:10px 16px 14px;margin:4px 0 20px}
#smart-planning-dialog .choice-permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 20px}
#smart-planning-dialog .choice-permission-grid .choice-check{margin:7px 0}
#smart-planning-dialog .choice-permission-list>small{display:block;margin-top:9px;padding-top:9px;border-top:1px dashed #dce4ef}
#smart-planning-dialog .choice-help{font-size:11px;color:#7b899c;border-top:1px solid #e2e8f0;padding:13px 0 0}
#smart-planning-dialog .choice-help summary{cursor:pointer;width:fit-content}
#smart-planning-dialog .choice-help p{font-size:11px;line-height:1.8;margin:9px 0 0}
#smart-planning-dialog .choice-form-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;margin:0;padding:16px 28px;border-top:1px solid #e2e8f0;background:#fff}
#smart-planning-dialog .choice-form-actions>span{font-size:11px;color:#7b899c}
#smart-planning-dialog .choice-form-actions .primary{width:auto;min-width:180px;min-height:44px;font-size:13px}
#smart-planning-dialog .choice-form-actions .choice-back{min-height:44px;padding:8px 15px;font-size:13px;background:#fff;border:1px solid #d6e0ed;color:#45617f}
#smart-planning-dialog .choice-guidance{margin:0 0 18px;padding:12px 15px;border:1px solid #d5e2f7;border-radius:8px;background:#f3f7fe;color:#345d95;font-size:12px;line-height:1.8}
#smart-planning-dialog .choice-guidance p{font-size:12px;margin:3px 0 0}
#study-start-dialog[data-kind='chooser']{width:580px}
#study-start-dialog[data-kind='chooser'] .dialog-head{padding:22px 28px}
#study-start-dialog[data-kind='chooser'] .study-dialog-body{padding:22px 28px}
#study-start-dialog .study-task-card{position:relative;padding:17px 46px 17px 19px;gap:5px}
#study-start-dialog .study-task-card i{position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:23px;font-weight:400;font-style:normal;color:#7f92ad}
#study-start-dialog .study-task-card:focus-visible{outline:2px solid #2f66d9;outline-offset:3px}
#study-start-dialog .study-chooser-foot{margin-top:16px}


/* UnitMenu from MonMap UnitCard: flat move targets, review, destructive remove. */
.monmap-planner .mm-menu-item[data-variant="destructive"]{color:var(--destructive)}
.monmap-planner .mm-menu-item[data-variant="destructive"]:hover,.monmap-planner .mm-menu-item[data-variant="destructive"]:focus-visible{color:var(--destructive);background:#b4403c12}
.monmap-planner .mm-unit-menu-target{padding-left:12px;text-align:left}
.monmap-planner .mm-unit-menu-target small{font-size:10px;line-height:1.4;margin-top:2px;color:var(--muted-foreground)}
.monmap-planner .mm-menu-item[data-variant="destructive"] .mm-icon{width:12px;height:12px}
.unit-review-heading{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:18px}
.unit-review-heading strong{font-size:15px}
.unit-review-heading small{margin-top:4px}
#plan-dialog .library-review-section{margin-top:0;border-bottom:0}

/* Reserve the upstream PlanMap frame before the lazy canvas bundle loads. */
.monmap-course-map{margin-top:28px;min-width:0}
.monmap-course-map #course-map{height:640px;min-height:480px;border:0;border-radius:0}
.monmap-course-map .mm-map-heading h2{font-size:14px;font-weight:600;margin:0}
.monmap-course-map .mm-map-heading h2 small{display:inline;margin-left:7px;font-size:11px;color:var(--muted-foreground)}
.monmap-course-map .mm-map-heading label{margin:0;font-size:11px}
.monmap-course-map .mm-map-heading input{width:14px;height:14px;margin:0;accent-color:#1765dc}
.monmap-course-map .mm-map-loading{display:flex;align-items:center;justify-content:center;height:100%;font-size:12px;color:var(--muted-foreground)}
@media(max-width:600px){.monmap-course-map #course-map{height:480px;min-height:400px}}

/* Course-first review: one row and one primary action per course. */
.monmap-planner [data-action="planAudit"]{height:auto;min-height:40px;padding:6px 10px;max-width:100%;white-space:normal;text-align:left;align-items:center}
.monmap-planner .mm-audit-status{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.35}
.monmap-planner .mm-audit-status>span{font-size:12px;font-weight:600}
.monmap-planner .mm-audit-status small{font-size:11px;line-height:1.5;white-space:normal;max-width:280px}
.monmap-planner [data-audit-severity="error"]{color:#a72e3b;border-color:#efc3ca}
.monmap-planner [data-audit-severity="warning"]{color:#8d641e;border-color:#e6d2ae}
.monmap-planner [data-audit-severity="info"],.monmap-planner .mm-status-info{color:#255db7}
.monmap-planner .mm-status-info{display:inline-flex;flex-shrink:0}.monmap-planner .mm-status-info svg{width:13px;height:13px}
.audit-located{outline:3px solid #4c8af0!important;outline-offset:3px}
#plan-dialog[data-mode="audit"]{width:700px}
#plan-dialog[data-mode="audit"] .dialog-head{padding:20px 24px;background:#fff}
#plan-dialog[data-mode="audit"] .dialog-head h2{font-size:20px;line-height:1.4}
#plan-dialog[data-mode="audit"] .plan-dialog-body{padding:22px 24px;font-size:14px;line-height:1.7}
#plan-dialog[data-mode="audit"] [hidden]{display:none!important}
.review-result{display:flex;align-items:center;gap:9px;padding:10px 13px;border-radius:7px;background:#edf7f1;color:#22734e;font-size:13px}
.review-result>span:first-child{display:grid;place-items:center;width:18px;height:18px;flex-shrink:0;border:1px solid currentColor;border-radius:50%;font-size:11px;line-height:1}
.review-result[data-result="conflict"]{background:#fff0f2;color:#a72e3b}
.review-lead{font-size:19px;line-height:1.5;margin:20px 0 2px;font-weight:600}
.review-intro{font-size:13px;line-height:1.7;color:#64738b;margin:5px 0 0}.review-empty{padding:18px 0 8px}
.review-course{padding:22px 0;border-bottom:1px solid #e1e7ef}.review-course:last-child{border-bottom:0;padding-bottom:9px}
.review-course-meta{display:flex;align-items:baseline;justify-content:space-between;gap:3px 12px;flex-wrap:wrap}
.review-course-meta strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.review-course-meta>span{font-size:12px;color:#64738b}
.review-course h3,.review-shared h3{font-size:16px;line-height:1.5;font-weight:600;margin:10px 0 5px;overflow-wrap:anywhere}
.review-course[data-severity="error"]>h3{color:#a72e3b}
.review-course-summary{font-size:14px;line-height:1.7;margin:6px 0;overflow-wrap:anywhere}
.review-primary{background:#2d65df;color:#fff;border:1px solid #2d65df;border-radius:6px;min-height:36px;padding:7px 13px;font-size:13px;line-height:1.5;margin-top:11px}
.review-primary:hover{background:#2458c6;border-color:#2458c6}.review-primary:focus-visible,.review-secondary:focus-visible{outline:2px solid #2d65df;outline-offset:3px}
.review-course-details{margin-top:13px;padding:14px 16px;border-radius:6px;background:#f5f7fb}
.review-detail-item+ .review-detail-item{margin-top:18px;padding-top:14px;border-top:1px solid #dfe6ef}
.review-detail-item h4{font-size:14px;line-height:1.6;margin:0 0 7px;font-weight:600}
.review-detail-item p,.review-detail-item li{font-size:13px;line-height:1.8;margin:5px 0;overflow-wrap:anywhere}.review-detail-item ul{padding-left:20px;margin:8px 0}
.review-sequence{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.8;color:#64738b;margin:15px 0 0}.review-sequence>span:first-child{flex-shrink:0;color:#4b6c9e}
.review-additional{font-size:13px;line-height:1.7;color:#64738b;padding-left:18px;margin:8px 0}
.review-original,.review-other-options{font-size:13px;line-height:1.8;color:#64738b;margin-top:13px}.review-original summary,.review-other-options summary{cursor:pointer;color:#255db7}.review-original p{font-size:13px;line-height:1.8}.review-other-options>.review-detail-item{padding:14px 0}
.review-rule{margin:12px 0}.review-rule>section{padding:12px 0;border-top:1px solid #dfe6ef}.review-rule h5{font-size:13px;margin:0 0 8px;font-weight:600}.review-rule-group>p{color:#64738b}
.review-rule-course{display:flex;flex-direction:column;margin:8px 0;gap:3px}.review-rule-course strong{font-size:13px;font-weight:500}.review-rule-course small{font-size:12px;line-height:1.6;color:#64738b}.review-rule-course[data-rule-status="met"] small{color:#22734e}
.review-utilities{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-top:13px;margin-top:16px;border-top:1px solid #dfe6ef}
.review-secondary,.review-utilities a{min-height:32px;padding:6px 9px;font-size:12px;line-height:1.5}.review-utilities a{color:#255db7;text-decoration:none}.review-utilities a:hover{text-decoration:underline}
.review-shared{margin:20px 0;padding:16px;background:#f6f8fb;border-radius:7px}.review-footer{font-size:12px;line-height:1.7;color:#64738b;border-top:1px solid #e1e7ef;padding-top:14px;margin:18px 0 0}
#plan-dialog[data-mode="audit-move"]{width:700px}.audit-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}.audit-actions button{font-size:13px;line-height:1.5;padding:7px 11px;min-height:36px}
.audit-unavailable{font-size:12px;margin-top:18px;color:var(--muted)}.audit-unavailable p{padding:7px 0;border-bottom:1px solid var(--line)}
#detail-requirements{scroll-margin-top:90px;outline:none}.audit-back{font-size:12px;margin-bottom:10px;min-height:34px}
@media(max-width:600px){#plan-dialog[data-mode="audit"] .dialog-head,#plan-dialog[data-mode="audit"] .plan-dialog-body{padding:18px 16px}.review-lead{font-size:18px}.review-course-details{padding:12px}.review-primary{min-height:44px}.review-secondary,.review-utilities a{min-height:40px}.review-course-meta>span{flex-basis:100%}}

.review-auto-entry{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:16px}
.review-auto-entry .review-primary{margin:0}
.review-auto-entry>span{font-size:12px;color:#64738b}
#plan-dialog[data-mode="audit-repair"]{width:700px}
#plan-dialog[data-mode="audit-repair"] .plan-dialog-body{font-size:14px;line-height:1.8;padding:22px 24px}
.repair-summary h3{font-size:20px;line-height:1.5;margin:0 0 10px}
.repair-summary>p{font-size:14px;line-height:1.8;margin:0;color:#64738b}
.repair-changes,.repair-remaining ul{list-style:none;padding:0;margin:20px 0}
.repair-changes>li{padding:16px 0;border-bottom:1px solid #e1e7ef}
.repair-changes strong{font-size:15px}
.repair-route{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:9px;font-size:13px}
.repair-route>span:first-child{color:#64738b}
.repair-route>b{color:#255db7;font-weight:600}
.repair-changes p{font-size:13px;color:#64738b;margin:7px 0 0}
.repair-remaining{margin:24px 0}
.repair-remaining h3{font-size:15px;margin:0}
.repair-remaining ul{margin:10px 0}
.repair-remaining li{padding:10px 0;border-bottom:1px solid #e1e7ef;font-size:13px}
.repair-remaining p{font-size:13px;line-height:1.8;color:#64738b;margin:4px 0 0}
.repair-note,.repair-scope{font-size:12px;line-height:1.8;color:#64738b;margin:18px 0}
.repair-scope summary{color:#255db7;cursor:pointer}
.repair-scope p{margin:8px 0}
.repair-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:20px}
.repair-actions .review-primary{margin:0}
.repair-loading{padding:20px 0;font-size:14px;color:#64738b}
@media(max-width:600px){#plan-dialog[data-mode="audit-repair"] .plan-dialog-body{padding:18px 16px}.repair-summary h3{font-size:18px}.repair-route{gap:6px}.repair-actions>button{min-height:44px}}
/* Shared study history and transfer-credit workspace. */
.learning-page{max-width:1240px;margin:auto;padding:32px 28px 72px}.learning-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}.learning-heading h1{font-size:28px;margin:4px 0 12px}.learning-heading p{color:#64748b;margin:0;line-height:1.7}.learning-heading>a{white-space:nowrap;margin-top:14px}.learning-summary{border:1px solid #dbe5f4;border-radius:14px;background:#f5f8fe;margin:18px 0 24px;padding:16px 20px;color:#334155}.planner-page>.learning-summary{margin:16px 0}.learning-summary summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px;cursor:pointer;list-style:revert}.learning-summary summary b{color:#183c72;font-size:15px}.learning-summary summary span{font-size:13px}.learning-summary-body{border-top:1px solid #dbe5f4;margin-top:14px;padding-top:12px;font-size:13px;line-height:1.8}.learning-summary-body p{margin:4px 0}.learning-start{display:flex;align-items:center;justify-content:space-between;gap:24px}.learning-start h2{margin-bottom:6px}.learning-start p{margin:0}.learning-start form{display:flex;align-items:center;gap:10px;flex-shrink:0}.learning-start select{min-width:180px;margin:0}.learning-tabs{display:flex;gap:6px;margin:22px 0 20px;padding:5px;border-radius:12px;background:#eaf0f8;width:fit-content}.learning-tabs button{border:0;background:transparent;color:#52647d;padding:11px 22px;font-weight:600;border-radius:9px}.learning-tabs button[aria-pressed=true]{background:#fff;color:#1d56b1;box-shadow:0 2px 8px #17385d0d}.learning-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:start}.learning-editor{min-width:0}.learning-editor label{font-size:13px}.learning-editor h2,.learning-list h2{font-size:18px;margin-bottom:20px}.learning-editor .choice-check{display:flex;align-items:flex-start;gap:10px;line-height:1.7;font-size:13px}.learning-editor .choice-check input{width:16px;height:16px;flex-shrink:0;margin-top:4px}.learning-editor textarea{min-height:70px}.learning-editor .note{font-size:13px;line-height:1.8}.learning-editor fieldset{border:1px solid #dbe4ef;border-radius:10px;padding:14px;margin:18px 0}.learning-code-picker legend{font-size:12px;color:#64748b;padding:0 6px}.learning-picked{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.learning-picked button{border:1px solid #b6cffa;background:#edf4ff;color:#1d56b1;font-size:12px;text-align:left;padding:6px 9px;border-radius:6px}#learning-search-results{max-height:220px;overflow:auto;margin-top:5px}#learning-search-results button{display:block;text-align:left;width:100%;background:#fff;border:0;border-bottom:1px solid #eef2f7;border-radius:0;padding:9px 5px;color:#334155;font-size:12px}#learning-search-results button:hover{background:#f1f6ff}#learning-search-results small{color:#64748b;float:right}.learning-calculation{font-size:13px;line-height:1.8;color:#245ba5;background:#f0f5fd;border-radius:8px;padding:12px}.learning-scope{margin:16px 0;font-size:13px}.learning-scope summary{cursor:pointer;margin-bottom:10px;color:#45617e}.learning-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.learning-actions button:not(.primary){font-size:12px;background:#f6f8fb;border:1px solid #dce4ef;color:#45617e}.learning-list article{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 0;border-top:1px solid #e8edf4;font-size:13px;overflow-wrap:anywhere}.learning-list article:first-of-type{border-top:0;padding-top:0}.learning-list article>b,.learning-list article div>b{line-height:1.7}.learning-list article p{margin:7px 0 0;color:#64748b;line-height:1.8}.learning-list article>.learning-actions{flex-shrink:0}.learning-list .tag{display:inline-block;font-size:10px;margin-left:4px}.learning-finish{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}.learning-finish p{margin:6px 0 0}#learning-confirm{width:min(690px,94vw);border:1px solid #dbe4ef;border-radius:16px;padding:0;max-height:88vh;overflow:auto}#learning-confirm::backdrop{background:#19324a70;backdrop-filter:blur(3px)}.learning-confirm-body{padding:24px 28px;font-size:14px;line-height:1.8}.learning-confirm-body h3{font-size:15px;margin:20px 0 6px}.learning-impact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f3f7fe;border-radius:10px;padding:18px;gap:18px;margin:20px 0}.learning-impact span{font-size:11px;color:#64748b}.learning-impact b{display:block;font-size:23px;color:#204c8d;margin-top:6px}.learning-confirm-body>.learning-actions{justify-content:flex-end;margin-top:24px}

.learning-start button{white-space:nowrap;min-width:128px}

.learning-summary summary::after{content:"展开查看 ⌄";margin-left:auto;font-size:12px;color:#56749b}.learning-summary[open] summary::after{content:"收起 ⌃"}.learning-change-description{border-bottom:1px solid #e3eaf4;padding-bottom:12px;margin-bottom:16px;color:#23446d}

.learning-planning-return{display:flex;align-items:center;justify-content:space-between;gap:20px}.learning-planning-return p{margin:6px 0 0;font-size:13px;line-height:1.8}.learning-planning-return button{white-space:nowrap;font-size:12px}

.mm-term-credit-total{display:block;margin-top:4px;color:#56749a;font-size:10px;line-height:1.5}.study-saved-summary{flex-wrap:wrap}.study-saved-gaps{flex-basis:100%;border-top:1px solid #dbe5f4;padding-top:10px;font-size:12px;line-height:1.8}.study-saved-gaps summary{cursor:pointer;color:#315d9a}.study-saved-gaps p{margin:7px 0}
