/* Personnel and student records share one calm, readable workspace. */
.person-workspace{--record-ink:#27272a;--record-muted:#71717a;--record-surface:#fff;--record-soft:#f1f1f2;--record-line:#e7e7e9;--record-accent:#8d1530;color:var(--record-ink);font-variant-numeric:tabular-nums;}
.dark .person-workspace{--record-ink:#ededf0;--record-muted:#a1a1aa;--record-surface:#232326;--record-soft:#2c2c30;--record-line:#39393e;--record-accent:#e7a5b5;}
.dense-ui .person-workspace .detail-page-heading{position:static;align-items:center;padding:0 0 24px;margin:0;background:transparent;border:0;box-shadow:none;}
.dense-ui .person-workspace .module-title,.dense-ui .person-workspace>header h1{font-size:28px;font-weight:650;letter-spacing:-.035em;line-height:1.25;text-transform:none;color:var(--record-ink);}
.person-workspace .module-title-group>p{font-size:12px;font-weight:400;line-height:1.7;margin-top:8px;color:var(--record-muted);}
.dense-ui .person-workspace .person-record-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:28px;align-items:start;}
.dense-ui .person-workspace .person-record-layout:not(:has(>.person-record-context)){grid-template-columns:minmax(0,1fr);}
.person-workspace .person-record-context{position:static;}
.dense-ui .person-workspace .person-record-content{container-type:inline-size;min-width:0;}
.dense-ui .person-workspace .person-record-content .ui-panel{border:0;border-radius:12px;background:var(--record-surface);box-shadow:none;padding:28px;margin-top:20px;}
.dense-ui .person-workspace .person-record-content .ui-panel .ui-panel{padding:18px 0;border-radius:0;background:transparent;box-shadow:none;border-top:1px solid var(--record-line);}
.dense-ui .person-workspace .person-record-context .ui-panel,.person-workspace .record-summary{padding:22px 18px;border:0;border-radius:12px;background:var(--record-surface);box-shadow:none;}
.person-workspace .record-summary{text-align:center;margin-bottom:20px;}
.person-workspace .record-summary .shrink-0>div:first-child{width:108px;height:140px;margin:0 auto 12px;}
.person-workspace .record-summary dl{text-align:left;margin:24px 0 0;display:grid;gap:18px;}
.person-workspace .record-summary dt{font-size:11px;color:var(--record-muted);margin-bottom:4px;}
.person-workspace .record-summary dd{font-size:13px;font-weight:500;line-height:1.6;overflow-wrap:anywhere;}
.dense-ui .person-workspace .person-tabs,.dense-ui .person-workspace .profile-form>.module-tabbar{display:flex;width:100%;gap:24px;border-bottom:1px solid var(--record-line);margin:0;padding:0;background:transparent;border-radius:0;}
.dense-ui .person-workspace .module-tab{border-radius:0;background:transparent;border:0;border-bottom:2px solid transparent;font-size:13px;font-weight:500;text-transform:none;letter-spacing:0;padding:12px 0;height:48px;min-height:48px;flex-shrink:0;color:var(--record-muted);}
.dense-ui .person-workspace .module-tab[aria-pressed="true"],.dense-ui .person-workspace .module-tab[aria-selected="true"]{border-bottom-color:var(--record-accent);color:var(--record-accent);background:transparent;}
.dense-ui .person-workspace .record-section-title{font-size:15px;font-weight:600;letter-spacing:-.015em;text-transform:none;border:0;padding:0;margin:0 0 24px;color:var(--record-ink);}
.dense-ui .person-workspace .record-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 32px;}
.person-workspace .person-record-content label:not(.ui-btn){font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--record-muted);line-height:1.5;}
.person-workspace .person-record-content .font-semibold{font-weight:450;line-height:1.7;}
.person-workspace :is(button,.ui-btn,.primary-action,.secondary-action){font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;box-shadow:none;}
.person-workspace :is(input,select,textarea){font-size:13px;font-weight:400;border-color:var(--record-line);background:var(--record-surface);color:var(--record-ink);border-radius:8px;}
.person-workspace :is(input,select,textarea):focus-visible{outline:2px solid var(--record-accent);outline-offset:2px;}
.person-workspace :is(button,a,label[role="button"]):focus-visible{outline:2px solid var(--record-accent);outline-offset:3px;}
.person-workspace .person-record-content table{width:100%;font-size:13px;}
.person-workspace .person-record-content th{font-size:12px;font-weight:500;padding:14px 18px;text-transform:none;letter-spacing:0;background:var(--record-soft);color:var(--record-muted);}
.person-workspace .person-record-content td{padding:18px;line-height:1.6;font-weight:400;border-color:var(--record-line);}
.person-workspace .staff-document-list{grid-template-columns:1fr;gap:0;}
.person-workspace .staff-document-row{padding:22px 0;border-color:var(--record-line);}
.person-workspace .staff-document-row:first-child{padding-top:4px;}
.person-workspace .staff-document-row strong{font-size:13px;font-weight:500;}
.person-workspace .staff-document-row p{font-size:12px;color:var(--record-muted);overflow-wrap:anywhere;}
.person-workspace .document-kind{display:flex;align-items:center;gap:16px;min-width:0;}
.person-workspace .document-kind>iconify-icon{font-size:22px;color:var(--record-muted);flex-shrink:0;}
.person-workspace .document-kind>.document-complete{color:var(--record-accent);}
.person-workspace .document-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;}
.person-workspace .document-toolbar>span{font-size:13px;color:var(--record-muted);}
.person-workspace .document-error{padding:14px 18px;background:var(--record-soft);color:var(--record-accent);border-radius:8px;}
.dense-ui .person-workspace .profile-settings-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:28px;max-width:1500px;margin:0 auto;}
.dense-ui .person-workspace .profile-identity{background:var(--record-surface);border:0;box-shadow:none;border-radius:12px;padding:24px;}
.dense-ui .person-workspace .profile-form{background:transparent;border:0;box-shadow:none;padding:0;min-width:0;}
.person-workspace .profile-form>form,.person-workspace .self-staff-documents{padding:28px;background:var(--record-surface);border:0;border-radius:12px;}
.person-workspace .profile-form dd{font-size:14px;line-height:1.7;}
@container person-form (max-width:600px){.dense-ui .person-workspace .record-fields,.dense-ui .person-workspace .person-record-content .ui-grid{grid-template-columns:minmax(0,1fr);}.person-workspace .person-record-content .ui-grid>*{grid-column:auto;}}
@media(max-width:1000px){.dense-ui .person-workspace .person-record-layout,.dense-ui .person-workspace .profile-settings-layout{grid-template-columns:minmax(0,1fr);gap:24px;}.person-workspace .person-record-context{display:grid;grid-template-columns:218px minmax(0,1fr);gap:20px;}.person-workspace .person-record-context>*{margin:0!important;}.person-workspace .person-record-context .ui-panel{align-self:start;}.dense-ui .person-workspace .profile-identity{display:block;}}
@media(max-width:600px){.dense-ui .person-workspace .module-title{font-size:23px;}.dense-ui .person-workspace .detail-page-heading{align-items:stretch;gap:20px;}.person-workspace .detail-page-heading>div:last-child{flex-wrap:wrap;}.person-workspace .person-record-context{grid-template-columns:minmax(0,1fr);}.person-workspace .record-summary{display:flex;align-items:center;gap:24px;text-align:left;}.person-workspace .record-summary dl{margin:0;gap:12px;}.person-workspace .record-summary .shrink-0>div:first-child{width:84px;height:112px;}.dense-ui .person-workspace .person-record-content .ui-panel,.person-workspace .profile-form>form,.person-workspace .self-staff-documents{padding:22px 18px;}.person-workspace .staff-document-row{align-items:stretch;gap:16px;}.person-workspace .staff-document-actions{justify-content:flex-end;}.person-workspace .person-record-context .ui-panel{padding:18px;}.person-workspace .person-tabs{gap:22px;}}
@media(prefers-reduced-motion:reduce){.person-workspace *{animation:none!important;transition:none!important;}}

