/* Real-account adapters for the retained Beta planner and learning UI.
   The planner, profile, records and mobile layouts use their original selectors. */
.p3-root{min-width:0}
.p3-root .mm-card-main{text-decoration:none;color:inherit}
.p3-root .mm-unit-detail{text-decoration:none;color:inherit}
.p3-root .p3-course{padding:0;cursor:default}
.p3-root .p3-course .mm-card-name{min-width:0}
.p3-save-status{display:inline-flex;align-items:center;gap:4px}
.p3-save-status .ux-icon{width:15px;height:15px}
.p3-root .p3-result-chip{position:absolute;right:9px;bottom:8px;z-index:2;border:1px solid #c8d9f0;background:#f2f7ff;border-radius:6px;padding:4px 7px;font-size:11px;color:#416389}
.p3-root .mm-card:has(.p3-result-chip) .mm-card-main{padding-bottom:40px}
.p3-dragging{opacity:.5}
.p3-root .mm-menu[popover]{max-height:calc(100dvh - 24px)}
.p3-root .mm-menu-item{justify-content:flex-start}
.p3-root .mm-menu-label{display:flex;align-items:center;gap:7px}
.p3-root .mm-menu-label .ux-icon,.p3-root .mm-menu-item>.ux-icon{width:16px;height:16px;flex-shrink:0}
.p3-root .mm-unit-menu-target small{display:block;font-size:10px;color:#8a9ab0}
.p3-root .mm-menu-item[data-variant=destructive]{color:#ba4f50}
.p3-root .mm-unit-plus[disabled]{opacity:.35;cursor:default}
.p3-root .p3-filter-option{border:1px solid #dde5f0;background:#f3f6fa;border-radius:6px;padding:6px 10px;min-height:32px;font-size:12px;color:#4e6686}
.p3-root .p3-filter-option.is-selected{background:#0058fc;border-color:#0058fc;color:#fff}
.p3-filter-chip{display:inline-flex;align-items:center;gap:3px;background:#eaf2ff;border:0;border-radius:4px;font-size:10px;padding:3px 6px;color:#37638f;margin:0 4px 5px 0}
.p3-filter-chip .ux-icon{width:11px;height:11px}
.p3-filter-clear,.p3-text-button{padding:3px;border:0;background:transparent;color:#6f8fb4;font-size:12px}
.p3-root #p3-finder-area{width:100%;padding:7px;border:1px solid #dbe4ef;border-radius:6px;background:white;font-size:12px}
.p3-pending,.p3-note{padding:16px 20px;border:1px solid #e8d8b6;background:#fffaf0;border-radius:12px;margin:16px 0;color:#7d6741;font-size:13px;line-height:1.8}
.p3-pending{background:#fff4f1;border-color:#e8c5bf;color:#965b51}
.p3-pending button,.p3-note button{margin:8px 8px 0 0}
.p3-form-error{color:#bd4b4b;font-size:13px;line-height:1.8;white-space:pre-line;margin:12px 0}
.p3-form-error:empty{display:none}
.p3-dialog{width:720px;max-width:calc(100vw - 30px);max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:#fff;box-shadow:0 20px 90px #12254635;overflow:auto}
.p3-dialog::backdrop{background:#12264355;backdrop-filter:blur(2px)}
.p3-plan-confirmation>.p3-dialog-head{padding:20px 24px 0}
.p3-plan-confirmation>.p3-dialog-head>h2{margin:0}
.p3-plan-confirmation>.p3-dialog-body{padding:0 24px 20px}
.p3-plan-confirmation>.p3-dialog-body>p{margin:12px 0 0}
/* Compact shared confirmation: consistent spacing without changing its actions. */
#p2-confirmation.p3-dialog{width:460px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);border-radius:14px}
#p2-confirmation>.p3-dialog-head{padding:24px 24px 0}
#p2-confirmation>.p3-dialog-head>h2{margin:0;color:var(--ink);font-size:20px;font-weight:600;line-height:1.45;letter-spacing:0}
#p2-confirmation>.p3-dialog-body{padding:12px 24px 24px}
#p2-confirmation>.p3-dialog-body>p{margin:0;color:#68778d;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
#p2-confirmation .p3-dialog-actions{justify-content:flex-end;gap:10px;margin-top:24px}
#p2-confirmation .p3-dialog-actions>button{min-width:76px;min-height:40px;padding:9px 16px;border-radius:8px;font-size:14px;font-weight:500;line-height:20px}
#p2-confirmation .p3-dialog-actions>button.primary{font-weight:600}
.study-flow-footer>.p3-fill-progress{font-size:13px;margin:0 12px;color:var(--ink)}
.p3-dialog .dialog-head{position:sticky;top:0;z-index:3;background:#fff}
.p3-dialog .dialog-head h2{display:flex;align-items:center;gap:8px}
.p3-dialog .dialog-head>.close{flex-shrink:0}
.p3-dialog .close .ux-icon{width:20px;height:20px}
.p3-dialog label:not(.choice-check):not(.p3-checkbox){display:flex;flex-direction:column;gap:7px;margin:0 0 16px;font-size:13px;color:#365474}
.p3-dialog input:not([type=checkbox]):not([type=radio]),.p3-dialog select,.p3-dialog textarea{width:100%;min-width:0;border:1px solid #d8e4f3;border-radius:8px;background:#fff;padding:10px 12px;font:inherit;color:#365474;box-sizing:border-box}
.p3-dialog input:focus,.p3-dialog select:focus,.p3-dialog textarea:focus{outline:2px solid #0058fc44;outline-offset:1px}
.p3-dialog input[type=checkbox],.p3-dialog input[type=radio]{flex:0 0 16px;width:16px;height:16px;appearance:auto;margin:0}
.p3-dialog .choice-check,.p3-dialog .p3-checkbox{display:flex;flex-direction:row;align-items:flex-start;gap:8px;font-size:12px;line-height:1.8;margin:13px 0;color:#617791}
.p3-dialog .two,.p3-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px}
.p3-dialog .two>label,.p3-form-grid>label{min-width:0}
.p3-dialog .two[hidden],.p3-dialog [hidden],.p3-root [hidden]{display:none!important}
.p3-dialog form>p,.p3-dialog-body>p{font-size:13px;line-height:1.8;color:#768aa5}
.p3-dialog form+form{border-top:1px solid #e1e8f3;padding-top:22px;margin-top:22px}
.p3-dialog-actions,.p3-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.p3-dialog-actions>button,.p3-dialog .learning-actions>button{min-height:38px;padding:8px 16px}
.p3-dialog-actions>button .ux-icon{width:16px;height:16px}
.p3-dialog .learning-actions{margin-top:20px}
.p3-dialog .learning-optional,.p3-dialog .learning-scope,.p3-result-options{border-top:1px solid #e5edf6;padding-top:12px;margin-top:16px}
.p3-dialog .learning-optional>summary,.p3-dialog .learning-scope>summary,.p3-result-options>summary{font-size:12px;color:#69829f;cursor:pointer;line-height:1.8;margin-bottom:12px}
.p3-dialog .learning-optional>summary>.ux-icon,.p3-dialog .learning-course-details>summary>.ux-icon{width:15px;height:15px;vertical-align:middle;margin-right:5px}
.p3-dialog .learning-course-details{margin:16px 0;border:1px solid #e2eaf5;border-radius:9px;overflow:hidden}
.p3-dialog .learning-course-details>summary{display:flex;align-items:center;gap:6px;padding:12px 14px;background:#f8faff;color:#567396;font-size:13px;cursor:pointer}
.p3-dialog .learning-course-details>summary>span{margin-left:auto;font-size:11px;color:#8a9db5}
.p3-dialog .learning-course-body{padding:14px}
.p3-dialog .learning-picked{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.p3-dialog .learning-picked button{display:flex;gap:4px;align-items:center;padding:5px 8px;background:#edf4ff;border:1px solid #d1e1f8;border-radius:6px;font-size:11px}
.p3-dialog .learning-picked button .ux-icon{width:12px;height:12px}
#p3-credit-search-results{display:grid;gap:5px;margin-top:10px}
#p3-credit-search-results button{display:flex;align-items:center;gap:6px;justify-content:flex-start;text-align:left;padding:8px 10px;font-size:12px;border:1px solid #e3eaf4;border-radius:7px;background:#fff;color:#527295}
#p3-credit-search-results button b{font-size:11px;white-space:nowrap}
#p3-credit-search-results button small{margin-left:auto;white-space:nowrap;font-size:10px}
.p3-dialog .footnote,.p3-muted{font-size:12px;line-height:1.8;color:#8698af}
.p3-dialog .learning-inline-note{display:flex;gap:6px;align-items:center;border-radius:8px;background:#f3f7fd;padding:10px 12px;font-size:12px}
.p3-dialog .learning-inline-note.is-pending{background:#fff9ed;color:#a07c3e}
.p3-dialog .learning-inline-note .ux-icon{width:17px;height:17px;flex-shrink:0}
.p3-dialog .learning-calculation{font-size:12px;line-height:1.8;color:#7891ad}
.p3-dialog .sp-edit-form{padding:0}
.p3-dialog .sp-edit-form .sp-edit-optional{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.p3-record-entry{min-width:0}
.p3-record-inline{position:static;box-sizing:border-box;width:100%;max-width:none;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible;background:transparent;padding:0}
.p3-record-inline .p3-dialog-head{position:static;padding:0 0 12px;border:0;background:transparent}
.p3-record-inline .p3-dialog-head h2{font-size:17px;margin:0}
.p3-record-inline .p3-dialog-body{padding:0}
.p3-record-inline.p3-new-entry .p3-dialog-head>.close{display:none}
.p3-root .learning-list article{min-width:0}
.p3-root .learning-list article>div:first-child{min-width:0;overflow-wrap:anywhere}
.p3-preview{padding:18px;border:1px solid #d7e4f6;border-radius:10px;background:#f7faff;line-height:1.8}
.p3-preview h3{font-size:16px;margin:0 0 12px}
.p3-preview p{font-size:13px;color:#6f86a3}
.p3-preview .p3-dialog-actions{justify-content:flex-end}
.p3-audit-item{padding:16px 0;border-bottom:1px solid #e2eaf4;font-size:13px;line-height:1.8}
.p3-audit-item p{margin:7px 0;color:#7890ac}
.p3-audit-item.p3-error>strong{color:#b6554d}
.p3-audit-item.p3-warning>strong{color:#ac813a}
.p3-modal-open{overflow:hidden}
.p3-table-scroll{overflow:auto;max-width:100%}
.p3-table-scroll table{width:100%;font-size:12px;border-collapse:collapse}
.p3-table-scroll td,.p3-table-scroll th{padding:9px;text-align:left;border-bottom:1px solid #e1e9f4}
.p3-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}
.p3-metrics>div{background:#f6f9fd;border-radius:10px;padding:14px}
.p3-metrics span{display:block;font-size:12px;color:#8293aa}
.p3-metrics strong{display:block;font-size:24px;margin-top:8px;color:#31537b}
.p3-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.p3-checkbox-row{display:flex;gap:18px;flex-wrap:wrap}
.p3-checkbox-row label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px}
.p3-search-result{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid #e1e9f3;padding:16px 0;font-size:13px}
.p3-search-result p,.p3-search-result a{font-size:12px;line-height:1.8}
@media(max-width:999px){.p3-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.p3-dialog .dialog-head{padding:18px}.p3-dialog .plan-dialog-body{padding:18px}.p3-record-inline .dialog-head,.p3-record-inline .plan-dialog-body{padding:0}.p3-dialog .p3-form-grid{grid-template-columns:1fr}.p3-root .mm-menu[popover]{max-height:calc(100dvh - 24px)}.p3-root .p3-result-chip{min-height:32px;right:10px;bottom:10px;padding:5px 8px}}
@media(max-width:480px){.p3-dialog .two,.p3-dialog .sp-edit-form .sp-edit-optional{grid-template-columns:1fr}.p3-dialog .p3-dialog-actions{gap:8px}.p3-dialog .p3-dialog-actions>button{flex:1}.p3-metrics{gap:6px}.p3-metrics>div{padding:10px}.p3-metrics strong{font-size:20px}}
@media print{.p3-pending,.p3-result-chip,.p3-dialog,.p3-finder-sidebar,.mobile-plan-shortcuts,.mobile-finder-backdrop{display:none!important}.p3-root .workspace-layout{display:block}.p3-root .mm-card-main{text-decoration:none}.p3-root .mm-card:has(.p3-result-chip) .mm-card-main{padding-bottom:12px}}

/* P4 previews remain separate from saved academic facts. */
.p4-recommendation{border:2px solid #8ab3f7;background:#f4f8ff;padding:22px;border-radius:14px;margin:20px 0;color:#355374;scroll-margin-top:20px}.p4-recommendation h2{font-size:19px;margin:0}.p4-recommendation p,.p4-recommendation li{font-size:13px;line-height:1.85}.p4-recommendation summary{font-size:14px;font-weight:600;cursor:pointer;margin-top:18px}.p4-suggestion{border-top:1px solid #d9e4f5;padding:14px 0;font-size:13px}.p4-suggestion a{margin-right:14px}.p4-suggestion button{font-size:12px!important;padding:6px 10px!important}.p3-dialog fieldset{border:1px solid #dce6f4;border-radius:10px;padding:16px;margin:0 0 18px}.p3-dialog legend{font-size:13px;padding:0 6px}.p3-dialog [hidden]{display:none!important}.p3-dialog .p3-checkbox{font-weight:400;line-height:1.7}.p4-graph-open{overflow:hidden}.p4-graph-dialog{padding:0;width:min(1300px,calc(100vw - 40px));max-width:calc(100vw - 40px);height:min(850px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);border:1px solid #dbe5f3;border-radius:12px;color:#355374;background:#fff;box-sizing:border-box;overflow:hidden;margin:auto}.p4-graph-dialog[open]{display:flex;flex-direction:column}.p4-graph-dialog::backdrop{background:#1b304f70}.p4-graph-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #dce5f3;flex:0 0 auto}.p4-graph-head h2{margin:0 auto 0 0;font-size:18px;min-width:0;overflow-wrap:anywhere}.p4-graph-dialog button{font:inherit;color:#345272;background:#fff;border:1px solid #dbe5f3;border-radius:8px;padding:8px 12px;cursor:pointer}.p4-graph-toolbar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:12px 20px;flex:0 0 auto}.p4-graph-toolbar label{display:flex;gap:8px;align-items:center;font-size:12px}.p4-graph-toolbar select{max-width:260px;border:1px solid #dbe5f3;padding:8px;border-radius:7px;color:#355374}.p4-graph-dialog #p4-graph-summary{font-size:11px;line-height:1.7;margin:0;padding:0 20px 12px;flex:0 0 auto}.p4-graph-dialog #course-map{flex:1 1 auto;min-height:0;height:auto}.p4-graph-dialog.is-fullscreen{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.p4-logic-node{display:flex;align-items:center;justify-content:center;gap:16px;border:2px solid #6e96cd;border-radius:14px;padding:16px;background:#edf4ff;min-height:74px;max-width:260px;box-sizing:border-box;color:#345777}.p4-logic-node strong{font-size:20px}.p4-logic-node span{font-size:12px;line-height:1.65;overflow-wrap:anywhere;max-height:96px;overflow:auto}.p4-logic-node.is-unknown{border-style:dashed;border-color:#c9a35d;background:#fff9ec;color:#8a6b32}.p4-graph-dialog .react-flow__node{font-family:inherit}.p4-graph-dialog .mm-map-focused{background:#fff;border:1px solid #dbe5f3;border-radius:10px;padding:16px;position:absolute;right:12px;top:12px;width:min(300px,calc(100% - 24px));z-index:20;box-sizing:border-box}.p4-graph-dialog .mm-map-focused .flex{display:flex;gap:8px}.p4-graph-dialog .mm-map-focused .flex-col{flex-direction:column}.p4-graph-dialog .mm-map-focused .flex-1{flex:1}.p4-graph-dialog .mm-map-focused .min-w-0{min-width:0}.p4-graph-dialog .mm-map-focused .text-sm{font-size:13px}.p4-graph-dialog .mm-map-focused strong{font-size:15px}.p4-graph-dialog .mm-map-focused .mm-map-close{padding:4px}.p4-graph-dialog .mm-map-focused .mm-map-details{margin-top:14px;color:#fff;background:#0058fc;font-size:12px;display:flex;gap:6px;align-items:center;justify-content:center;width:100%}
@media(max-width:600px){.p4-recommendation{padding:16px}.p4-recommendation h2{font-size:17px}.p4-recommendation .p3-actions{gap:7px}.p4-recommendation button{font-size:12px;padding:8px 10px}.p4-graph-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.p4-graph-head{padding:12px;gap:6px}.p4-graph-head h2{font-size:15px}.p4-graph-head button{padding:7px;font-size:11px;white-space:nowrap}.p4-graph-toolbar{padding:12px;gap:10px}.p4-graph-toolbar label{font-size:11px}.p4-graph-toolbar select{max-width:210px}.p4-graph-dialog #p4-graph-summary{padding:0 12px 10px;font-size:10px}.p4-graph-dialog .mm-map-focused{max-height:62%}.p4-graph-dialog .mm-map-hint{max-width:calc(100% - 65px)}}
@media print{.p4-recommendation,.p4-graph-dialog{display:none!important}}
.p4-graph-dialog.monmap-course-map #course-map{min-height:0;height:auto;flex:1 1 auto}
.p4-graph-toolbar label{width:auto;white-space:nowrap;margin:0;flex:0 1 auto}.p4-graph-toolbar select{width:auto;min-width:0}.p4-graph-toolbar input[type=checkbox]{width:16px;height:16px;flex:0 0 16px}
.p4-added-badge{font-size:10px;font-weight:600;color:#0058fc;background:#edf4ff;border:1px solid #bcd5fa;border-radius:5px;padding:2px 5px}.p4-course-suggested{border-color:#79a6ed!important;box-shadow:0 0 0 1px #bdd4f8!important}.p4-graph-dialog #course-map[hidden]{display:none}.p4-graph-dialog #p4-graph-fallback,.p4-map-failure{overflow:auto;padding:20px;font-size:13px;line-height:1.85;min-height:0}.p4-map-failure{height:100%;box-sizing:border-box;background:#fff}.p4-graph-dialog #p4-graph-fallback a{color:#0058fc}.p4-map-failure li button{margin:4px 10px}.p4-graph-dialog #p4-graph-fallback>button{margin:4px 8px 8px 0}


/* Original dialog rules, mapped to real-account dialog instances. */
.p3-semester-dialog{width:760px;max-height:90svh;overflow:auto}
@media print{.p3-semester-dialog{display:none!important}}
.p3-study-dialog{width:760px;max-height:90svh;overflow:auto}
.p3-study-dialog .dialog-head h2{font-size:20px;margin:0 0 5px}
.p3-study-dialog .dialog-head small{font-size:12px;color:#76859a;line-height:1.7}
@media (max-width:600px){.p3-study-dialog .dialog-head h2{font-size:18px}}
@media print{.p3-study-dialog{display:none!important}}
.p3-semester-dialog{width:720px;overflow:hidden;border-color:#dce5f2}
.p3-semester-dialog[open]{display:flex;flex-direction:column}
.p3-semester-dialog .dialog-head{flex-shrink:0}
.p3-semester-dialog .smart-planning-body{overflow:auto;min-height:0}
.p3-semester-dialog .dialog-head{padding:20px 28px;background:#f7f9fc}
.p3-semester-dialog .dialog-head h2{margin:0;font-size:20px}
.p3-semester-dialog .dialog-head h2>.c-icon{--icon-size:30px!important}
.p3-semester-dialog .smart-planning-body label:not(.choice-check):not(.p3-checkbox){display:block;gap:normal;font-size:12px;line-height:1.65;color:inherit;margin:0 0 16px}
.p3-semester-dialog .smart-planning-body .choice-check{display:flex;align-items:flex-start;gap:9px;line-height:1.7;margin:12px 0;font-size:12px}
.p3-semester-dialog .smart-field-note{font-size:11px;line-height:1.7;color:var(--muted);margin:-7px 0 16px}
.p3-semester-dialog .smart-context{padding:12px 15px;margin-bottom:22px}
.p3-semester-dialog .smart-context small{display:block;font-size:11px;color:#78879c}
.p3-semester-dialog .choice-more{margin:0;border-bottom:0;padding:14px 0}
.p3-semester-dialog .choice-more>summary{display:flex;align-items:baseline;gap:10px;list-style:none;font-size:13px;font-weight:600;color:#334d70}
.p3-semester-dialog .choice-more>summary::before{content:'›';font-size:18px;line-height:1;transition:transform .15s}
.p3-semester-dialog .choice-more[open]>summary::before{transform:rotate(90deg)}
.p3-semester-dialog .choice-more>summary>span{font-size:11px;font-weight:400;color:#7a89a0}
.p3-semester-dialog .choice-preferences>.two{margin-top:18px}
.p3-semester-dialog .choice-assessment-note{margin:8px 0;color:#78879c}
.p3-semester-dialog .choice-inline-help{font-size:11px;color:#78879c;margin:6px 0;line-height:1.7}
.p3-semester-dialog .choice-permission-list{padding:10px 16px 14px;margin:4px 0 20px}
.p3-semester-dialog .choice-permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 20px}
.p3-semester-dialog .choice-permission-grid .choice-check{margin:7px 0}
.p3-semester-dialog .choice-permission-list>small{display:block;margin-top:9px;padding-top:9px;border-top:1px dashed #dce4ef}
.p3-semester-dialog .choice-help{font-size:11px;color:#7b899c;border-top:1px solid #e2e8f0;padding:13px 0 0}
.p3-semester-dialog .choice-help summary{cursor:pointer;width:fit-content}
.p3-semester-dialog .choice-help p{font-size:11px;line-height:1.8;margin:9px 0 0}
.p3-semester-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}
.p3-semester-dialog .choice-form-actions>span{font-size:11px;color:#7b899c}
.p3-semester-dialog .choice-form-actions .primary{width:auto;min-width:180px;min-height:44px;font-size:13px}
.p3-semester-dialog .choice-form-actions .choice-back{min-height:44px;padding:8px 15px;font-size:13px;background:#fff;border:1px solid #d6e0ed;color:#45617f}
.p3-semester-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}
.p3-semester-dialog .choice-guidance p{font-size:12px;margin:3px 0 0}
.p3-study-dialog[data-kind='chooser']{width:580px}
.p3-study-dialog[data-kind='chooser'] .dialog-head{padding:22px 28px}
.p3-study-dialog[data-kind='chooser'] .study-dialog-body{padding:22px 28px}
.p3-study-dialog .study-task-card{position:relative;padding:17px 46px 17px 19px;gap:5px}
.p3-study-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}
.p3-study-dialog .study-task-card:focus-visible{outline:2px solid #2f66d9;outline-offset:3px}
.p3-study-dialog .study-chooser-foot{margin-top:16px}
.p3-study-dialog[data-kind='wizard']{width:600px;max-height:calc(100vh - 64px)}
.p3-study-dialog .dialog-head{background:#fff;padding:22px 28px}
.p3-study-dialog .dialog-head h2{font-size:21px;line-height:1.45}
.p3-study-dialog .study-dialog-body{padding:22px 28px 16px}
.p3-study-dialog .study-dialog-body:has(.study-entry-options){padding-bottom:28px}
.p3-study-dialog .dialog-head h2,.p3-semester-dialog .dialog-head h2{display:flex;align-items:center;gap:10px;font-size:21px;line-height:1.5}
.p3-study-dialog .dialog-head h2>.ux-icon,.p3-semester-dialog .dialog-head h2>.ux-icon{color:#1765dc;width:23px;height:23px}
.p3-study-dialog .study-dialog-body{padding:22px 28px 24px}
.p3-semester-dialog .choice-form-actions .primary{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:auto;min-height:var(--control-action-height);padding:10px 18px;
  border-radius:8px;font-size:15px;line-height:22px;font-weight:600;
}
.p3-semester-dialog input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),.p3-semester-dialog select:not([multiple]),.p3-study-dialog input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),.p3-study-dialog select:not([multiple]){
  box-sizing:border-box;height:var(--field-height);min-height:var(--field-height);
  padding-block:var(--field-padding-block);font-size:var(--field-font-size);line-height:var(--field-line-height);
}
.p3-semester-dialog textarea{
  box-sizing:border-box;padding-block:10px;font-size:14px;line-height:22px;
}
.p3-study-dialog[open],.p3-semester-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.p3-study-dialog .study-dialog-body,.p3-semester-dialog .smart-planning-body{overflow:auto;min-height:0;flex:1 1 auto}
.p3-study-dialog>.dialog-head,.p3-semester-dialog>.dialog-head,.p3-study-dialog>.study-flow-footer,.p3-semester-dialog>.choice-form-actions{flex-shrink:0}

.p3-study-dialog .personal-goals>summary,.p3-semester-dialog .personal-goals>summary{margin:0;font-size:14px}
.p3-dialog .personal-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#p3-planning-exclude-results{max-height:180px;overflow:auto;display:grid;gap:3px}
#p3-planning-exclude-results button{text-align:left;border:0;background:#f3f6fb;padding:9px;font-size:12px;line-height:1.5;white-space:normal}
#p3-planning-excluded button{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:4px 9px;background:#eef3fb;border-color:#dce5f0;border-radius:6px}
#p3-planning-excluded button .ux-icon{width:13px;height:13px}
.p3-root .choice-item-actions a{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:7px 10px;border:1px solid #dce5ef;border-radius:6px;text-decoration:none}
.p3-root .choice-item-actions a .ux-icon{width:14px;height:14px}
@media(max-width:600px){.p3-dialog .personal-two{grid-template-columns:1fr}.p3-study-dialog .study-dialog-body{padding:20px 18px}.p3-semester-dialog .smart-planning-body{padding:20px}.p3-semester-dialog .smart-planning-body .two{gap:0}.p3-study-dialog>.study-flow-footer{padding:16px 18px;gap:10px}.p3-study-dialog .dialog-head h2{font-size:18px}}

/* Retained quick-credit dialog layout. */
#p3-dialog[data-mode="credit"]{width:570px;max-width:calc(100vw - 40px);max-height:80vh;border-radius:12px}
#p3-dialog[data-mode="credit"] .dialog-head{padding:21px 24px 0;border:0;background:#fff;align-items:flex-start}
#p3-dialog[data-mode="credit"] .dialog-head h2{font-size:17px;line-height:1.4;font-weight:600}
#p3-dialog[data-mode="credit"] .dialog-head h2 small{margin-top:3px;font-size:12px;color:#868686}
#p3-dialog[data-mode="credit"] .dialog-head .close{width:28px;min-width:28px;height:28px;min-height:28px;padding:0;line-height:1;background:#f3f3f0;border:0;border-radius:5px;color:#777;font-size:20px}
#p3-dialog[data-mode="credit"] .plan-dialog-body{padding:13px 24px 24px;color:#333;line-height:1.65}
@media screen and (max-width:999px){#p3-dialog[data-mode="credit"] { max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); }}
#p3-dialog[data-mode="credit"] .dialog-head h2{display:block}
#p3-dialog[data-mode="credit"] .planner-credit-fields label{display:block;margin:0;font-size:11px;line-height:1.5}
#p3-dialog[data-mode="credit"] .planner-credit-fields input{height:32px;margin-top:5px;padding:5px 8px;border:1px solid #d5d5d5;border-radius:5px;font-size:12px;line-height:20px}
#p3-dialog[data-mode="credit"] .planner-credit-fields label small{display:block}
#p3-dialog[data-mode="credit"] .dialog-head h2 small{display:block}
#p3-dialog[data-mode="credit"] .planner-credit-intro,#p3-dialog[data-mode="credit"] .planner-credit-empty{font-size:12px;line-height:1.65}

/* Original planner condition form selectors. */
.smart-planning-body .p3-semester-dialog #p3-planning-form{padding:0;border:0;box-shadow:none;margin:0;background:transparent}
.p3-semester-dialog #p3-planning-form>.primary{width:100%;margin-top:16px}
.p3-study-dialog #p3-planning-form{padding:0;margin:0;background:transparent;box-shadow:none;border:0}
.p3-study-dialog #p3-planning-form label{font-size:12px;line-height:1.8;margin-bottom:18px}
.p3-study-dialog #p3-planning-form input,.p3-study-dialog #p3-planning-form select{font-size:13px;min-height:44px}
.p3-study-dialog #p3-planning-form .study-start-fields label{margin-top:0}
.p3-study-dialog #p3-planning-form .study-setting label{display:block;max-width:350px;margin:14px 0 0}
.p3-study-dialog .study-flow-lead{font-size:15px;line-height:1.65;color:#354f70}
.p3-study-dialog .study-dialog-title-group h2{display:block}
.p3-study-dialog .study-flow-direction>label{display:block;gap:normal;font-size:12px;line-height:1.8;margin:16px 0 0}

/* Retained course-check and repair dialogs. */
#p3-dialog[data-mode="audit"]{width:700px}
#p3-dialog[data-mode="audit"] .dialog-head{padding:20px 24px;background:#fff}
#p3-dialog[data-mode="audit"] .dialog-head h2{font-size:20px;line-height:1.4}
#p3-dialog[data-mode="audit"] .plan-dialog-body{padding:22px 24px;font-size:14px;line-height:1.7}
#p3-dialog[data-mode="audit"] [hidden]{display:none!important}
#p3-dialog[data-mode="audit-move"]{width:700px}
@media (max-width:600px){#p3-dialog[data-mode="audit"] .dialog-head,#p3-dialog[data-mode="audit"] .plan-dialog-body{padding:18px 16px}}
#p3-dialog[data-mode="audit-repair"]{width:700px}
#p3-dialog[data-mode="audit-repair"] .plan-dialog-body{font-size:14px;line-height:1.8;padding:22px 24px}
@media (max-width:600px){#p3-dialog[data-mode="audit-repair"] .plan-dialog-body{padding:18px 16px}}
.p3-root .monmap-course-map #p3-course-map{height:640px;min-height:480px}
@media(max-width:600px){.p3-root .monmap-course-map #p3-course-map{height:480px;min-height:400px}}
#p3-dialog[data-mode="audit"] .review-primary{display:inline-flex;align-items:center;gap:6px}
#p3-dialog[data-mode="audit"] .review-utilities .ux-icon{width:15px;height:15px}

.p3-record-inline .two[hidden],.p3-record-inline [hidden]{display:none!important}
.p3-record-inline .p3-result-options{margin:0 0 18px;color:#71839d;font-size:12px}.p3-record-inline .p3-result-options>summary{cursor:pointer;font-size:12px}.p3-record-inline .p3-result-options>summary small{display:inline;margin-left:5px;font-size:11px}

/* Original learning confirmation dialog. */
#p3-confirm{width:min(690px,94vw);border:1px solid #dbe4ef;border-radius:16px;padding:0;max-height:88vh;overflow:auto;color:var(--ink);background:#fff}#p3-confirm::backdrop{background:#19324a70;backdrop-filter:blur(3px)}

/* Original personal profile and per-term goal editors. */
.p3-profile-dialog{width:460px;max-width:calc(100vw - 24px);max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:14px;overflow:auto;color:var(--ink);background:#fff}
.p3-profile-dialog .dialog-head{background:#fff;padding:20px 25px}.p3-profile-dialog .dialog-head h2{font-size:17px;font-weight:600;line-height:1.4}

.p3-intent-dialog{width:min(760px,90vw);max-height:90vh;padding:0;border:1px solid #dce3ef;border-radius:14px;color:var(--ink);background:#fff}
.p3-intent-dialog label{font-size:13px;display:flex;flex-direction:column;gap:7px;margin:12px 0}
.p3-intent-dialog input,.p3-intent-dialog select,.p3-intent-dialog textarea{width:100%;box-sizing:border-box;min-width:0}
.p3-intent-dialog input,.p3-intent-dialog select{height:var(--field-height);min-height:var(--field-height);padding-block:var(--field-padding-block);font-size:14px;line-height:var(--field-line-height)}
.p3-intent-dialog textarea{font-family:inherit;resize:vertical;padding-block:10px;font-size:14px;line-height:22px}
.p3-intent-dialog .personal-editor-body{padding:20px 25px 22px;max-height:72vh}
.p3-intent-dialog .personal-editor-body>form>.personal-muted:first-of-type{font-size:12px;margin:0 0 19px;color:#8a9aaf}
.p3-intent-dialog .personal-actions{border-top:1px solid #e7edf5;margin-top:20px;padding-top:17px;align-items:center}
.p3-intent-dialog .personal-actions>button{font-size:12px;min-height:40px;min-width:66px}
.p3-intent-dialog .personal-actions>button:not(.primary){border:0;padding-left:0;color:#94a4b9;background:transparent;text-align:left}
.p3-intent-dialog [hidden]{display:none!important}
/* Preserve the original plan-name dialog fields, including the mobile baseline. */
.p3-plan-dialog input,.p3-plan-dialog select{font-size:14px;line-height:22px;padding:10px 12px}
@media print{body:has(.p3-root) .mobile-bottom-nav{display:none!important}}
