/* ==========================================================================
   NEET India Counseling: tools pages (predictor, cutoffs, shortlist)
   Owner: TOOLS. Page-specific styles only; shared components live in
   css/site.css. Prefixes: pr- predictor, mr- marks->rank, co- cutoffs,
   sl- shortlist.
   ========================================================================== */

/* ---------- shared ---------- */
body[data-page="predictor"] .table-caption, body[data-page="cutoffs"] .table-caption { flex-wrap: nowrap; align-items: flex-start; }
body[data-page="predictor"] .table-caption > span, body[data-page="cutoffs"] .table-caption > span { min-width: 0; }
body[data-page="predictor"] .table-caption > .i, body[data-page="cutoffs"] .table-caption > .i { margin-top: 2px; }

/* chance pills */
.pr-chance { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface-2); color: var(--body); }
.pr-chance::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pr-chance--high { background: var(--ok-bg); color: var(--ok); }
.pr-chance--good { background: var(--blue-50); color: var(--blue); }
.pr-chance--border { background: var(--warn-bg); color: var(--warn); }
.pr-chance--stray { background: var(--surface-2); color: #475467; }
.pr-chance--out { background: var(--bad-bg); color: var(--bad); }

/* ---------- predictor layout ---------- */
.pr-section { padding-top: var(--s-5); }
.pr-layout { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .pr-layout { grid-template-columns: 320px minmax(0, 1fr); gap: var(--s-6); } }
.pr-form { padding: 18px; }
@media (min-width: 768px) { .pr-form { padding: 20px; } }
.pr-form__title { margin: 0 0 var(--s-3); font-size: 18px; font-weight: 600; }
.pr-form .field { margin-bottom: var(--s-3); }
.pr-form__row { display: grid; gap: 0 var(--s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) and (max-width: 1023.98px) { .pr-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-quotas { margin: var(--s-4) 0 0; padding: var(--s-3) 0 0; border: 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.pr-quotas legend { padding: var(--s-3) 0 var(--s-2); float: left; width: 100%; }
.pr-quotas .checks { clear: both; gap: 6px; }
.check.is-disabled { color: var(--meta); cursor: not-allowed; }
.check.is-disabled input { cursor: not-allowed; }
.pr-hint-inline { display: block; font-size: 12px; color: var(--meta); }
.pr-form__foot { display: flex; gap: 8px; align-items: flex-start; margin: var(--s-3) 0 0; font-size: var(--fs-meta); line-height: 1.45; color: var(--meta); }
.pr-form__foot .i { width: 16px; height: 16px; margin-top: 1px; color: var(--mute); }
.pr-form .btn-lg { margin-top: var(--s-4); }
.pr-opts { margin-top: var(--s-4); padding-top: 4px; border-top: 1px solid var(--line-soft); }
.pr-opts > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 44px; font-weight: 600; color: var(--blue); cursor: pointer; list-style: none; }
.pr-opts > summary::-webkit-details-marker { display: none; }
.pr-opts > summary::before { content: ""; width: 7px; height: 7px; margin: 0 4px 3px 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--t); }
.pr-opts[open] > summary::before { transform: rotate(45deg); margin-bottom: 5px; }
.pr-opts > summary .meta { font-weight: 400; }
.pr-opts .pr-quotas { margin-top: var(--s-2); }
.badge-women { background: #FCE7F3; color: #9D174D; }

/* start panel */
.pr-start { padding: var(--s-5); border: 1px dashed var(--line); border-radius: var(--r-card); background: var(--surface); }
.pr-start .sec-title { margin-bottom: var(--s-4); }
.pr-start__steps { gap: var(--s-5); }
@media (min-width: 1024px) { .pr-start { position: sticky; top: calc(var(--header-h) + 16px); } }

/* results head + controls */
.pr-res-head { margin-bottom: var(--s-3); }
.pr-res-head .sec-title { margin-bottom: 6px; }
.pr-res-head .sec-title:focus { outline: none; }
.pr-you { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--body); }
.pr-you strong { font-variant-numeric: tabular-nums; }
.pr-edit { margin-left: 4px; font-weight: 600; white-space: nowrap; }
.pr-bands { margin: var(--s-3) 0; }
.pr-bands .chip[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.pr-chip--high::before, .pr-chip--good::before, .pr-chip--border::before, .pr-chip--stray::before, .pr-chip--out::before { content: ""; position: static; inset: auto; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pr-chip--high::before { background: var(--ok); }
.pr-chip--good::before { background: var(--blue); }
.pr-chip--border::before { background: #C98A1B; }
.pr-chip--stray::before { background: var(--mute); }
.pr-chip--out::before { background: var(--bad); }
.chip[aria-pressed="true"].pr-chip--good::before { background: #A9D0EC; }
.pr-split { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 0 6px; font-size: 14px; color: var(--meta); }
.pr-split__btn { display: inline; padding: 2px 0; border: 0; background: none; color: var(--blue); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pr-split__btn strong { font-variant-numeric: tabular-nums; }
.pr-split__btn[aria-pressed="true"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.pr-split__btn[aria-pressed="true"]::after { content: " ✕"; color: var(--meta); }
.pr-split__btn[disabled] { color: var(--meta); text-decoration: none; cursor: default; }
.pr-split__fee { color: var(--warn); }
@media (max-width: 639.98px) { .pr-split__dot { display: none; } .pr-split { flex-direction: column; align-items: flex-start; } }
.co-inst .badge-women { margin-top: 4px; }
.pr-filter { margin: 0 0 var(--s-3); }
.pr-filter > summary { display: none; }
@media (max-width: 639.98px) {
  .pr-bands { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; }
  .pr-bands::-webkit-scrollbar { display: none; }
  .pr-bands .chip { flex: none; }
  .pr-filter > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
  .pr-filter > summary::-webkit-details-marker { display: none; }
  .pr-filter > summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid var(--meta); border-bottom: 2px solid var(--meta); transform: rotate(45deg); transition: transform var(--t); }
  .pr-filter[open] > summary::after { transform: rotate(-135deg); }
  .pr-filter[open] > summary { margin-bottom: var(--s-2); }
}
.pr-group { padding: 10px var(--s-4); border-top: 1px solid var(--line-soft); background: var(--surface); }
.pr-list > .pr-group:first-child { border-top: 0; border-radius: var(--r-card) var(--r-card) 0 0; }
.pr-group__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.pr-group__text { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--body); max-width: 80ch; }
.pr-group--deemed { background: var(--warn-bg); }
.pr-tools { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
@media (min-width: 768px) { .pr-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pr-tools .field { margin: 0; gap: 4px; }
.pr-tools .label { font-size: 13px; }
.pr-near { margin: var(--s-3) 0; }
.pr-caveat { margin: var(--s-4) 0 0; font-size: 14px; }
.pr-caveat > .i { color: var(--blue); }

/* result rows */
.pr-list-head { display: none; }
.pr-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.pr-list > li { margin: 0; }
.pr-row { display: grid; gap: 10px var(--s-3); grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "nums nums" "chance act"; padding: 14px var(--s-4); border-top: 1px solid var(--line-soft); align-items: center; }
.pr-list > .pr-row:first-child { border-top: 0; }
.pr-row { content-visibility: auto; contain-intrinsic-size: auto 170px; }
@media (min-width: 1024px) { .pr-row { contain-intrinsic-size: auto 96px; } }
.pr-row__main { grid-area: main; min-width: 0; }
.pr-row__name { margin: 0; font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.35; }
.pr-row__name a { color: var(--ink); text-decoration: none; }
.pr-row__name a:hover { color: var(--blue); text-decoration: underline; }
.pr-row__meta { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--meta); line-height: 1.4; }
.pr-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.pr-row__nums { grid-area: nums; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 8px 0 0; border-top: 1px dashed var(--line-soft); }
.pr-row__nums dt { font-size: 12px; color: var(--meta); line-height: 1.3; }
.pr-row__nums dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pr-sr { display: block; font-size: 11px; font-weight: 500; color: var(--meta); }
.pr-row__chance { grid-area: chance; }
.pr-row__act { grid-area: act; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; align-items: center; }
.pr-cr-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pr-cr-link:hover { text-decoration: underline; }
.pr-none { padding: var(--s-3); }
.pr-none .empty { border: 0; }
@media (min-width: 1024px) {
  .pr-list-head, .pr-row { grid-template-columns: minmax(0, 1fr) 74px 78px 78px 112px 118px; grid-template-areas: none; gap: var(--s-3); }
  .pr-list-head { display: grid; padding: 10px var(--s-4); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); }
  .pr-list-head + .pr-list { border-radius: 0 0 var(--r-card) var(--r-card); }
  .pr-list-head .num { text-align: right; }
  .pr-row { align-items: start; }
  .pr-row__main, .pr-row__nums, .pr-row__chance, .pr-row__act { grid-area: auto; }
  .pr-row__nums { display: contents; }
  .pr-row__nums > div { text-align: right; padding-top: 1px; }
  .pr-row__nums dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pr-row__chance { padding-top: 0; }
  .pr-row__act { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .pr-row__act .btn { justify-content: center; }
  .pr-cr-link { justify-content: center; min-height: 32px; font-size: 13px; }
}
.pr-more { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-4) 0 0; }

/* CTA */
.pr-cta { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); background: var(--cta-50); border-color: #F2D2BA; }
@media (min-width: 768px) { .pr-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.pr-cta__title { margin: 0 0 4px; font-size: 18px; }
.pr-cta__text { margin: 0; font-size: 15px; max-width: 52ch; }
.pr-cta .btn-group { flex: none; }
.pr-sl-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue); font-size: 12px; font-variant-numeric: tabular-nums; }

/* method */
.pr-method { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .pr-method { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-6); } }
.pr-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.pr-rules li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-3); align-items: start; margin: 0; font-size: 15px; line-height: 1.5; }
.pr-rules .pr-chance { justify-self: start; margin-top: 1px; }
@media (max-width: 479.98px) { .pr-rules li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* marks -> rank */
.mr-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .mr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); } }
.mr-input { display: flex; gap: var(--s-2); }
.mr-input .input { flex: 1 1 auto; min-width: 0; }
.mr-out { margin-top: var(--s-2); }
.mr-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.mr-result > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-width: 0; }
.mr-result > div + div { border-left: 1px solid var(--line-soft); }
.mr-k { font-size: 13px; color: var(--meta); font-weight: 500; }
.mr-v { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mr-v--2 { font-size: 20px; color: var(--body); }
.mr-s { font-size: 12px; color: var(--meta); }
#mr-table th[scope="row"] { font-weight: 600; color: var(--ink); }
#qual-table th[scope="row"] { font-weight: 500; color: var(--ink); }
.mr-src { display: block; margin-top: 4px; }

/* ---------- cutoffs ---------- */
.co-stats .stat__value { font-size: 26px; }
.co-stats .stat__note strong { color: var(--body); font-weight: 600; }
.co-diff { display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-main { padding-top: 0; }
.co-filters { padding: var(--s-3) var(--s-4); }
.co-filters__top { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-3); }
.co-search { flex: 1 1 240px; min-width: 0; }
.co-filters__grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
@media (min-width: 640px) { .co-filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .co-filters__grid { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; } }
.co-filters .field { margin: 0; gap: 4px; }
.co-filters .label { font-size: 13px; }
.co-reset { justify-content: flex-end; }
.co-bar { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); align-items: baseline; justify-content: space-between; margin: var(--s-4) 0 var(--s-2); }
.co-count { margin: 0; font-size: 15px; color: var(--body); }
.co-count strong { font-variant-numeric: tabular-nums; }
.co-hint { margin: 0; }
.co-wrap.has-max { max-height: none; overflow-y: visible; }
@media (min-width: 1024px) {
  .co-wrap.has-max { overflow: visible; }
  .co-table thead th { top: var(--header-h); background: var(--surface); }
}
.co-table { min-width: 720px; }
.co-table thead th { padding: 0; }
.co-sort { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; background: none; color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.co-sort:hover { color: var(--blue); background: var(--surface-2); }
.co-sort::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--line); flex: none; }
th[aria-sort="ascending"] .co-sort::after { border-top: 0; border-bottom: 5px solid var(--blue); }
th[aria-sort="descending"] .co-sort::after { border-top-color: var(--blue); }
th.num .co-sort { justify-content: flex-end; }
.co-table tbody tr[data-inst] { cursor: pointer; }
.co-inst { min-width: 210px; max-width: 360px; font-weight: 500; white-space: normal; }
.co-inst a { color: var(--ink); text-decoration: none; font-weight: 600; }
.co-inst a:hover, .co-table tbody tr:hover .co-inst a { color: var(--blue); text-decoration: underline; }
.co-city { display: block; font-size: 12px; font-weight: 400; color: var(--meta); }
.co-cr { font-weight: 600; color: var(--ink); }
.co-table td { white-space: nowrap; }
.co-m { display: none; }
.co-sub { font-size: 12px; font-weight: 500; color: var(--body); margin-top: 2px; }
@media (max-width: 639.98px) {
  .co-table { min-width: 0; }
  .co-table .co-x { display: none; }
  .co-m { display: inline; }
  .co-sub { display: block; }
  .co-inst { min-width: 0; max-width: none; width: 100%; }
  .co-table.table-sticky-col th:first-child { position: static; box-shadow: none; }
}
.co-more { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-3); }
.co-method { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .co-method { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-6); } }
.co-points li + li { margin-top: 6px; }
.co-pdfs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.co-pdfs li { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 15px; }
.co-pdfs .i { margin-top: 4px; color: var(--mute); }
.co-glossary { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.co-glossary > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-3); padding: 8px 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.co-glossary > div:first-child { border-top: 0; }
.co-glossary dt { font-weight: 600; color: var(--ink); }
.co-glossary dd { margin: 0; color: var(--body); }