.dense-ui .person-workspace .person-tabs{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:thin;}
.person-workspace .record-readiness{font-size:12px;text-align:left;color:var(--record-muted);padding-top:16px;border-top:1px solid var(--record-line);}
.person-workspace .record-readiness summary{cursor:pointer;line-height:1.6;}
.person-workspace .record-readiness ul{margin-top:14px;font-size:12px;font-weight:400;line-height:1.7;}

.dense-ui .person-workspace .profile-form>.module-tabbar{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:thin;}
@media(max-width:600px){
 .dense-ui .person-workspace .profile-identity{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:12px 18px;}
 .person-workspace .profile-identity>img,.person-workspace .profile-identity>div:first-child{grid-column:1;grid-row:1;width:64px;height:80px;}
 .person-workspace .profile-identity>h2{grid-column:2;grid-row:1;margin:0;align-self:center;font-size:16px;}
 .person-workspace .profile-identity>label{grid-column:1/-1;margin:0;}
 .person-workspace .profile-identity>dl{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding-top:12px;border-top:1px solid var(--record-line);}
 .person-workspace .profile-identity>dl>div{margin:0!important;}
 .person-workspace .profile-identity>dl>div:last-child{grid-column:1/-1;}
 .person-workspace .self-staff-documents .staff-document-row{flex-direction:row;align-items:center;gap:12px;}
 .person-workspace .self-staff-documents .document-kind{gap:12px;}
}

