/* Standalone profile workspace, sharing Solon's typography and color tokens. */
.chat-panel[hidden], .student-profile-panel[hidden] { display: none; }
.student-profile-panel { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.student-profile-header { display: flex; align-items: center; gap: 12px; height: 52px; flex: 0 0 52px; padding: 0 24px 0 28px; border-bottom: 1px solid var(--hairline); }
.student-profile-header h1 { margin: 0; flex: 1; font-size: 14px; font-weight: 600; }
.student-profile-header h1:focus { outline: none; }
.profile-edit-button { border: 0; border-radius: 7px; background: var(--fill-2); padding: 7px 13px; font-size: 12px; color: var(--text); cursor: pointer; }
.profile-edit-button:hover { background: var(--fill); }
.profile-edit-button:disabled { opacity: .5; cursor: default; }
.student-profile-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.student-profile-content { max-width: 960px; margin: 0 auto; padding: 44px 40px 36px; }
.student-profile-content h2, .student-profile-content h3, .student-profile-content p { margin: 0; }
.student-profile-content h2 { font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.profile-identity { display: flex; align-items: center; gap: 24px; margin-bottom: 34px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 80px; height: 80px; margin: 0; border: 0; border-radius: 50%; background: #e5e5ea; color: var(--text-4); }
.profile-avatar .solon-icon { width: 30px; height: 30px; stroke-width: 1.35; }
.profile-identity-copy { min-width: 0; }
.profile-eyebrow { color: var(--text-3); font-size: 12px; }
.profile-identity h2 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.18; margin: 5px 0 8px; overflow-wrap: anywhere; }
.profile-identity-meta { display: flex; flex-wrap: wrap; gap: 4px 9px; font-size: 13px; color: var(--text-2); }
.profile-identity-meta > span + span::before { content: '·'; color: var(--text-4); margin-right: 9px; }
.profile-account-id { color: var(--text-3); max-width: 260px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-stats { display: grid; grid-template-columns: .95fr 1.05fr 1.05fr 1.05fr; margin-bottom: 26px; border-block: 1px solid var(--hairline); }
.profile-stat { padding: 19px 18px 17px; min-width: 0; border-left: 1px solid var(--hairline); }
.profile-stat:first-child { padding-left: 0; border-left: 0; }
.profile-stat h3, .profile-enrollment-card h3 { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.profile-stat-value { font-size: 28px; font-weight: 600; line-height: 1.15; margin: 5px 0 3px; }
.profile-stat p { font-size: 11px; line-height: 1.4; color: var(--text-3); }
.profile-graduation { overflow-wrap: anywhere; }
.profile-gpa-value { display: flex; align-items: center; gap: 8px; }
.profile-gpa-value .is-hidden { color: #aaaab2; letter-spacing: 4px; font-size: 23px; }
.profile-eye-button { display: inline-grid; place-items: center; width: 26px; height: 28px; border: none; padding: 4px; border-radius: 5px; background: transparent; color: var(--text-3); cursor: pointer; }
.profile-eye-button[hidden] { display: none; }
.profile-eye-button:hover { background: var(--fill); }
.profile-eye-button:disabled { opacity: .5; }
.profile-eye-button .solon-icon { width: 15px; height: 15px; }
.profile-transcript { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #f5f5f7; }
.profile-file-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; border: 1px solid var(--hairline); background: white; color: var(--text-2); }
.profile-transcript-copy { flex: 1; min-width: 0; }
.profile-transcript h3 { font-size: 14px; font-weight: 550; }
.profile-transcript p { color: var(--text-3); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.profile-import-button { flex-shrink: 0; min-height: 30px; padding: 6px 15px; font-size: 12px; }
.profile-import-button:disabled { opacity: .5; cursor: wait; }
.student-profile-content .profile-source-note { margin: 9px 3px 0; font-size: 11px; color: var(--text-3); line-height: 1.5; }
.profile-data-warning { margin-bottom: 14px; padding: 12px; background: var(--warning-soft); color: var(--warn); border-radius: 8px; font-size: 13px; }
.profile-data-warning button { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.profile-completed { margin-top: 46px; }
.profile-courses-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.profile-courses-toolbar p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.profile-course-controls { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.profile-course-search { display: flex; align-items: center; gap: 7px; width: 206px; min-width: 0; padding: 7px 10px; border-radius: 8px; background: var(--fill-2); color: var(--text-3); }
.profile-course-search .solon-icon { width: 13px; height: 13px; }
.profile-course-search input { width: 100%; min-width: 0; padding: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; border: 0; outline: none; }
.profile-course-search:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.profile-sort { display: inline-flex; gap: 1px; border-radius: 7px; padding: 2px; background: var(--fill-2); }
.profile-sort button { border: 0; border-radius: 5px; padding: 5px 10px; color: var(--text); background: transparent; font-size: 11px; white-space: nowrap; cursor: pointer; }
.profile-sort button[aria-pressed=true] { background: white; box-shadow: 0 1px 3px rgba(0,0,0,.09); }
.profile-course-columns { columns: 2; column-gap: 48px; padding-top: 17px; }
.profile-subject { break-inside: avoid; padding-bottom: 21px; }
.profile-subject h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 7px 7px; font-size: 12px; font-weight: 550; border-bottom: 1px solid var(--hairline); }
.profile-subject-count { color: var(--text-3); font-size: 11px; font-weight: 400; }
.profile-subject ul, .profile-course-flat { list-style: none; padding: 0; margin: 0; }
.profile-course-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 12px; align-items: baseline; gap: 10px; padding: 8px 7px; break-inside: avoid; font-size: 12px; line-height: 1.35; }
.profile-course-code { font-weight: 500; overflow-wrap: anywhere; }
.profile-course-title { color: var(--text-2); overflow-wrap: anywhere; }
.profile-course-check { color: var(--ok); }
.profile-course-check .solon-icon { width: 12px; height: 12px; stroke-width: 1.5; }
.profile-course-alphabetical { padding-top: 12px; }
.profile-course-flat { columns: 2; column-gap: 48px; }
.profile-course-row:hover { background: var(--fill-2); border-radius: 5px; }
.profile-empty-state { padding: 40px 0; font-size: 14px; color: var(--text-3); line-height: 1.7; }
.profile-empty-state .quiet-button { margin-top: 12px; }
.profile-quarter { margin-top: 40px; }
.profile-quarter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.profile-enrollment-card { padding: 20px 18px; min-width: 0; border: 1px solid var(--hairline); border-radius: 14px; }
.profile-enrollment-card h3 { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.profile-enrollment-card h3 span { color: var(--text-3); }
.profile-enrollment-card p { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.profile-enrollment-card ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; }
.profile-enrollment-card li { border-radius: 5px; background: var(--fill); padding: 5px 8px; font-size: 12px; }
.profile-plan-link { display: inline-block; border: 0; background: none; padding: 7px 0 0; color: var(--accent-text); font-size: 12px; text-align: left; cursor: pointer; }
.profile-plan-link:hover { text-decoration: underline; }
.profile-enrollment-card .profile-small-note, .profile-small-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.student-profile-danger { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--hairline); margin-top: 44px; padding-top: 22px; }
.student-profile-danger h3 { font-size: 14px; font-weight: 500; }
.student-profile-danger p { font-size: 12px; line-height: 1.5; color: var(--text-3); margin-top: 4px; }
.profile-delete-button { flex-shrink: 0; padding: 7px 14px; border: 1px solid rgba(215,0,21,.25); border-radius: 18px; color: var(--bad); font-size: 12px; background: transparent; cursor: pointer; }
.profile-delete-button:hover { background: var(--danger-soft); }
@media (max-width: 1150px) {
  .student-profile-content { padding-inline: 32px; }
  .profile-courses-toolbar { align-items: flex-start; flex-direction: column; }
  .profile-course-controls { width: 100%; }
  .profile-course-search { flex: 1; }
  .profile-course-columns, .profile-course-flat { column-gap: 28px; }
  .profile-course-row { grid-template-columns: 78px minmax(0, 1fr) 12px; gap: 6px; }
}
@media (min-width: 701px) and (max-width: 900px), (max-width: 600px) {
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .profile-stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .profile-course-columns, .profile-course-flat { columns: 1; }
  .profile-transcript { display: grid; grid-template-columns: 40px minmax(0, 1fr); }
  .profile-import-button { grid-column: 2; justify-self: start; max-width: 100%; }
}
@media (max-width: 700px) {
  .student-profile-header { padding-inline: 12px; }
  .student-profile-content { padding: 30px 22px max(28px, env(safe-area-inset-bottom)); }
  .profile-identity { gap: 16px; align-items: flex-start; margin-bottom: 26px; }
  .profile-avatar { flex-basis: 54px; height: 54px; }
  .profile-avatar .solon-icon { width: 24px; height: 24px; }
  .profile-identity h2 { font-size: 24px; }
  .profile-identity-meta { font-size: 12px; }
  .profile-identity-meta > span { flex-basis: 100%; }
  .profile-identity-meta > span + span::before { content: none; }
  .profile-completed { margin-top: 32px; }
  .profile-quarter-grid { grid-template-columns: 1fr; gap: 12px; }
  .profile-course-row { grid-template-columns: 85px minmax(0, 1fr) 12px; }
  .profile-course-search { width: 0; }
  .profile-sort button { padding-inline: 8px; }
  .profile-course-controls { gap: 8px; }
  .profile-transcript { padding: 14px; gap: 12px; }
  .profile-transcript h3 { font-size: 13px; }
  .profile-transcript p { font-size: 11px; }
  .student-profile-danger { align-items: flex-start; flex-direction: column; gap: 14px; }
}
