.dg-profile-heading{display:flex;align-items:center;gap:14px;margin-bottom:14px}.dg-profile-heading>div{flex:1;min-width:0}.dg-profile-heading h2{font-size:1.35rem;overflow-wrap:anywhere}.dg-profile-avatar{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;border-radius:50%;background:var(--green);color:white;font-family:var(--f-ui);font-weight:700}.dg-profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.dg-academic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dg-academic-field{display:block;min-width:0;margin:10px 0}.dg-academic-field input,.dg-academic-field textarea,.dg-academic-field select{width:100%;max-width:100%;box-sizing:border-box}.dg-academic-check{display:flex;gap:10px;align-items:center;margin:14px 0;font-size:.82rem}.dg-academic-check input.dg-switch{flex-shrink:0}.dg-academic-dialog{width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid var(--line);border-radius:14px;padding:22px;background:var(--bg);color:var(--ink);margin:auto;font-family:var(--f-ui);box-sizing:border-box}.dg-academic-dialog::backdrop{background:rgba(0,0,0,.45)}#dgAcademicProfile details summary,.dg-academic-dialog details summary{cursor:pointer;font-size:.86rem;font-weight:600;margin:12px 0}.dg-academic-dialog .dg-meta,#dgAcademicProfile .dg-meta{overflow-wrap:anywhere} @media(max-width:600px){.dg-academic-grid{grid-template-columns:1fr;gap:2px}.dg-academic-dialog{padding:16px;max-height:calc(100dvh - 20px)}.dg-profile-heading h2{font-size:1.15rem}.dg-profile-actions .btn{min-height:44px;flex:1 1 auto}.dg-profile-avatar{width:44px;height:44px}}

.dg-profile-orcid a{color:var(--green);font-family:var(--f-mono);font-size:.82rem;overflow-wrap:anywhere}.dg-profile-orcid small{display:block;color:var(--mut);font-size:.68rem}

.dg-field-label{display:flex;align-items:center;gap:7px;min-height:22px}
.dg-field-help{position:relative;display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;background:var(--tint);color:var(--green);font:800 .68rem/1 var(--f-ui);cursor:help;outline:none}
.dg-field-help::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 9px);z-index:40;width:min(280px,72vw);padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:var(--ink);color:#fff;font:500 .72rem/1.45 var(--f-ui);box-shadow:var(--sh);opacity:0;visibility:hidden;transform:translate(-50%,4px);transition:.15s;pointer-events:none;text-transform:none;letter-spacing:0}
.dg-field-help:hover::after,.dg-field-help:focus::after{opacity:1;visibility:visible;transform:translate(-50%,0)}
.dg-academic-dialog textarea{width:100%;box-sizing:border-box;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:11px 12px;font:inherit;resize:vertical}
.dg-academic-dialog textarea:focus{outline:2px solid var(--green);border-color:var(--green)}

/* Dashboard profile: account-scoped overview and progressive editing. */
#dgAcademicProfile .dg-profile-heading{flex-wrap:wrap}
#dgAcademicProfile .dg-profile-heading>button{flex:0 0 auto}
#dgAcademicProfile .dg-profile-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#dgAcademicProfile .dg-profile-overview>section{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--bg);min-width:0}
#dgAcademicProfile .dg-profile-overview h3{font:700 1rem/1.5 var(--f-ui);color:var(--green-dk);overflow-wrap:anywhere}
#dgAcademicProfile .dg-profile-overview p{margin:0}
#dgAcademicProfile .dg-profile-overview .btn{margin-top:auto}
#dgAcademicProfile .dg-profile-orcid{display:flex;flex-direction:column;gap:6px}
#dgAcademicProfile a{color:var(--green);overflow-wrap:anywhere}
#dgAcademicProfile .dg-profile-completion{margin:16px 0;padding:12px 0;border-bottom:1px solid var(--line)}
#dgAcademicProfile .dg-profile-completion>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
#dgAcademicProfile progress{display:block;width:100%;height:6px;margin:10px 0;border:0;border-radius:9px;overflow:hidden;appearance:none;background:var(--tint);accent-color:var(--green)}
#dgAcademicProfile progress::-webkit-progress-bar{background:var(--tint)}
#dgAcademicProfile progress::-webkit-progress-value{background:var(--green)}
#dgAcademicProfile progress::-moz-progress-bar{background:var(--green)}
#dgAcademicProfile .dg-profile-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#dgAcademicProfile .dg-profile-fieldset{min-width:0;border:0;padding:12px 0;margin:0}
#dgAcademicProfile legend{font:700 .85rem/1.5 var(--f-ui);color:var(--green-dk);padding:0}
#dgAcademicProfile .dg-profile-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
#dgAcademicProfile .dg-profile-publications{margin-top:16px;font-size:.8rem}
#dgAcademicSavedStatus:empty{display:none}
@media(max-width:600px){
 #dgAcademicProfile .dg-profile-heading>button{flex:1 1 100%}
 #dgAcademicProfile .dg-profile-overview{grid-template-columns:minmax(0,1fr)}
 #dgAcademicProfile .dg-profile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dgAcademicProfile .dg-profile-form-actions>*{flex:1 1 auto}
}

/* Keep publication controls stationary while optional details scroll inside. */
.dg-academic-dialog{position:fixed;inset:16px 0 auto;margin:0 auto;width:min(620px,calc(100% - 24px));height:min(600px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden;animation:none;transition:none;transform:none}
#dgReportQuestionForm{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}
.dg-report-dialog-heading{flex:none;align-items:flex-start;margin:0;padding-bottom:12px;border-bottom:1px solid var(--line)}
.dg-report-dialog-heading .btn{flex:none;min-width:40px;min-height:40px}
.dg-report-dialog-heading h2{font-size:1.25rem;margin:4px 0 8px}
.dg-report-dialog-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 6px 8px 0}
.dg-report-dialog-body>.dg-meta{margin:0 0 8px}
.dg-report-extra,.dg-field-protocol{border-top:1px solid var(--line);margin-top:12px;padding-top:4px}
.dg-report-extra>summary,.dg-field-protocol>summary{min-height:44px;display:list-item;align-content:center}
.dg-report-dialog-footer{flex:none;border-top:1px solid var(--line);padding-top:12px}
.dg-report-dialog-footer>.dg-meta{margin:0;font-size:.72rem;line-height:1.6}
.dg-report-dialog-footer a{color:var(--green)}
.dg-report-dialog-footer .dg-profile-actions{justify-content:flex-end;margin:12px 0 0}
#dgReportQuestionErrors:empty{display:none}
#dgReportQuestionErrors:not(:empty){margin-top:8px}
@media(max-width:600px){.dg-academic-dialog{inset:10px 0 auto;height:min(600px,calc(100dvh - 20px));max-height:calc(100dvh - 20px)}.dg-report-dialog-heading h2{font-size:1.1rem}.dg-report-dialog-footer .btn{min-height:44px}}

#dgAcademicProfile .dg-profile-overview>section:last-child{grid-column:1/-1}
