/* A compact, accessible selection workspace; all typefaces are served locally. */
:root{--blue-600:#0879ed;--blue-700:#075fb9;--blue-50:#f0f7ff;--canvas:#fafcff;--navy-950:#183049;--navy-900:#23435f;--slate-950:#203449;--slate-600:#4d6176;--slate-500:#62758a;--slate-200:#dce6ef;--radius:14px;--shadow:0 3px 16px #203f6010}
.app-shell{grid-template-columns:232px minmax(0,1fr)}.sidebar{background:#fff;border-left:1px solid #e6edf4;padding:24px 14px;color:#344c63}.brand-row{border-color:#e6edf4}.brand-row strong{color:#1b344e}.brand-row span{color:#728294}.brand-mark.small{color:#fff;background:#0879ed;border-radius:50%}.nav-item{color:#4c6075;padding:12px;min-height:48px;margin:3px 0}.nav-item.active,.nav-item.active:hover{background:#eaf4ff;color:#0865c4}.nav-item:hover{background:#f3f7fc;color:#164b7e}.nav-item b,.nav-item.active b{background:#e5effa;color:#246394}.sidebar-foot{border-color:#e6edf4}.sidebar-foot .btn,.data-badge{color:#5b6f83}.sidebar nav{scrollbar-color:#cbd8e7 transparent}.sidebar summary{cursor:pointer;padding:12px;color:#526981;font-size:.83rem}#nav-more{margin-top:10px;border-top:1px solid #e6edf4}
.workspace{padding:0 clamp(16px,2vw,30px) 36px}.topbar{height:80px;margin-bottom:22px}.user-chip>span{background:#eaf4ff;color:#0879ed}.user-chip{background:#f5f9ff;border-radius:99px;padding:7px 13px}.topbar h1{font-size:1.25rem}.btn{border-radius:9px;font-weight:600}.btn-primary{background:#0879ed;border-color:#0879ed}.btn-secondary:hover{background:#edf6ff;border-color:#b9d8f7}.btn-ghost{color:#1765ac}.icon-btn{color:#1765ac}.panel{border-color:#dce6ef}.welcome-panel{background:#f0f7ff;border:1px solid #d5e7f9}.welcome-panel h2{color:#214466}.welcome-panel p{color:#536c85}.metric-card.accent{background:#edf6ff;color:#1e517f}.optimizer-disclosure>summary{background:#eef6ff;border-color:#c9dff4;color:#225789}.journey button[aria-current=step]{background:#edf6ff;border-color:#d8e8fa;color:#1765ac}.journey button[aria-current=step] b{background:#0879ed;border-color:#0879ed}.selection-tray{background:#125a9d}.auth-context{background:radial-gradient(ellipse at 0 0,#2088e280,transparent 65%),#153c68}.auth-shell{background:#153c68}.brand-mark{background:#0879ed}.auth-panel h1{color:#1b4168}.auth-back{color:#1765ac}
.selection-context{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:20px 22px;background:#fff;border:1px solid #d8e5f1;border-radius:16px;margin-bottom:20px}.context-person{display:flex;align-items:center;gap:12px}.context-person strong{display:block;font-size:1rem}.context-person small{display:block;color:#6a7d91;font-size:.76rem}.context-avatar{background:#0879ed;color:#fff;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;font-size:1.3rem}.context-chips{display:flex;flex-wrap:wrap;gap:8px;flex:1;justify-content:flex-end}.context-chips span{padding:3px 12px;border-radius:99px;border:1px solid #e1eaf4;background:#f7faff;font-size:.75rem;color:#526b83}.selection-context>.btn{font-size:.75rem}.portal-track-bar{background:#fff;margin-bottom:14px}.portal-track-bar select{background:#f5f9ff}.track-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0}.track-shortcut{border:1px solid #cfe2f7;background:#fff;padding:20px;border-radius:13px;text-align:right;cursor:pointer;color:#1465b8;min-height:92px}.track-shortcut:hover,.track-shortcut[aria-pressed=true]{background:#edf6ff;border-color:#0879ed}.track-shortcut strong{display:block;font-size:1.07rem}.track-shortcut small{display:block;color:#6a7e93;font-size:.77rem;margin-top:5px}
.roster-search{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.roster-search label{flex:1;min-width:200px;max-width:490px}.roster-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:20px;font-size:.83rem}.selection-roster .portal-table{min-width:760px}.selection-roster th{background:#f4f9ff}.selection-roster .btn{color:#0872d8;border-color:#c4dff9;background:#f7fbff;white-space:nowrap;font-size:.8rem}.cell-subtitle{display:block;font-size:.71rem;color:#6b7e91;line-height:1.8;margin-top:4px}
#filter-form{display:flex;flex-direction:column;gap:16px;background:#f2f8ff;border:1px solid #ccdef1;padding:20px;overflow:visible;position:relative;z-index:3}#filter-form>label:not(.search-wide){display:none}#filter-form .search-wide{width:100%;max-width:none}#filter-form>.selection-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 14px;width:100%;align-items:end}#filter-form label,.picker-label{font-size:.76rem;color:#546c84;font-weight:400}#filter-form label>span,.picker-label{display:block;margin-bottom:5px}#filter-form select,#filter-form input:not([type=checkbox]),.picker-trigger{background:#fff;min-height:44px;font-size:.82rem;border:1px solid #d4e2ef;border-radius:9px;color:#263e55;padding:9px 12px;width:100%;box-shadow:none}#filter-form select{padding-left:24px}#filter-form .filter-secondary{background:transparent;border:0;padding:0;margin:0}#filter-form .filter-secondary>summary{font-size:.77rem;color:#426888;padding:0;cursor:pointer}#filter-form .filter-secondary .form-grid{margin-top:15px;grid-template-columns:repeat(4,minmax(0,1fr))}#filter-form .portal-preset-bar{margin-top:14px}#filter-form .filter-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;width:100%;margin-top:4px}#filter-form .filter-actions>.btn{border-radius:99px;padding:9px 20px;min-width:120px}#filter-form #filter-draft-note{display:none}#marked-note{flex-basis:100%;text-align:center;font-size:.74rem;color:#4d6e8d}#portal-filter-preview{font-size:.73rem;border-top:1px solid #dce8f5;padding-top:10px;color:#607991;line-height:1.9;margin:0}.portal-catalog-tools{gap:8px}.portal-catalog-tools .btn{font-size:.74rem;padding:7px 11px;min-height:38px}.result-meta{font-size:.8rem}.program-list{display:block}.program-list>.program-card{margin-bottom:12px}
.search-picker{position:relative;min-width:0}.picker-trigger{text-align:right;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;padding-left:27px!important;font-weight:400}.picker-trigger:after{content:'⌄';position:absolute;left:12px;color:#7f93a8}.picker-trigger.has-value{background:#fff!important;color:#0964b6!important;border-color:#a8cdef!important}.picker-popup{position:absolute;z-index:25;top:100%;right:0;min-width:100%;width:max(100%,260px);max-width:min(360px,85vw);margin-top:5px;border:1px solid #bfdbf5;background:#fff;border-radius:12px;padding:11px;box-shadow:0 12px 35px #12345128}.picker-open{z-index:26}.picker-options{max-height:255px;overflow:auto;overscroll-behavior:contain;margin:8px 0}.picker-option{display:flex!important;align-items:flex-start;gap:10px;padding:9px 6px;cursor:pointer;color:#24435f!important;border-radius:6px;min-height:42px;font-size:.82rem!important}.picker-option:hover,.picker-option:focus-within{background:#f0f7ff}.picker-option input{width:18px;min-width:18px;height:18px;margin-top:3px;accent-color:#0879ed}.picker-option span{margin:0!important;line-height:1.8}.picker-popup small{display:block;color:#71869b;font-size:.7rem}.picker-clear{background:none;border:0;color:#1268b8;padding:7px 2px;margin-top:3px;font-size:.77rem;cursor:pointer}.picker-popup:dir(rtl){direction:rtl}
#program-results .portal-table-wrap{border:1px solid #d6e4f2;border-radius:12px;background:#fff;max-width:100%;overflow:auto}#program-results .portal-table{min-width:1120px;width:100%;font-size:.78rem}#program-results th{background:#eaf4ff;color:#315373;border-bottom:2px solid #8cbceb;vertical-align:middle}#program-results th .btn{font-size:.75rem;padding:5px 2px;min-height:35px;white-space:nowrap}#program-results td{padding:12px 10px;vertical-align:top;white-space:normal;min-width:62px}#program-results tr:hover{background:#f8fbff}#program-results .catalog-code{color:#1769b5;font-weight:700;font-variant-numeric:tabular-nums}#program-results .catalog-major{min-width:160px;max-width:300px}#program-results .catalog-major strong{font-weight:600;font-size:.86rem}#program-results .catalog-institution{min-width:145px;max-width:240px}#program-results .program-note{font-size:.72rem;line-height:2;color:#667a8e;margin:6px 0 0;font-weight:400;max-height:none}#program-results .chance-badge{font-size:.71rem;white-space:nowrap;padding:4px 8px;display:inline-block}#program-results td:last-child .btn{display:block;min-height:32px;font-size:.72rem;padding:4px 9px;margin-bottom:5px}#program-results input[type=checkbox]{width:19px;height:19px;accent-color:#0879ed}.portal-table th{white-space:normal}.portal-table tr{border-bottom:1px solid #e4ecf4}.sort-item{border-color:#d7e4f1}.sort-title .selection-handbook{font-weight:400;color:#62788d}
@media(min-width:901px) and (max-width:1250px){#filter-form>.selection-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app-shell{grid-template-columns:215px minmax(0,1fr)}}
@media(max-width:900px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{width:275px}.workspace{padding-inline:16px}#filter-form>.selection-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#filter-form .filter-secondary .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-context{padding:15px}.context-chips{justify-content:flex-start;flex-basis:100%}.context-person{flex:1}.context-chips{order:3}.track-shortcuts{gap:10px}.track-shortcut{padding:15px}.selection-roster .portal-table{min-width:680px}.user-chip{padding:4px 8px}}
@media(max-width:620px){.topbar{height:74px}.user-chip strong{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-chip small{display:none}.track-shortcuts{grid-template-columns:1fr}.track-shortcut{min-height:76px}.selection-context{gap:10px}.context-chips{gap:5px}.context-chips span{font-size:.69rem;padding:3px 8px}.context-person strong{font-size:.88rem}.context-person small{font-size:.68rem}#filter-form{padding:14px;gap:15px}#filter-form>.selection-filter-grid{gap:13px 10px}.picker-popup{width:min(310px,calc(100vw - 58px));position:fixed;right:29px;top:auto;left:29px;max-width:none;margin-top:4px}.picker-options{max-height:32vh}#filter-form .filter-actions>.btn{min-width:0;font-size:.76rem;padding:9px 12px;flex:1 1 42%}#filter-form .filter-actions>[data-clear-marks]{flex:1 1 100%;background:none;border:0;padding:4px;min-height:30px}#filter-form .filter-secondary .form-grid{grid-template-columns:1fr}.result-meta .legend{flex-wrap:wrap}#program-results .portal-table{display:block;min-width:0}#program-results .portal-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#program-results .portal-table tbody{display:block}#program-results .portal-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:9px 15px;border-bottom:8px solid #f0f5fb}#program-results .portal-table td{display:block;min-width:0;max-width:none;padding:0;border:0;font-size:.79rem}#program-results td[data-label]:before{content:attr(data-label);display:block;color:#74879a;font-size:.68rem;margin-bottom:3px}#program-results .catalog-major,#program-results .catalog-institution{grid-column:1/-1}#program-results .catalog-major strong{font-size:1rem}#program-results td:last-child{display:flex;gap:8px;grid-column:1/-1}#program-results td:last-child .btn{margin:0;flex:1;padding:8px}#program-results .program-note{font-size:.78rem}#program-results .portal-table td:first-child{grid-column:1/-1}#program-results td:first-child:after{content:' انتخاب این رشته‌محل';color:#5d7690;font-size:.73rem}.roster-search label{min-width:100%}.selection-roster .portal-table{display:block;min-width:0}.selection-roster thead{display:none}.selection-roster tbody{display:block}.selection-roster tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.selection-roster td{display:block;padding:0;border:0;min-width:0}.selection-roster td:first-child{grid-column:1/-1}.selection-roster td:before{content:attr(data-label);display:block;font-size:.68rem;color:#71869b;margin-bottom:5px}.selection-roster td:first-child:before{display:none}.selection-roster td:nth-last-child(2){grid-column:1/3}.selection-roster .btn{font-size:.76rem;padding:8px;width:100%}}
@media print{.selection-context,.track-shortcuts,#selection-profile-notice,#nav-more,#filter-form,.portal-catalog-tools{display:none!important}.workspace{padding:0!important}.portal-table-wrap{overflow:visible!important}#program-results .portal-table,.selection-roster .portal-table{display:table!important;width:100%;min-width:0!important;table-layout:fixed}#program-results .portal-table thead,.selection-roster thead{display:table-header-group!important;position:static;width:auto;height:auto;clip-path:none}#program-results .portal-table tbody,.selection-roster tbody{display:table-row-group!important}#program-results .portal-table tr,.selection-roster tr{display:table-row!important;break-inside:avoid}#program-results .portal-table td,.selection-roster td{display:table-cell!important;min-width:0!important;max-width:none!important;font-size:8pt;padding:1.5mm;border:1px solid #ccc}#program-results td:before,#program-results td:after,.selection-roster td:before{display:none!important}#program-results .program-note{font-size:7.5pt;color:#333;overflow-wrap:anywhere}.portal-table button{background:none;border:0;font:inherit;padding:0;box-shadow:none}.selection-context[hidden]{display:none!important}}
/* Keep search results close to the candidate summary. */
.selection-context .portal-track-bar{flex:1 1 100%;margin:0;padding:10px 0 0;border:0;border-top:1px solid #e5edf5;border-radius:0;background:none;box-shadow:none;display:flex;align-items:center;gap:15px}.selection-context .portal-track-bar label{display:flex;align-items:center;gap:12px}.selection-context .portal-track-bar select{min-height:36px!important;width:180px}.selection-context .portal-track-bar>span{flex:1}.selection-context .portal-track-bar>.btn{min-height:34px;font-size:.71rem}.selection-context{padding:16px 20px;margin-bottom:12px}#view-programs>.section-intro{margin-bottom:12px}#view-programs>.section-intro h2,#view-programs>.section-intro>.btn{display:none}#view-programs>.section-intro p{font-size:.76rem;margin:0;color:#6a7d91}#filter-form{padding:16px;gap:10px}#filter-form>.selection-filter-grid{gap:12px 14px}#filter-form select,#filter-form input:not([type=checkbox]),.picker-trigger{min-height:40px}body[data-view=programs] .selection-tray{display:none!important}.selection-context .context-chips{justify-content:flex-start}.selection-context>.btn{margin-right:auto}
@media(max-width:620px){.selection-context .portal-track-bar{flex-wrap:wrap}.selection-context .portal-track-bar>span{flex-basis:100%;margin:0}.selection-context .portal-track-bar label{width:100%}.selection-context .portal-track-bar select{max-width:none}.selection-context .portal-track-bar>.btn{display:none}#filter-form>.selection-filter-grid{gap:10px}#filter-form .filter-actions>.btn{flex:1 1 45%}.context-chips{order:0}.picker-popup{bottom:12px;top:auto;max-height:50vh;overflow:auto}.picker-options{max-height:28vh}}

#filter-form .selection-filter-grid .search-wide{grid-column:auto}#filter-form .selection-filter-grid>label{display:flex;flex-direction:column;gap:0}#portal-filter-preview{background:transparent;border:0;border-top:1px solid #dce8f5;border-radius:0}body[data-view=programs] #journey{display:none!important}

body[data-view=programs] #default-password-note,body[data-view=selection] #default-password-note{display:none}body[data-view=programs] .selection-context,body[data-view=selection] .selection-context{background:#fff}.metric-card.accent>span,.metric-card.accent>small{color:#4e7397}
@media(max-width:620px){.selection-context .context-person{order:0;flex:1 1 160px}.selection-context>.btn{order:0;margin:0;padding:8px;font-size:.69rem}.selection-context .context-chips{order:1}.selection-context .portal-track-bar{order:2}}
