.supervisor-profile-list{display:flex;flex-direction:column;gap:12px}
.supervisor-profile-card{overflow:hidden}
.supervisor-profile-card>summary{list-style:none}
.supervisor-profile-card>summary::-webkit-details-marker{display:none}
.supervisor-profile-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;cursor:pointer}
.supervisor-profile-summary:hover{background:rgba(0,122,255,.025)}
.supervisor-profile-name{font-size:17px;font-weight:820;letter-spacing:-.015em;margin-bottom:4px}
.supervisor-summary-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.supervisor-profile-details{border-top:1px solid var(--line);padding:18px 20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;background:var(--surface-2)}
.supervisor-detail-item{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;min-width:0}
.supervisor-detail-item .label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.045em;font-weight:800;margin-bottom:6px}
.supervisor-detail-item .value{font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.supervisor-detail-wide{grid-column:span 3}
.supervisor-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.supervisor-form-grid>.field{margin:0}
.supervisor-form-wide{grid-column:span 2}
.supervisor-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.supervisor-profile-grid .info-card .value{font-size:14px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
.supervisor-profile-wide{grid-column:span 3}

/* Student dashboard — compact information hierarchy */
.student-quick-info{grid-template-columns:repeat(4,minmax(0,1fr))}
.student-phone-info-card{min-width:0}
.student-phone-info-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.student-phone-edit-btn{padding:5px 8px;min-height:28px;border-radius:9px;font-size:10px}
.student-phone-compact{margin:0 0 18px;padding:15px}
.student-phone-compact .student-phone-info-card{border:0;box-shadow:none;padding:0}
.student-phone-compact .student-phone-info-card::before{display:none}
.student-hero-actions{display:flex;justify-content:flex-end;margin-top:16px;position:relative;z-index:2}
.student-hero-lecture-btn{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.3);box-shadow:none;backdrop-filter:blur(8px)}
.student-hero-lecture-btn:hover{background:rgba(255,255,255,.24)}
.student-supervisor-section{margin-bottom:18px}
.student-supervisor-contact-list{display:flex;flex-direction:column;gap:10px}
.student-supervisor-card{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);gap:18px;align-items:center;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.student-supervisor-name{font-size:16px;font-weight:820;letter-spacing:-.015em;line-height:1.35}
.student-supervisor-academic{font-size:13px;font-weight:720;color:var(--category-purple);margin-top:4px}
.student-supervisor-course{font-size:12px;color:var(--muted);margin-top:7px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.student-supervisor-contact-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.student-supervisor-contact-values>div{background:#fff;border:1px solid rgba(229,229,234,.88);border-radius:11px;padding:10px 12px;min-width:0}
.student-supervisor-contact-values span,.student-supervisor-contact-values strong{display:block}
.student-supervisor-contact-values span{font-size:11px;color:var(--muted);font-weight:720}
.student-supervisor-contact-values strong{font-size:13px;margin-top:4px;overflow-wrap:anywhere;line-height:1.4}

/* Stable route-based sidebar icons instead of position-based icons */
.nav button[onclick="go('dashboard')"]::before{content:"⌂"}
.nav button[onclick="go('students')"]::before{content:"♙"}
.nav button[onclick="go('supervisors')"]::before{content:"✚"}
.nav button[onclick="go('courses')"]::before{content:"▣"}
.nav button[onclick="go('enrollments')"]::before{content:"⇄"}
.nav button[onclick="go('violations')"]::before{content:"!"}
.nav button[onclick="go('accounts')"]::before{content:"◎"}
.nav button[onclick="go('lecture-links')"]::before{content:"▤"}

/* Doctor self profile — compact dashboard card */
.doctor-profile-panel{padding:0!important;overflow:hidden;margin-bottom:16px}
.doctor-profile-compact>summary{list-style:none}
.doctor-profile-compact>summary::-webkit-details-marker{display:none}
.doctor-profile-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;background:linear-gradient(135deg,rgba(0,122,255,.07),rgba(175,82,222,.035) 55%,rgba(52,199,89,.035))}
.doctor-profile-summary-self{cursor:pointer}
.doctor-profile-compact[open]>.doctor-profile-summary-self{border-bottom:1px solid var(--line)}
.doctor-profile-identity{display:flex;align-items:center;gap:13px;min-width:0}
.doctor-profile-avatar{width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;border-radius:14px;background:var(--action-blue);color:#fff;font-size:15px;font-weight:850;letter-spacing:.04em;box-shadow:0 6px 16px rgba(0,122,255,.15)}
.doctor-profile-heading{min-width:0}
.doctor-profile-eyebrow{font-size:10px;line-height:1.3;text-transform:uppercase;letter-spacing:.075em;color:var(--action-blue);font-weight:850;margin-bottom:3px}
.doctor-profile-heading h3{font-size:19px;line-height:1.22;letter-spacing:-.025em;margin:0 0 2px;font-weight:850;color:var(--text)}
.doctor-profile-subtitle{font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.doctor-profile-academic-summary{font-size:12px;line-height:1.35;color:var(--category-purple);font-weight:720;margin-top:4px}
.doctor-profile-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.doctor-profile-header-actions .btn{min-height:36px;padding:8px 12px}
.doctor-profile-toggle{font-size:11px;font-weight:760;color:var(--muted);white-space:nowrap;min-width:80px;text-align:right}
.doctor-profile-toggle-open{display:none}
.doctor-profile-compact[open] .doctor-profile-toggle-closed{display:none}
.doctor-profile-compact[open] .doctor-profile-toggle-open{display:inline}
.doctor-profile-content{padding:4px 20px 18px}
.doctor-profile-content-compact{background:#fff}
.doctor-profile-section{padding:14px 0;border-bottom:1px solid var(--line)}
.doctor-profile-section:last-child{border-bottom:0;padding-bottom:0}
.doctor-profile-section-title{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.doctor-profile-section-title>span{width:7px;height:7px;border-radius:999px;background:var(--action-blue);box-shadow:0 0 0 4px rgba(0,122,255,.09)}
.doctor-profile-section-title h4{margin:0;font-size:13px;line-height:1.35;font-weight:850;letter-spacing:-.005em;color:var(--text)}
.doctor-profile-grid{display:grid;gap:9px}
.doctor-profile-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.doctor-profile-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.doctor-profile-field{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
.doctor-profile-field-wide{grid-column:1/-1}
.doctor-profile-label{font-size:10px;line-height:1.35;color:var(--muted);font-weight:750;margin-bottom:4px}
.doctor-profile-value{font-size:13px;line-height:1.45;font-weight:680;color:var(--text);overflow-wrap:anywhere}
.doctor-profile-field-multiline .doctor-profile-value{font-weight:570;white-space:pre-wrap;min-height:20px}

/* Doctor self-edit modal */
.doctor-profile-locked-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.doctor-profile-locked-item{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.doctor-profile-locked-item span{font-size:11px;color:var(--muted);font-weight:750}
.doctor-profile-locked-item strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.doctor-profile-locked-item small{font-size:10px;color:var(--muted)}
.doctor-profile-edit-section{padding:16px 0;border-top:1px solid var(--line)}
.doctor-profile-edit-section h4{margin:0 0 12px;font-size:13px;font-weight:850}
.doctor-profile-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.doctor-profile-edit-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.doctor-profile-edit-grid>.field{margin:0;min-width:0}
.doctor-profile-edit-wide{grid-column:1/-1}
.doctor-profile-edit-wide textarea{min-height:90px;resize:vertical}
.doctor-profile-edit-note{margin:3px 0 2px;padding:10px 12px;border-radius:10px;background:rgba(255,149,0,.08)}

@media(max-width:1180px){
  .student-quick-info{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:900px){
  .supervisor-profile-details,.supervisor-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .supervisor-detail-wide,.supervisor-profile-wide{grid-column:span 2}
  .student-supervisor-card{grid-template-columns:1fr}
  .doctor-profile-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .doctor-profile-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .doctor-profile-header{align-items:flex-start}
  .doctor-profile-header-actions{flex-wrap:wrap;justify-content:flex-end}
}

@media(max-width:820px){
  .student-quick-info{grid-template-columns:1fr}
  .student-hero-actions{justify-content:stretch}
  .student-hero-lecture-btn{width:100%}
}

@media(max-width:640px){
  .supervisor-profile-summary{align-items:flex-start;flex-direction:column}
  .supervisor-summary-actions{width:100%;justify-content:space-between}
  .supervisor-profile-details,.supervisor-profile-grid,.supervisor-form-grid{grid-template-columns:1fr}
  .supervisor-detail-wide,.supervisor-profile-wide,.supervisor-form-wide{grid-column:span 1}
  .student-supervisor-contact-values{grid-template-columns:1fr}
  .student-supervisor-card{padding:13px}
  .doctor-profile-panel{margin-bottom:14px}
  .doctor-profile-header{align-items:flex-start;flex-direction:column;padding:15px;gap:13px}
  .doctor-profile-identity{align-items:flex-start}
  .doctor-profile-avatar{width:44px;height:44px;flex-basis:44px;border-radius:13px}
  .doctor-profile-heading h3{font-size:18px}
  .doctor-profile-header-actions{width:100%;justify-content:flex-start}
  .doctor-profile-toggle{margin-left:auto}
  .doctor-profile-content{padding:2px 14px 15px}
  .doctor-profile-section{padding:13px 0}
  .doctor-profile-grid-2,.doctor-profile-grid-3{grid-template-columns:1fr}
  .doctor-profile-field-wide{grid-column:span 1}
  .doctor-profile-locked-row,.doctor-profile-edit-grid,.doctor-profile-edit-grid-2{grid-template-columns:1fr}
  .doctor-profile-edit-wide{grid-column:span 1}
}