/* detail modal */
.modal.co-modal { width: min(1020px, calc(100vw - 16px)); max-height: calc(100vh - 16px); }
@media (min-width: 768px) { .modal.co-modal { width: min(1020px, calc(100vw - 48px)); max-height: calc(100vh - 48px); } }
.co-modal .modal__title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; line-height: 1.3; }
.co-modal .modal__body { padding: 14px 16px 18px; }
@media (min-width: 768px) { .co-modal .modal__body { padding: 18px 20px 20px; } }
.co-d-meta { margin-bottom: var(--s-4); }
.co-d-place { margin: 0 0 6px; font-size: 15px; color: var(--body); }
.co-d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.co-d-q + .co-d-q { margin-top: var(--s-5); }
.co-d-qhead { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.co-d-qtitle { margin: 0; font-size: 16px; font-weight: 600; }
.co-d-table { min-width: 640px; }
.co-d-table thead th { text-align: right; }
.co-d-table thead tr:first-child th:first-child { text-align: left; }
.co-d-table th.co-yr { text-align: center; border-left: 1px solid var(--line); }
.co-d-table .co-gs { border-left: 1px solid var(--line); }
.co-d-table.table-sticky-col thead tr + tr th:first-child { position: static; box-shadow: none; z-index: auto; }
.co-swipe { display: none; margin: 0 0 6px; font-size: 12px; color: var(--meta); align-items: center; gap: 4px; }
@media (max-width: 767.98px) { .co-swipe { display: flex; } }
.co-d-table td.co-fin, .co-d-table th.co-fin { font-weight: 700; color: var(--ink); background: var(--surface); }
.co-d-table tbody th { font-weight: 500; color: var(--ink); white-space: nowrap; }
.co-d-table tr.is-current > th, .co-d-table tr.is-current > td { background: var(--blue-50); }
.co-d-compact, .co-d-toggle { display: none; }
.co-d-c { min-width: 0; }
.co-d-c thead th { text-align: right; }
.co-d-c thead th:first-child { text-align: left; }
@media (max-width: 639.98px) {
  .co-modal:not(.is-rounds) .co-d-full, .co-modal:not(.is-rounds) .co-swipe { display: none; }
  .co-modal:not(.is-rounds) .co-d-compact { display: block; }
  .co-d-toggle { display: inline-flex; margin: 0 0 var(--s-3); }
}

/* ---------- shortlist ---------- */
.sl-layout { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
  .sl-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); }
  .sl-side { position: sticky; top: calc(var(--header-h) + 16px); }
}
.sl-side > * + * { margin-top: var(--s-4); }
.sl-side__title { margin: 0 0 var(--s-3); font-family: var(--font-sans); font-size: 17px; font-weight: 600; }
.sl-actions__grid { display: grid; gap: var(--s-2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) and (max-width: 1023.98px) { .sl-actions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sl-actions__grid .btn { justify-content: flex-start; }
.sl-actions .form-note { margin: var(--s-3) 0 0; }
.sl-review p { margin: 0 0 var(--s-3); font-size: 15px; }
.sl-review .btn { white-space: normal; text-align: left; }
.sl-rules { margin: 6px 0 8px; padding-left: 18px; font-size: 14px; }
.sl-rules li + li { margin-top: 2px; }

.sl-bar { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.sl-bar .sec-title { margin: 0; }
.sl-count { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--meta); font-variant-numeric: tabular-nums; }
.sl-help { margin: 0 0 var(--s-3); }
.sl-help .i { color: var(--meta); vertical-align: -3px; }
.sl-empty__btns { justify-content: center; }

.sl-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); overflow-anchor: none; }
body.sl-dragging { overflow-anchor: none; }
.sl-list.is-sorting { user-select: none; -webkit-user-select: none; }
.sl-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "handle body" "pos body" "ctrl ctrl"; grid-template-rows: auto 1fr auto; gap: 4px var(--s-3); margin: 0; padding: 12px 14px 12px 6px; border-top: 1px solid var(--line-soft); background: var(--white); }
.sl-list > .sl-item:first-child { border-top: 0; border-radius: var(--r-card) var(--r-card) 0 0; }
.sl-list > .sl-item:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
.sl-list > .sl-item:only-child { border-radius: var(--r-card); }
.sl-item.is-dragging { z-index: 2; background: var(--white); box-shadow: var(--sh-2); outline: 2px solid var(--blue); outline-offset: -2px; }
.sl-handle { grid-area: handle; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--meta); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.sl-handle:hover { background: var(--surface); color: var(--ink); }
.sl-item.is-dragging .sl-handle { cursor: grabbing; color: var(--blue); }
.sl-pos { grid-area: pos; justify-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--white); }
.sl-body { grid-area: body; min-width: 0; padding-top: 4px; }
.sl-name { margin: 0; font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.35; }
.sl-name a { color: var(--ink); text-decoration: none; }
.sl-name a:hover { color: var(--blue); text-decoration: underline; }
.sl-meta { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--meta); }
.sl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.sl-tags .tag, .pr-row__tags .tag { white-space: normal; }
.sl-cr { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 8px 0; }
.sl-cr dt { font-size: 12px; color: var(--meta); }
.sl-cr dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sl-note { max-width: 560px; }
.sl-ctrl { grid-area: ctrl; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; padding: 8px 0 0 50px; }
.sl-ctrl [data-act="remove"] { margin-left: auto; }
.sl-move { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.sl-move__l { font-size: 12px; color: var(--meta); }
.sl-move__in { width: 68px; min-height: 36px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.sl-move__in::-webkit-outer-spin-button, .sl-move__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (min-width: 768px) {
  .sl-item { grid-template-columns: 44px 32px minmax(0, 1fr) auto; grid-template-areas: "handle pos body ctrl"; grid-template-rows: auto; align-items: start; padding: 14px 16px 14px 6px; }
  .sl-pos { margin-top: 7px; }
  .sl-ctrl { padding: 4px 0 0; flex-wrap: nowrap; }
  .sl-ctrl [data-act="remove"] { margin-left: 0; }
}

/* print: the choice list sheet */
@media print {
  .sl-print { display: block !important; }
  .sl-p-head h1 { margin: 0 0 4pt; font-size: 18pt; }
  .sl-p-head p { margin: 0 0 10pt; font-size: 9.5pt; color: #333; }
  .sl-p-table { width: 100%; }
  .sl-p-table th, .sl-p-table td { vertical-align: top; }
  .sl-p-meta { font-size: 8.5pt; color: #444; }
  .sl-p-note { margin-top: 10pt; font-size: 8.5pt; color: #333; }
  body[data-page="shortlist"] main > .section, body[data-page="shortlist"] .page-head { display: none !important; }
  .pr-form, .pr-tools, .pr-bands, .pr-near, .pr-cta, .pr-row__act, .co-filters, .co-more { display: none !important; }
  .co-wrap.has-max { max-height: none !important; }
}

/* icons inside buttons in empty states keep button size (site.css sizes all .empty .i at 32px) */
.empty .btn .i { width: 18px; height: 18px; margin: 0; color: inherit; }

/* Large screens: wider side panels so the results column does not get lonely */
@media screen and (min-width: 1440px) {
  .pr-layout { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; }
  .sl-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
}

/* NEET PG predictor and closing ranks (pg-predictor.html, pg-cutoffs.html) -------- */
.pr-row__course { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--blue); line-height: 1.35; }
.pgp-subj-btn { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.pgp-modal .modal__body { max-height: min(60vh, 560px); overflow: auto; }
.pgp-subj { margin: 0 0 var(--s-4); padding: 0; border: 0; }
.pgp-subj__legend { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 14px; color: var(--ink); }
.pgp-subj__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; }
@media (min-width: 560px) { .pgp-subj__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pgc-course { display: block; font-weight: 600; color: var(--blue); }
@media (min-width: 1024px) { .pgc-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .pgc-filters { grid-template-columns: repeat(7, minmax(0, 1fr)) auto; } }
.co-inst .pgc-course { font-size: 13.5px; margin-top: 1px; }
.pgc-sum-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.pgc-sum { margin: 0; }
.pgc-sum thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.pgc-sum th[scope="row"] a { color: var(--ink); text-decoration: none; font-weight: 600; }
.pgc-sum th[scope="row"] a:hover { color: var(--blue); text-decoration: underline; }
.pgc-d-course { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line-soft); color: var(--blue); }
.co-d-q:first-of-type .pgc-d-course { margin-top: 0; border-top: 0; padding-top: 0; }
.pgc-d-quota { margin: var(--s-2) 0 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.sl-course { margin: 1px 0 2px; font-size: 14.5px; font-weight: 600; color: var(--blue); }
.sl-switch button .chip__count { margin-left: 4px; }
