/* Shared Persian interface, using the font files bundled with this project. */
body:has(#app-shell.hidden)>.skip-link{display:none}
.likert label{position:relative}.likert input[type=radio]{inset:0;width:100%;height:100%;min-height:0;min-width:0;margin:0}.likert label:focus-within{outline:3px solid #bd7b18;outline-offset:3px}.interest-scale{font-size:.83rem;color:#395b51;background:#edf4e8;border-radius:12px;padding:12px 18px}
@font-face{font-family:Rahnama;src:url('fonts/IRANSansXFaNum-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Rahnama;src:url('fonts/IRANSansXFaNum-Bold.ttf') format('truetype');font-weight:600 900;font-style:normal;font-display:swap}
:root{--navy-950:#142c32;--navy-900:#21434a;--blue-600:#096f69;--blue-700:#075b56;--blue-50:#edf7f4;--cyan-500:#76c9ae;--canvas:#f5f6f3;--slate-950:#203b42;--slate-600:#4c6268;--slate-500:#5c7076;--slate-200:#dce5e2;--shadow:0 6px 24px #163c3010;--radius:18px}
html{font-size:16px;scroll-padding-top:24px}body,input,select,textarea,button{font-family:Rahnama,Tahoma,sans-serif}body{line-height:1.9}button,input,select,textarea{font-size:.94rem}h1,h2,h3,p{overflow-wrap:anywhere}h1,h2,h3{letter-spacing:0;line-height:1.65}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #bd7b18;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}input:not([type=checkbox]):not([type=radio]):not([type=range]),select{min-height:48px;border-radius:10px}input::placeholder,textarea::placeholder{color:#65787d;opacity:1}input[type=checkbox]{accent-color:var(--blue-600)}input[type=number],input[type=tel]{font-variant-numeric:tabular-nums}.btn{min-height:44px;border-radius:10px;font-size:.88rem;font-weight:700;padding:9px 17px;white-space:normal}.btn-primary{background:var(--blue-600);border-color:var(--blue-600);box-shadow:none}.btn-primary:hover{background:var(--blue-700)}.btn-secondary{color:var(--navy-950);border-color:var(--slate-200);background:white}.btn-ghost{color:var(--blue-700)}.eyebrow{color:var(--blue-600);font-size:.76rem;font-weight:700;letter-spacing:0}.muted,.fine-print,.field-help{color:var(--slate-500)}.field-help,.fine-print{font-size:.84rem;line-height:1.95}.saved-note{font-size:.85rem}.hidden,[hidden]{display:none!important}
.skip-link{position:fixed;top:-100px;right:20px;z-index:200;background:#fff;padding:12px 22px;border:2px solid var(--blue-600);border-radius:12px}.skip-link:focus{top:12px}.network-status{background:#fff2d9;color:#664a1e;padding:10px 20px;text-align:center;font-size:.9rem}.nav-backdrop{display:none}
/* Authentication: calm, readable, and clear about the next step. */
.auth-shell{grid-template-columns:minmax(380px,1fr) minmax(400px,1.1fr);background:#163d41}.auth-panel{padding:clamp(32px,6vw,96px);align-items:flex-start;text-align:right}.brand-mark{background:#0d716c;border-radius:18px;box-shadow:none;font-size:2.3rem;font-weight:700}.auth-panel h1{font-size:2.9rem;color:#173c40;margin:8px 0}.auth-panel .muted{font-size:1rem;margin-bottom:28px}.auth-panel .stack{width:100%;max-width:410px;gap:13px}.auth-panel .stack .btn-primary{min-height:52px}.auth-panel input{text-align:center;direction:ltr;font-size:1.15rem;letter-spacing:1px}.auth-note{max-width:410px;font-size:.78rem;line-height:2;background:#f4f6f3;border-radius:10px;padding:13px;margin-top:25px}.auth-context{position:relative;overflow:hidden;background:radial-gradient(ellipse at 0 0,#35796d80,transparent 65%),#173f43;padding:clamp(32px,6vw,90px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:right}.auth-context:before,.auth-context:after{content:'';position:absolute;border:1px solid #ffffff12;width:520px;height:520px;border-radius:50%;left:-260px;bottom:-270px;pointer-events:none}.auth-context:after{width:700px;height:700px;left:-350px;bottom:-360px}.auth-context h2{font-size:clamp(1.7rem,2.7vw,2.7rem);line-height:1.8;max-width:550px;margin:22px 0 18px;color:#fff}.auth-context p{color:#d4e9e3;font-size:1rem;line-height:2.1;max-width:460px}.auth-kicker{color:#b8e2cc;border:1px solid #ffffff35;border-radius:99px;padding:5px 16px;font-size:.8rem}.auth-route{display:grid;gap:15px;margin-top:24px;width:100%;max-width:440px}.auth-route div{display:flex;align-items:center;gap:18px;color:#eef8f4;padding:12px 0;border-bottom:1px solid #ffffff20}.auth-route b{width:34px;height:34px;display:grid;place-items:center;background:#ffffff13;border-radius:50%;color:#bee6cf}.auth-route span{font-size:.94rem}.auth-route small{display:block;color:#bbd4cd;font-size:.78rem}.auth-footer{color:#b6d3c9;margin-top:34px;font-size:.78rem}.auth-error{border-right:3px solid #b45309;color:#873818;padding:10px 14px;background:#fff4e8;border-radius:8px;max-width:410px;width:100%}.dev-code{font-size:.9rem;direction:rtl}.auth-trust{margin:24px 0 0;max-width:410px;color:#607770;font-size:.8rem}.auth-trust span{color:var(--blue-600);padding-left:5px}.otp-sent{font-size:.87rem;color:var(--slate-600);margin:0;overflow-wrap:anywhere}
/* Navigation and the four core stages. */
.app-shell{grid-template-columns:254px minmax(0,1fr)}.sidebar{background:#17383e;padding:24px 16px 18px;gap:0}.brand-row{padding:0 8px 22px;margin-bottom:10px;border-bottom:1px solid #ffffff18}.brand-row strong{font-size:1.24rem}.brand-row span{font-size:.7rem;color:#b6cecb}.brand-mark.small{width:43px;height:43px;border-radius:13px;background:#ecf6ee;color:#195a53}.sidebar nav{max-height:none;flex:1;min-height:0;padding-left:5px;scrollbar-color:#ffffff30 transparent}.nav-item{min-height:44px;font-weight:400;font-size:.83rem;color:#d1e1dd;border-radius:10px;padding:9px 12px;gap:12px}.nav-item.active{background:#f1f7ef;color:#134e49;box-shadow:none;font-weight:700}.nav-item:hover{background:#ffffff12;color:#fff}.nav-item.active:hover{background:#e5f2e8;color:#134e49}.nav-item span{display:inline-flex;align-items:center;justify-content:center;color:inherit;width:21px;font-size:1.12rem}.nav-item svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item b{color:inherit;background:#ffffff13;font-size:.73rem;min-width:22px;text-align:center}.nav-item.active b{background:#dceee0}.nav-group-label{color:#9bbab3;font-size:.68rem;padding:17px 13px 5px;margin:0}.sidebar-foot{margin-top:14px;padding-top:12px;border-top:1px solid #ffffff18}.sidebar-foot .btn{color:#d6e6df;min-height:42px}.data-badge{font-size:.7rem;color:#d0e0d9;margin-bottom:8px}.workspace{min-width:0;padding:0 clamp(18px,3vw,46px) 40px}.topbar{height:94px;border-bottom:1px solid var(--slate-200);margin-bottom:26px;gap:15px}.topbar h1{font-size:1.45rem}.user-chip{background:transparent;border:0;gap:10px;padding:0}.user-chip>span{background:#e1eee6;color:#1b6253;border-radius:50%;width:42px;height:42px}.user-chip strong{font-size:.85rem}.user-chip small{font-size:.73rem}.icon-btn{border:1px solid var(--slate-200);background:white;color:#174c47;border-radius:10px;min-width:44px;min-height:44px}.portal-track-bar{box-shadow:none;padding:13px 18px;border-radius:12px;gap:14px}.portal-track-bar label{font-size:.84rem;white-space:nowrap}.portal-track-bar select{min-height:42px!important;min-width:155px;background:#f5f8f4}.portal-track-bar span{font-size:.77rem;line-height:1.9}.portal-track-bar .btn{font-size:.77rem}.journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:1500px;margin:0 auto 26px}.journey button{display:flex;align-items:center;gap:10px;min-height:58px;padding:11px 14px;background:transparent;border:1px solid transparent;border-radius:12px;color:#536e70;text-align:right;font-size:.86rem}.journey button b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #cbd8d2;font-size:.8rem;flex-shrink:0}.journey button[aria-current=step]{background:#e5efe5;color:#1a5449;border-color:#d3e4d4;font-weight:700}.journey button[aria-current=step] b{background:#1b6556;color:white;border-color:#1b6556}.journey .done b{background:#d9eadd;border-color:#d9eadd;color:#1b6556}.journey button:hover{border-color:#a7c5b9}.welcome-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:28px 32px;margin-bottom:24px;background:#e8f0e5;border:1px solid #d9e5d3;border-radius:20px}.welcome-panel h2{font-size:1.5rem;margin:5px 0}.welcome-panel p{margin:0;color:#4c685d;font-size:.9rem;max-width:580px}.welcome-panel .btn{flex-shrink:0;min-width:170px}.welcome-panel .eyebrow{color:#527752}.panel{border-radius:16px;box-shadow:none;padding:24px}.section-intro{gap:16px;align-items:center;margin-bottom:20px}.section-intro h2{font-size:1.28rem}.section-intro p{font-size:.87rem;color:#506970;max-width:790px;line-height:1.95}.metric-grid{gap:16px;margin-bottom:24px}.metric-card{padding:20px;border-radius:16px;box-shadow:none}.metric-card>span{font-size:.8rem;color:#536e70}.metric-card small{font-size:.75rem;color:#5c7476}.metric-card strong{font-size:1.8rem;line-height:1.9}.metric-accent{background:#214d48}.metric-accent>span,.metric-accent small{color:#d3e6de}.metric-accent:before{background:#b5d8a7}.metric-card:before{display:none}.dashboard-grid{gap:22px}.panel-head{margin-bottom:18px}.panel-head h2{font-size:1.16rem}.steps li{padding:16px 12px;border-radius:12px}.steps strong{font-size:.96rem}.steps small{font-size:.8rem;line-height:1.8}.steps li>span{background:#edf3e9;color:#32634c}.mini-stat strong{font-size:.91rem}.mini-stat small{font-size:.81rem;line-height:1.9}.pill{font-size:.75rem}.alert{border-radius:12px}.alert p{font-size:.84rem;line-height:1.95}.alert-info{background:#eff6f3;border-color:#d7e6db;color:#30564a}
/* Catalog: search first; full handbook notes stay attached to each option. */
.filter-bar{grid-template-columns:minmax(220px,2fr) 1fr 1fr;gap:16px;padding:22px}.filter-bar label{font-size:.82rem;gap:7px}.filter-bar .search-wide{grid-column:auto}.filter-secondary,.filter-actions,.filter-presets{grid-column:1/-1}.filter-secondary>summary,.filter-presets>summary{cursor:pointer;font-size:.86rem;color:#235e52;font-weight:700;min-height:44px;padding:9px 0}.filter-secondary>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:12px}.filter-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.filter-actions .btn-primary{min-width:155px}.filter-actions small{color:#62776d;font-size:.76rem}.filter-presets{border-top:1px solid #e1e9e1;margin-top:4px}#portal-advanced-filters{background:#f5f8f3;border-color:#dfe8dc;padding:14px 18px}#portal-advanced-filters .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#portal-advanced-filters p{font-size:.8rem}.portal-preset-bar{margin:0;padding-bottom:10px}.portal-filter-preview{margin:0;background:#f1f6ed;border-color:#86aa81;font-size:.78rem;border-radius:6px}.result-meta{flex-wrap:wrap;gap:12px;margin:23px 0 12px;color:#496367;font-size:.81rem}.legend{font-size:.71rem}.portal-catalog-tools{gap:8px;margin:12px 0 18px}.portal-catalog-tools .btn{font-size:.77rem;padding:7px 12px;min-height:42px}.portal-catalog-tools .btn[aria-pressed=true]{background:#e6f0e4;border-color:#7ca58b;color:#164c41}#portal-compare-count{background:#e4eee0;border-radius:99px;padding:0 9px;font-size:.8rem}.program-list{gap:14px}.program-card{grid-template-columns:30px minmax(190px,1.45fr) minmax(125px,1fr) minmax(90px,.65fr) 98px 44px;padding:20px;gap:12px;border-radius:16px;box-shadow:none}.program-card:hover{border-color:#92b5a2;box-shadow:0 4px 14px #143b2c09}.program-card:has(.select-program:checked){border-color:#5f9983;background:#fcfefb;box-shadow:inset -3px 0 #498568}.program-title strong{font-size:1rem;color:#1b3d40;line-height:1.75}.program-title span{font-size:.84rem;line-height:1.9;margin-top:4px}.program-meta{font-size:.79rem;line-height:2}.program-card>.program-meta:nth-of-type(2){display:block}.code-chip{font-family:Rahnama,Tahoma,sans-serif;letter-spacing:.4px;font-size:.85rem;color:#2c544d;background:#eaf1e7;border-radius:6px}.chance-badge{font-size:.82rem;padding:9px 7px;line-height:1.7}.chance-badge small{font-size:.69rem;margin-top:4px}.source-chip{font-size:.75rem;white-space:normal}.details-toggle{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #dde6de;border-radius:10px;color:#275f54;background:#f6f9f4}.program-note,.sort-title .selection-handbook{font-family:Rahnama,Tahoma,sans-serif;font-size:.82rem;font-weight:400;color:#4c6466;line-height:2.1}.program-note{padding-top:12px;border-top:1px solid #e6ece5;margin:4px 0 0}.program-details{padding:18px;background:#f1f6ee;border-radius:12px;grid-column:1/-1}.program-details p,.program-details li{font-size:.84rem;line-height:2}.program-details .portal-detail-grid{grid-column:1/-1}.portal-card-actions{border-top:1px solid #e8eee6;padding-top:10px;gap:10px}.portal-card-actions .btn{font-size:.78rem;min-height:40px;color:#356858;background:transparent;border-color:transparent}.portal-card-actions .btn:hover{background:#edf4e9}.selection-tray{position:sticky;bottom:16px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;padding:15px 20px;background:#203e3c;color:#fff;border-radius:14px;box-shadow:0 8px 28px #173e3326}.selection-tray p{margin:0;font-size:.86rem}.selection-tray small{display:block;color:#c9dcd3;font-size:.73rem}.selection-tray .btn{background:#e6f1de;color:#1a483b;border:0;flex-shrink:0}.empty-state{padding:40px 24px;border:1px dashed #c6d9c8;background:#f9fbf7;border-radius:16px}.empty-state p{font-size:.9rem;line-height:2}.program-skeleton{min-height:150px;background:linear-gradient(100deg,#e9eee6,#f8faf5,#e9eee6);background-size:200% 100%;animation:skeleton 1.8s linear infinite;border-radius:16px}@keyframes skeleton{to{background-position:-200% 0}}[aria-busy=true]{cursor:progress}.inline-retry{margin:12px auto;display:block}
/* Forms, personal preferences, and delivery. */
.scorecard-reader{background:#f0f5ec;border:1px dashed #97b5a2}.reader-head h3{font-size:1.08rem}.reader-head p{font-size:.86rem}.upload-box{border-color:#aec7b3;background:#fff;min-height:120px;font-size:.94rem}.upload-box small{font-size:.78rem}.profile-form fieldset{border-color:#dde6da;border-radius:14px;padding:22px;margin-bottom:24px}.profile-form legend{font-size:1rem;color:#255244;padding:0 10px}.profile-form label{font-size:.85rem;line-height:1.85}.form-grid{gap:18px}.form-grid label{font-size:.84rem}.check-line{white-space:normal;align-items:flex-start;line-height:2}.check-line input{flex-shrink:0;min-width:20px;min-height:20px;margin-top:6px}.form-actions{padding-top:18px;gap:15px;flex-wrap:wrap}.profile-form>.check-line{padding:16px;background:#eff6e9;border:1px solid #d5e3cd;border-radius:12px}.profile-dirty-banner{position:sticky;top:0;z-index:5;background:#fff3db;color:#725422;padding:12px 18px;border-radius:10px;margin-bottom:16px;font-size:.85rem}.selection-layout{grid-template-columns:285px minmax(0,1fr);gap:20px}.weights-panel{top:20px;padding:22px}.weight-row span{font-size:.85rem}.weight-row input{accent-color:#2f7660}.sort-item{border-radius:14px;padding:17px 14px;gap:9px}.sort-title strong{font-size:.97rem}.sort-title span{font-size:.82rem;line-height:2}.position-input{width:52px;font-size:1rem}.sort-title .selection-code{color:#396a56;font-size:.8rem}.criteria-toggle,.remove-choice{min-width:44px;min-height:44px;font-family:inherit}.criteria-toggle{font-size:.78rem}.bulk-toolbar{background:#214d48;flex-wrap:wrap;overflow:visible;border-radius:12px;position:sticky;top:8px;z-index:6;padding:12px;gap:8px}.bulk-toolbar button{min-height:44px}.selection-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.selection-limit{font-size:.85rem;white-space:nowrap}.selection-tools summary{cursor:pointer;font-size:.88rem;font-weight:700}.quiz-question{padding:22px 0}.quiz-question strong,.quiz-question>span{font-size:.93rem}.likert label{min-width:42px;min-height:44px;font-size:.82rem}.portal-table{font-size:.86rem}.portal-table th{background:#edf3e9;color:#285748;font-size:.81rem}.portal-table tbody tr:hover{background:#f7faf3}.portal-dialog{background:#fdfefb;max-width:calc(100vw - 24px);border:1px solid #d8e4d6;padding:26px;border-radius:20px}.portal-dialog::backdrop{background:#122e36a6;backdrop-filter:blur(3px)}.portal-dialog-head{position:sticky;top:-26px;background:#fdfefb;z-index:3;padding:10px 0;margin-top:-8px;gap:14px}.portal-dialog h2{font-size:1.2rem;flex:1}.portal-dialog p,.portal-dialog li{font-size:.88rem}.portal-grid .panel h3{font-size:1.07rem}.portal-grid .panel p{font-size:.88rem}.case-roster-item{background:#fff;border:1px solid #d8e4d8}.case-roster-item:hover{border-color:#6c9a84;background:#f7faf4}.case-roster-item strong{font-size:1rem}.case-roster-item span,.case-roster-item small{font-size:.85rem}.case-heading h3{font-size:1.2rem}.toast-region{left:22px;bottom:24px;max-width:calc(100vw - 32px)}.toast{font-size:.88rem;line-height:1.9;padding:14px 20px;border-radius:12px;max-width:430px;box-shadow:0 6px 24px #163c3028}.toast.success{background:#245e49}.toast.error{background:#873c2c}
@media(min-width:901px) and (max-width:1250px){.program-card{grid-template-columns:28px minmax(140px,1fr) 95px 44px}.program-card>.program-title{grid-column:2;grid-row:1}.program-card>.chance-badge,.program-card>.source-chip{grid-column:3;grid-row:1}.program-card>.details-toggle{grid-column:4;grid-row:1}.program-card>.program-meta{grid-column:2/-1}.selection-layout{grid-template-columns:minmax(0,1fr)}.weights-panel{position:static}.weights-panel .weight-row{max-width:600px}.journey button{font-size:.77rem;padding:8px;gap:6px}.filter-secondary>.form-grid,#portal-advanced-filters .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-panel{min-height:100dvh;padding:42px 26px;align-items:center;justify-content:center;text-align:center}.auth-context{display:none}.auth-panel h1{font-size:2.5rem}.auth-panel label{text-align:right}.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;right:-290px;width:275px;z-index:40;height:100dvh}.sidebar.open{right:0}.nav-backdrop:not(.hidden){display:block;position:fixed;inset:0;z-index:39;background:#132f3877;backdrop-filter:blur(2px);border:0}.menu-open{overflow:hidden}.workspace{padding:0 20px 30px}.topbar{height:83px;margin-bottom:20px}.topbar h1{font-size:1.3rem}.journey{gap:4px;margin-bottom:20px}.journey button{padding:8px;font-size:.78rem;gap:7px;min-height:55px}.journey button b{width:25px;height:25px}.welcome-panel{padding:24px}.welcome-panel h2{font-size:1.3rem}.selection-layout{grid-template-columns:minmax(0,1fr)}.program-card{grid-template-columns:26px minmax(0,1fr) 100px 44px}.program-card>.source-chip{grid-column:3;grid-row:1}.program-card>.program-meta{grid-column:2/-1}.profile-form fieldset{padding:18px}.portal-track-bar label{white-space:normal}.filter-bar .search-wide{grid-column:1/-1}.filter-bar{grid-template-columns:1fr 1fr}.filter-secondary>.form-grid,#portal-advanced-filters .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weights-panel{position:static}.metric-grid{grid-template-columns:1fr 1fr}.user-chip>span{width:38px;height:38px}}
@media(max-width:620px){html{font-size:16px}.workspace{padding-inline:14px}.topbar{height:76px;gap:10px;margin-bottom:17px}.topbar h1{font-size:1.05rem}.topbar .eyebrow{font-size:.65rem}.user-chip{margin-right:auto}.journey{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.journey button{flex-direction:column;justify-content:center;text-align:center;padding:8px 3px;gap:5px;font-size:.69rem;border-radius:10px;min-height:78px;line-height:1.7}.journey button b{width:26px;height:26px}.welcome-panel{padding:22px;display:block;border-radius:16px}.welcome-panel h2{font-size:1.22rem}.welcome-panel p{font-size:.83rem}.welcome-panel .btn{margin-top:18px;width:100%}.metric-grid{gap:10px}.metric-card{padding:16px;min-width:0}.metric-card>span{font-size:.72rem}.metric-card strong{font-size:1.4rem}.metric-card small{font-size:.68rem}.dashboard-grid{gap:16px}.panel{padding:18px}.steps li{padding:13px 10px}.steps strong{font-size:.86rem}.steps small{font-size:.74rem}.steps .btn{padding:8px;font-size:.8rem}.section-intro{display:block;margin-bottom:18px}.section-intro h2{font-size:1.16rem}.section-intro p{font-size:.83rem}.section-intro .btn,.section-intro .source-chip{display:inline-flex}.section-intro>.btn,.selection-actions{margin-top:12px}.portal-track-bar{padding:12px 15px}.portal-track-bar label{display:flex;justify-content:space-between;font-size:.77rem;gap:8px}.portal-track-bar select{width:auto;flex:1;max-width:240px;font-size:.81rem}.portal-track-bar span{margin:8px 0 0;font-size:.73rem}.portal-track-bar>.btn{display:none}.filter-bar{padding:17px;gap:14px}.filter-bar label{font-size:.8rem}.filter-secondary>.form-grid,#portal-advanced-filters .form-grid{grid-template-columns:minmax(0,1fr)}.filter-actions{gap:8px}.filter-actions .btn{flex:1;min-width:0;grid-column:auto}.filter-actions small{width:100%}.filter-bar select,.filter-bar input{font-size:.84rem}.result-meta{font-size:.76rem;line-height:1.95;margin-top:19px}.portal-catalog-tools .btn{font-size:.72rem;flex:initial;padding:7px 10px}.program-card{grid-template-columns:24px minmax(0,1fr) 44px;padding:17px;gap:10px}.program-title strong{font-size:.97rem}.program-title span{font-size:.8rem}.program-card>.program-title{grid-column:2/-1;grid-row:1}.program-card>.chance-badge,.program-card>.source-chip{grid-column:2;grid-row:2;justify-self:start}.program-card>.program-meta{grid-column:2/-1;font-size:.78rem}.program-card>.details-toggle{grid-column:3;grid-row:2}.program-note{font-size:.8rem;line-height:2.1}.program-details{padding:13px}.portal-card-actions .btn{font-size:.77rem}.selection-tray{bottom:8px;padding:12px 14px;gap:9px}.selection-tray p{font-size:.79rem}.selection-tray small{font-size:.65rem}.selection-tray .btn{font-size:.76rem;padding:8px 12px}.profile-form fieldset{padding:16px 13px}.cols-3,.cols-2{grid-template-columns:minmax(0,1fr)}.check-line{font-size:.81rem}.form-actions .btn{width:100%}.sort-item{padding:15px 11px;grid-template-columns:18px 48px 24px minmax(0,1fr)}.sort-title strong{font-size:.9rem}.sort-title span{font-size:.79rem}.sort-item>.chance-badge{grid-column:4;grid-row:2}.sort-item>.source-chip{grid-column:4;grid-row:2}.sort-item .criteria-toggle{grid-column:4;grid-row:3}.sort-item .remove-choice{grid-column:2;grid-row:3}.sort-title .selection-handbook{font-size:.79rem}.sort-item .criteria-editor{grid-row:4;grid-column:1/-1}.position-input{width:48px;padding-inline:3px}.selection-actions .btn{font-size:.76rem;padding:8px 10px}.portal-dialog{padding:18px 14px;border-radius:16px}.portal-dialog-head{top:-18px}.portal-dialog h2{font-size:1.05rem}.portal-dialog-head .btn{font-size:.77rem;padding:7px 11px}.portal-detail-grid{grid-template-columns:minmax(0,1fr)}.toast-region{bottom:20px;left:16px;right:16px}.toast{width:100%;max-width:100%;font-size:.83rem}.toast-region:has(.toast)~#app-shell .selection-tray{bottom:95px}.bulk-toolbar{position:static}.bulk-toolbar strong{width:100%}.bulk-toolbar button{font-size:.74rem}.quiz-question{grid-template-columns:1fr}.likert{gap:5px}.likert label{min-width:44px}}
.scorecard-upload{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px;gap:5px;border:1px dashed #91b19d;border-radius:12px;background:#fcfefa;cursor:pointer;min-height:160px}.scorecard-upload>span{display:grid;place-items:center;border-radius:12px;background:#e6f0df;color:#346c50;width:44px;height:44px;font-size:1.6rem}.scorecard-upload strong{font-size:1rem}.scorecard-upload small{font-size:.78rem;color:#5c7567;overflow-wrap:anywhere}.scorecard-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.scorecard-upload:focus-within{outline:3px solid #bd7b18;outline-offset:4px}.scorecard-reader>details{background:#fff;padding:12px;border-radius:10px}.profile-permissions{margin:20px 0}.profile-permissions>summary{cursor:pointer;min-height:48px;font-size:.9rem;font-weight:700;color:#275a4b;padding:12px;background:#eff4ea;border-radius:10px}.profile-permissions fieldset{margin-top:18px}.scorecard-reader label{width:100%}
.optimizer-disclosure{min-width:0;align-self:start}.optimizer-disclosure>summary{cursor:pointer;background:#e6efe1;border:1px solid #cadcc5;border-radius:12px;padding:14px 18px;font-weight:700;font-size:.86rem;color:#285844}.optimizer-disclosure[open]>summary{margin-bottom:12px}.optimizer-disclosure .weights-panel{width:100%;margin:0}.optimizer-disclosure .panel-head{flex-wrap:wrap}.optimizer-disclosure .weights-panel{position:static}@media print{.optimizer-disclosure{display:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.journey,.selection-tray,.welcome-panel,.skip-link,.network-status,.nav-backdrop,.profile-dirty-banner,.portal-track-bar{display:none!important}body,input,select,textarea,button{font-family:Rahnama,Tahoma,sans-serif}.program-note,.sort-title .selection-handbook{color:#222}body.printing-selection .workspace{padding:0}}

/* Report-card PDF preview and accessible reading controls. */
.scorecard-pdf-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;margin:14px 0;background:var(--surface-soft,#f3f7f5);border:1px solid var(--border,#dce6e0);border-radius:14px}
.scorecard-pdf-toolbar label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-weight:600;width:auto}
.scorecard-pdf-toolbar select{min-width:120px;max-width:100%;width:auto;padding:8px 12px}
.scorecard-pdf-toolbar span{font-size:.85rem;color:var(--muted,#63776f)}
#scorecard-preview{display:block;margin:16px auto;border:1px solid var(--border,#dce6e0);border-radius:10px;background:white}
#ocr-status{line-height:2;overflow-wrap:anywhere}
#scorecard-filename{overflow-wrap:anywhere;max-width:100%}
.scorecard-reader[aria-busy=true] .scorecard-upload{opacity:.65;cursor:wait}
#cancel-scorecard-read{margin:0 0 12px}
.scorecard-reader>.field-help{margin:14px 0}
#scorecard-preview.scorecard-zoomed{max-height:none!important;max-width:none!important;width:max(100%,900px)}
.scorecard-preview-frame{max-width:100%;overflow:auto;max-height:75vh;overscroll-behavior:contain;margin:16px 0}
.scorecard-preview-frame:has(img.hidden){display:none}
.scorecard-preview-frame img{margin:0 auto!important}
#scorecard-zoom{margin:0 0 12px}

/* Responsive tables remain scrollable on screen and fluid on paper. */
.portal-table-wrap{min-width:0;overscroll-behavior-x:contain}.portal-grid>.panel,.portal-stack,.portal-stack>.panel{min-width:0}.portal-table-wrap:focus-visible{outline:3px solid #bd7b18;outline-offset:3px}
@media print{.portal-table-wrap{overflow:visible!important;max-width:none;border-radius:0}.portal-table{table-layout:fixed;width:100%;min-width:0!important}.portal-table th,.portal-table td{min-width:0!important;max-width:none;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;font-size:9pt;padding:2mm}.portal-table thead{display:table-header-group}.portal-table tr{break-inside:avoid}.portal-dialog{max-width:none!important;max-height:none!important;overflow:visible!important}.sort-item{break-inside:auto!important}.sort-title strong{break-after:avoid}.sort-title .selection-handbook{white-space:normal;overflow-wrap:anywhere;orphans:3;widows:3}}
