/* Shared applicant background + target-school picker (Atlas + Decision Hub) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.applicant-profile-card {
  margin-top: 0.75rem;
  padding: 1.15rem 1.25rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f0fdfa 100%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.applicant-profile-header {
  margin-bottom: 1rem;
}

.applicant-profile-header h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text, #0f172a);
}

.applicant-profile-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary, #475569);
  max-width: 52rem;
}

.applicant-profile-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .applicant-profile-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }
}

.applicant-field-block {
  margin: 0 0 1rem;
}

.applicant-field-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary, #64748b);
}

.field-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 0.4rem;
}

.applicant-statement-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 7.5rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.applicant-statement-input:focus {
  outline: none;
  border-color: var(--module-accent, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

.field-hint.is-ready {
  color: #047857;
  font-weight: 600;
}

.supervision-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.supervision-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.supervision-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.supervision-pill:has(input:checked) {
  border-color: var(--module-accent, #0d9488);
  background: rgba(13, 148, 136, 0.12);
  color: #115e59;
}

.supervision-pill:hover {
  border-color: #94a3b8;
}

.target-schools-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.target-schools-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.target-schools-search {
  flex: 1 1 12rem;
  min-width: 0;
}

.target-schools-search input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.target-schools-count {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  white-space: nowrap;
}

.target-schools-clear {
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
}

.target-schools-scroll {
  max-height: 13.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem;
  scrollbar-width: thin;
}

.target-school-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.35;
}

.target-school-row:hover {
  background: #f1f5f9;
}

.target-school-row[hidden] {
  display: none;
}

.target-school-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--module-accent, #0d9488);
}

.target-school-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.target-school-row-name {
  font-weight: 600;
  color: #0f172a;
}

.target-school-row-short {
  font-size: 0.76rem;
  color: #64748b;
}

.target-schools-empty {
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

.applicant-profile-footer {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

.applicant-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.35rem;
}

.applicant-profile-apply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.applicant-profile-status {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #047857;
}

.applicant-profile-status.is-partial {
  color: #b45309;
}

.applicant-profile-status.is-empty {
  color: #64748b;
  font-weight: 500;
}

.applicant-profile-status.is-applied {
  color: #047857;
}

#panel-background.workspace-panel--profile {
  border: none;
  padding-bottom: 0.25rem;
}

#panel-background.workspace-panel--profile > summary {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: #0f172a;
}

#panel-background.workspace-panel--profile[open] > summary {
  margin-bottom: 0.15rem;
}
