/* R9.6.8 shared user profile UI for Work Form AND V9 main shell. */
.r968-has-photo{background-repeat:no-repeat!important;background-size:cover!important;background-position:center!important;color:transparent!important}
.r968-profile-panel[hidden]{display:none!important}
.r968-profile-panel{position:fixed;z-index:200000;width:min(370px,calc(100vw - 24px));max-height:calc(100vh - 100px);overflow:auto;box-sizing:border-box;padding:15px;border:1px solid #d8e6f5;border-radius:14px;background:#fff;color:#1b3d64;box-shadow:0 16px 55px #082d4b36;animation:r967DialogEnter .19s ease-out both;font:12px/1.42 'Segoe UI',Arial,sans-serif}
.r968-profile-head{display:flex;gap:10px;align-items:center;border-bottom:1px solid #e1ebf5;padding-bottom:11px}
.r968-profile-avatar{width:48px;height:48px;display:grid;place-items:center;background:#234d85;color:white;border-radius:50%;font-weight:800;flex:none}
.r968-profile-head strong{display:block;font-size:15px}.r968-profile-head small{display:block;font-size:11px;color:#657d95}
.r968-profile-close{margin-left:auto;background:#f3f7fc;border:1px solid #d2e3f5;color:#1e4a7c;cursor:pointer;border-radius:7px;padding:4px 9px}
.r968-profile-panel h3{font-size:13px;margin:12px 0 7px}
.r968-profile-fields{display:grid;gap:6px}
.r968-profile-fields label{display:grid;grid-template-columns:106px 1fr;align-items:center;gap:6px;font-size:11px;color:#58728b}
.r968-profile-fields input{min-width:0;height:31px;border:1px solid #d2e1f1;background:#f3f6fb;color:#173e6b;border-radius:7px;padding:5px 7px;box-sizing:border-box;font:600 11px 'Segoe UI',sans-serif}
.r968-profile-fields input:not([readonly]){background:#fff;border-color:#579bfa;box-shadow:0 0 0 2px #d9ecff}
.r968-profile-edit-controls{display:flex;gap:6px;justify-content:flex-end;margin:8px 0}
.r968-profile-edit-controls button,.r968-admin-only{border-radius:7px;padding:7px 11px;border:1px solid #bed5f0;background:#edf5ff;color:#1459b1;cursor:pointer;font-size:11px;font-weight:750}
.r968-profile-edit-controls #r968ProfileSave{background:#1966d2;color:#fff}
#r968ProfilePhotoControl{display:block;color:#59728c;font-size:11px;padding:6px}
#r968ProfilePhotoControl[hidden]{display:none}
#r968ProfileFile{display:block;max-width:100%;margin-top:5px;font-size:11px}
.r968-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.r968-stat{border:1px solid #deebf9;border-radius:9px;background:#f4f8fe;padding:9px;display:flex;justify-content:space-between;align-items:center;gap:5px}
.r968-stat small{font-size:10px;color:#577491}.r968-stat strong{font-size:18px;color:#135fbd}
.r968-profile-note{font-size:11px;background:#f0f7ff;border:1px solid #e0edfa;border-radius:7px;color:#376895;padding:7px;margin:10px 0}
.r968-admin-only{width:100%;text-align:left}
.r968-admin-only[hidden]{display:none!important}
dialog.r968-admin-stats-dialog{border:1px solid #d4e6f9;border-radius:14px;width:min(1000px,calc(100vw - 32px));max-height:85vh;overflow:auto;padding:15px;background:#fff;box-shadow:0 22px 70px #071d4380}
dialog.r968-admin-stats-dialog::backdrop{background:#10274388;backdrop-filter:blur(8px)}
.r968-admin-head{display:flex;align-items:center;justify-content:space-between}.r968-admin-head h3{margin:0;color:#153e6e;font-size:17px}.r968-admin-head button{background:#ebf3fe;color:#16559a;border:1px solid #c5dbf1;border-radius:7px;padding:7px;cursor:pointer}
.r968-admin-table{overflow-x:auto;margin-top:12px}.r968-admin-table table{border-collapse:collapse;width:100%;font-size:12px}.r968-admin-table th{background:#eef4fc;text-align:left;padding:10px;white-space:nowrap}.r968-admin-table td{border-bottom:1px solid #e0ebf4;padding:8px}.r968-admin-table td small{display:block;color:#648099}

.r968-profile-bottom{display:flex;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #e0ecf8}
.r968-profile-bottom button{flex:1;padding:8px;background:#f0f6fe;border:1px solid #c5d9f0;border-radius:8px;color:#1b508a;cursor:pointer;font-weight:700}
.r968-profile-bottom button[hidden]{display:none}
