/* Applicants (2.15.1): copy-link card, pipeline chips, list beside a detail panel. Colours come from the tokens in app.css, so dark mode follows automatically. */
.apl-links { margin-bottom: 16px; }
.apl-links-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.apl-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.apl-link { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.apl-link-l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-bottom: 6px; }
.apl-link-r { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.apl-url { flex: 1 1 160px; min-width: 0; font-size: 13px; }
.apl-hidden-ta { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.apl-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 12px 0 16px; }
.apl-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.apl-chip b { font-weight: 700; }
.apl-chip:hover { border-color: var(--border-strong); }
.apl-chip.on { border-color: var(--navy); background: var(--navy-tint); color: var(--navy); }
.apl-chip.on.st-received { border-color: var(--st-ns-fg); background: var(--st-ns-bg); color: var(--st-ns-fg); }
.apl-chip.on.st-reviewed { border-color: var(--st-ip-fg); background: var(--st-ip-bg); color: var(--st-ip-fg); }
.apl-chip.on.st-shortlisted { border-color: var(--st-rv-fg); background: var(--st-rv-bg); color: var(--st-rv-fg); }
.apl-chip.on.st-interview, .apl-chip.on.st-offer { border-color: var(--st-wt-fg); background: var(--st-wt-bg); color: var(--st-wt-fg); }
.apl-chip.on.st-hired { border-color: var(--st-dn-fg); background: var(--st-dn-bg); color: var(--st-dn-fg); }
.apl-chip.on.st-rejected { border-color: var(--st-od-fg); background: var(--st-od-bg); color: var(--st-od-fg); }
.apl-chip:focus-visible, .apl-card:focus-visible, .apl-tab:focus-visible, .apl-spill:focus-visible { outline: none; box-shadow: var(--focus); }
.apl-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; min-height: 420px; }
.apl-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.apl-card { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.apl-card:hover { border-color: var(--border-strong); }
.apl-card.sel { border-color: var(--navy); background: var(--navy-tint); }
.apl-card-m { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 18px; }
.apl-card-n { font-weight: 700; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apl-card-s { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.apl-av { position: relative; width: 38px; height: 38px; border-radius: 999px; background: var(--navy-tint); color: var(--navy); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; overflow: hidden; }
.apl-av.lg { width: 56px; height: 56px; font-size: 18px; }
.apl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apl-badge { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--crimson-solid); color: #fff; font-size: 12px; font-weight: 700; }
.apl-panel { min-width: 0; overflow-wrap: anywhere; }
.apl-back { display: none; margin-bottom: 10px; }
.apl-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.apl-head-m { min-width: 0; flex: 1; }
.apl-head-m h3 { margin: 0 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 600; }
.apl-head-p { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.apl-pos { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--navy-tint); color: var(--navy); }
.apl-pos.associate { background: var(--st-od-bg); color: var(--st-od-fg); }
.apl-pos.paralegal { background: var(--st-rv-bg); color: var(--st-rv-fg); }
.apl-pos.open { background: var(--st-wt-bg); color: var(--st-wt-fg); }
.apl-pos.intern { background: var(--st-ip-bg); color: var(--st-ip-fg); }
.apl-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.apl-tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.apl-tab.on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.apl-tabn { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.apl-tabn.new { background: var(--crimson-solid); color: #fff; }
.apl-dl { margin: 0 0 8px; display: flex; flex-direction: column; }
.apl-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.apl-kv:last-child { border-bottom: 0; }
.apl-kv dt { color: var(--text-2); font-size: 13px; }
.apl-kv dd { margin: 0; overflow-wrap: anywhere; }
.apl-sec { margin-top: 22px; }
.apl-sec.first { margin-top: 0; }
.apl-sec h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.apl-cover { white-space: pre-wrap; max-height: 280px; overflow: auto; }
.apl-job { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.apl-jobic { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 700; flex: none; }
.apl-jobm { min-width: 0; font-size: 14px; }
.apl-jobt { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 13px; }
.apl-ty { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.apl-ty.paid, .apl-jobic.paid { background: var(--st-dn-bg); color: var(--st-dn-fg); }
.apl-ty.volunteer, .apl-jobic.volunteer { background: var(--st-ip-bg); color: var(--st-ip-fg); }
.apl-ty.internship, .apl-jobic.internship { background: var(--st-rv-bg); color: var(--st-rv-fg); }
.apl-ty.contract, .apl-jobic.contract { background: var(--st-wt-bg); color: var(--st-wt-fg); }
.apl-ty.parttime, .apl-jobic.parttime { background: var(--st-od-bg); color: var(--st-od-fg); }
.apl-ty.other, .apl-jobic.other { background: var(--st-ns-bg); color: var(--st-ns-fg); }
.apl-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.apl-file .grow { flex: 1; min-width: 160px; }
.apl-thumb { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; border: 1px solid var(--border); }
.apl-prev { margin-top: 12px; }
.apl-img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.apl-viewer { min-height: 0; max-height: 440px; overflow: auto; padding: 24px 8px 8px; }
.apl-pages { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.apl-thread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.apl-msg { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); max-width: 92%; }
.apl-msg.firm { align-self: flex-end; background: var(--navy-tint); }
.apl-msg-h { font-size: 13px; margin-bottom: 2px; }
.apl-msg-b { white-space: pre-wrap; font-size: 14px; line-height: 20px; }
.apl-new { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--crimson-solid); color: #fff; font-size: 11px; font-weight: 700; }
.apl-gapt { margin-top: 8px; }
.apl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.apl-spill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.apl-spill:disabled { opacity: .5; cursor: default; }
.apl-spill.on { font-weight: 700; }
.apl-spill.on.st-received { border-color: var(--st-ns-fg); background: var(--st-ns-bg); color: var(--st-ns-fg); }
.apl-spill.on.st-reviewed { border-color: var(--st-ip-fg); background: var(--st-ip-bg); color: var(--st-ip-fg); }
.apl-spill.on.st-shortlisted { border-color: var(--st-rv-fg); background: var(--st-rv-bg); color: var(--st-rv-fg); }
.apl-spill.on.st-interview, .apl-spill.on.st-offer { border-color: var(--st-wt-fg); background: var(--st-wt-bg); color: var(--st-wt-fg); }
.apl-spill.on.st-hired { border-color: var(--st-dn-fg); background: var(--st-dn-bg); color: var(--st-dn-fg); }
.apl-spill.on.st-rejected { border-color: var(--st-od-fg); background: var(--st-od-bg); color: var(--st-od-fg); }
@media (max-width: 860px) {
  .apl-links-grid { grid-template-columns: minmax(0, 1fr); }
  .apl-split { grid-template-columns: minmax(0, 1fr); }
  .apl-split.has-sel .apl-list { display: none; }
  .apl-split:not(.has-sel) .apl-detail { display: none; }
  .apl-back { display: inline-flex; }
  .apl-kv { grid-template-columns: 110px minmax(0, 1fr); }
}