/* Student portrait and digital card stand on their own, without enclosing cards. */
.person-workspace .student-photo{padding:0;background:transparent;border:0;box-shadow:none;text-align:center;}

.person-workspace .student-photo img{width:100%;height:100%;object-fit:cover;}
.person-workspace .student-ktm,.person-workspace .student-ktm-preview{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;min-width:0;}
.person-workspace .student-ktm iframe{border:0;display:block;width:100%;background:transparent;}
.person-workspace .student-photo,.person-workspace .student-ktm{width:min(100%,218px);}
@media(max-width:600px){.person-workspace .student-photo,.person-workspace .student-ktm{width:min(100%,240px);margin-inline:auto!important;}}

/* Shared top-right media controls, revealed on hover or keyboard focus. */
.person-workspace .student-photo-surface{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:var(--record-soft);}
.person-workspace .student-photo-surface>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.person-workspace .student-photo-placeholder{font-size:56px;color:var(--record-muted);}
.person-workspace .student-ktm-preview{position:relative;padding-bottom:0;}
.person-workspace .student-media-actions{display:flex;align-items:center;justify-content:center;gap:0;position:absolute;z-index:1;top:8px;right:8px;padding:3px;border-radius:9px;background:rgb(18 18 22 / .5);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease;}

.dense-ui .person-workspace .media-icon-action{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;margin:0;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer;box-shadow:none;}
.person-workspace .media-icon-action iconify-icon{font-size:18px;}
.person-workspace .media-icon-action:hover{color:#fff;background:rgb(255 255 255 / .16);}
.person-workspace .student-media-actions .media-icon-action:focus-visible{outline:2px solid #fff;outline-offset:-3px;}
.person-workspace .media-icon-action:disabled,.person-workspace .media-icon-action[aria-disabled="true"]{opacity:.55;cursor:wait;}
.person-workspace .student-photo:is(:hover,:focus-within,.is-uploading) .student-media-actions,.person-workspace .student-ktm-preview:is(:hover,:focus-within) .student-media-actions{opacity:1;pointer-events:auto;transform:none;}
@media(hover:none),(pointer:coarse){.person-workspace .student-media-actions{opacity:1;pointer-events:auto;transform:none;}.dense-ui .person-workspace .media-icon-action{width:44px;min-width:44px;height:44px;min-height:44px;}}

.person-workspace .person-photo-surface{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:var(--record-soft);}
.person-workspace .person-photo-surface>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.person-workspace .person-media:is(:hover,:focus-within,.is-uploading) .student-media-actions{opacity:1;pointer-events:auto;transform:none;}
.person-workspace .profile-photo-initials{font-size:36px;color:var(--record-muted);}
.person-workspace .staff-profile-summary{padding:0;background:transparent;border:0;box-shadow:none;width:min(100%,218px);}
@media(max-width:600px){.person-workspace .staff-profile-summary{width:min(100%,240px);margin-inline:auto!important;}.dense-ui .person-workspace .profile-identity>.profile-photo-surface{grid-column:1/-1;grid-row:auto;width:min(100%,218px);height:auto;justify-self:center;}.person-workspace .profile-identity>h2{grid-column:1/-1;grid-row:auto;}}
