/* Compact, accessible ADI profile work area. Selected tab colors stay in auth-ui.js. */
#main .profile-workarea{padding:1.25rem 0 3rem;background:#faf9f7}
#profile-app{max-width:1100px;margin:auto}
#main .profile-summary{margin:0 0 1rem;gap:1rem}
#main .profile-summary h1{font-size:clamp(1.2rem,3vw,1.75rem);margin:0;color:#263248}
#main .profile-summary p{margin:.3rem 0}
#main .profile-summary .account-photo{width:58px;height:58px;border:2px solid #e6be67}
.profile-progress{background:#fff;border:1px solid #e5dfd5;border-radius:16px;padding:1rem 1.2rem;margin-bottom:1rem;box-shadow:0 4px 16px #34230f06}
.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}
#main .progress-heading h2{font-size:1rem;margin:0 0 .6rem}
#profile-percent{color:#b92327;font-size:1.35rem;margin-left:.6rem}
.profile-level{background:#fff5dc;border:1px solid #e4c078;color:#694c10;padding:.25rem .8rem;border-radius:30px;font-weight:700}
#profile-progress{appearance:none;width:100%;height:10px;display:block;border:0;border-radius:20px;overflow:hidden;background:#eee8e4;color:#b92327}
#profile-progress::-webkit-progress-bar{background:#eee8e4;border-radius:20px}
#profile-progress::-webkit-progress-value{background:linear-gradient(90deg,#b92327,#ce9b32);border-radius:20px;transition:width .3s}
#profile-progress::-moz-progress-bar{background:#b92327;border-radius:20px}
#profile-encouragement{margin:.6rem 0 .3rem;font-size:.95rem}
#progress-save-state,.progress-note{font-size:.8rem;color:#5c6573}
#profile-hints{display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap;font-size:.85rem}
#profile-hints ul{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;padding-left:1.1rem;margin:.6rem 0}
#profile-hints details{margin:.6rem 0}#profile-hints summary{cursor:pointer}
.profile-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.7rem}
.profile-badges>[data-badge]{font-size:.8rem;border:1px solid #ddd7ce;border-radius:9px;padding:.4rem .65rem;color:#64666b;background:#f8f8f8}
.profile-badges>[data-earned=true]{color:#6a4712;background:#fff5d9;border-color:#dbb663}
.profile-badges small{font-size:.65rem;display:block}.progress-note{margin:.7rem 0 0}
#main .profile-tabs a[data-complete=true]::after{content:' ✓';font-size:.8em}
#main .profile-tabs a[data-complete=false]::after{content:' ○';font-size:.8em}
#main .profile-panel{margin-top:1rem;max-width:none}
#main .profile-field{display:flex;flex-direction:column;gap:.35rem;min-width:0;margin-bottom:.7rem}
#main .profile-field label{font-weight:650;font-size:.95rem;color:#263248}
#main .profile-field :is(input,select,textarea){font:inherit;box-sizing:border-box;width:100%;border:1px solid #b8bdc5;border-radius:10px;background:#fff;padding:.75rem .85rem;min-height:48px;transition:border-color .15s,box-shadow .15s;color:#263248}
#main .profile-field textarea{min-height:145px;resize:vertical}
#main .profile-field :is(input,select,textarea):focus{outline:2px solid #b92327;outline-offset:2px;border-color:#b92327;box-shadow:0 0 0 5px #e4bc6933}
#main .profile-field [readonly]{background:#f3f4f6;color:#596170}
.field-help{color:#3a4553;font-size:.8rem;line-height:1.45}.field-error{color:#a21d24;font-size:.8rem;min-height:0}
#main .profile-field [aria-invalid=true]{border-color:#b92327;background:#fff8f8}
.profile-save{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;margin:1rem -.3rem -.3rem;background:#fffffff5;border:1px solid #e1c68f;border-radius:12px;box-shadow:0 4px 20px #34230f15;backdrop-filter:blur(10px)}
.profile-save [data-save-status]{font-size:.85rem;color:#495364}.profile-save button{white-space:nowrap;min-height:44px}.profile-save button:disabled{opacity:.6}
.milestone-message{border-left:4px solid #c89b39;background:#fff7e3;padding:1rem;border-radius:10px;margin:1rem 0;color:#614612}
.profile-confetti{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1000}
.profile-confetti i{position:absolute;left:var(--x);top:-20px;width:7px;height:13px;background:#bd292d;animation:adi-celebrate 1.8s var(--delay) ease-out both}
.profile-confetti i:nth-child(even){background:#d3a443}.profile-confetti i:nth-child(3n){background:#e8d4a1}
@keyframes adi-celebrate{to{transform:translateY(80vh) rotate(440deg);opacity:0}}
@media(max-width:600px){#main .profile-workarea{padding-top:.75rem}.profile-progress{padding:.8rem}.profile-save{bottom:6px;flex-wrap:wrap}.profile-save button{width:100%}.profile-badges{gap:.35rem}.profile-badges>[data-badge]{flex:1 1 115px}#profile-hints{gap:0}.profile-panel.account-card{padding:1rem}}
@media(prefers-reduced-motion:reduce){#profile-app *,#profile-app *::before,#profile-app *::after{transition:none!important;animation:none!important}.profile-confetti{display:none!important}.profile-confetti i{animation:none!important}}

/* Unified identity cards and owner-only control tables. */
#main .identity-section{padding:1.1rem;margin:1rem 0;border:1px solid #e0dcd4;border-radius:14px;background:#fff}
#main .identity-section h3{margin:0 0 1rem;font-size:1.1rem;color:#832025}
.identity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.25rem;align-items:start}
#main .identity-grid .profile-field label{min-height:1.55rem;line-height:1.55rem;overflow-wrap:normal}
#main .identity-grid .profile-field{margin:0}.academic-field{display:flex;gap:.6rem;align-items:flex-start;min-width:0}.academic-field .profile-field{flex:1;min-width:0}.academic-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;margin-top:2.2rem;border-radius:8px;background:#fff2df;color:#a42c27}.bio-meta{display:flex;gap:.6rem;justify-content:space-between;align-items:flex-start}#public_bio-count{white-space:nowrap;color:#6b5c43;font-variant-numeric:tabular-nums}.role-matrix th{white-space:normal;min-width:90px}.role-matrix input:not([type=checkbox]){min-width:100px;max-width:180px;padding:.5rem}.role-matrix td,.role-matrix th{font-size:.85rem}.role-matrix [type=checkbox]{width:20px;height:20px;accent-color:#b92327}.sc-search{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin:1rem 0}.sc-search input{padding:.7rem;border:1px solid #aaa;border-radius:8px}.sc-tabs{margin-bottom:1.3rem}.user-list input[type=checkbox]{accent-color:#b92327}.identity-section fieldset[disabled]{opacity:.7;display:grid;gap:.7rem}
@media(max-width:700px){.identity-grid{grid-template-columns:minmax(0,1fr)}#main .identity-section{padding:.85rem}.academic-icon{margin-top:2.2rem}.sc-search input{width:100%}.role-matrix{min-width:950px}}

/* Sticky completion companion: left rail on desktop, compact disclosure on mobile. */
#profile-app{max-width:1280px}.profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.35rem;align-items:start}.profile-side{position:sticky;top:calc(var(--adi-header-height,96px) + 1rem);align-self:start;max-height:calc(100dvh - var(--adi-header-height,96px) - 2rem);overflow:auto;scrollbar-width:thin}.profile-work{min-width:0}.profile-side .profile-progress{margin:0;padding:1rem}.profile-progress>summary{list-style:none;cursor:pointer}.profile-progress>summary::-webkit-details-marker{display:none}.profile-progress>summary:focus-visible{outline:2px solid #b92327;outline-offset:4px;border-radius:8px}.profile-side .progress-heading{display:flex;flex-direction:column;gap:.5rem;text-align:center}.profile-side .progress-heading :is(h2,.progress-title){margin:0;font-size:1rem}.profile-ring{width:100px;height:100px;border-radius:50%;background:conic-gradient(#b92327 var(--progress),#eee6dc 0);display:grid;place-items:center;margin:.2rem auto 1rem;position:relative;box-shadow:0 0 0 1px #ead8b2}.profile-ring::before{content:'';position:absolute;inset:8px;background:#fff;border-radius:50%}.profile-ring #profile-percent{position:relative;z-index:1;margin:0;font-size:1.6rem;color:#9d2428}.profile-side #profile-progress{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.profile-side #progress-save-state{display:block;margin:.65rem 0 .3rem;line-height:1.4;text-align:center}.profile-side #profile-hints{display:block}.profile-side #profile-hints ul{display:block;padding-left:1.1rem}.profile-side #profile-hints li{margin:.35rem 0}.profile-side .profile-badges{display:grid;grid-template-columns:1fr}.profile-side .profile-badges>[data-badge]{padding:.4rem .6rem}.profile-side .profile-badges small{display:inline;margin-left:.4rem}.profile-side #profile-encouragement{font-size:.85rem;line-height:1.45}.profile-side .progress-note{font-size:.72rem}.progress-mobile-cue{display:none}.profile-work .profile-tabs{margin-top:0}.profile-work .profile-panel{margin-bottom:0}
@media(max-width:1050px) and (min-width:801px){.profile-layout{grid-template-columns:220px minmax(0,1fr);gap:1rem}.profile-side .profile-progress{padding:.8rem}}
@media(max-width:800px){.profile-layout{display:block}.profile-side{position:sticky;top:var(--adi-header-height,96px);z-index:25;max-height:min(65dvh,calc(100dvh - var(--adi-header-height,96px) - 1rem));overflow:auto;margin:0 -.25rem .8rem;padding:.25rem;background:#faf9f7}.profile-side .profile-progress{padding:.5rem .7rem;border-radius:12px;box-shadow:0 3px 12px #34230f12}.profile-side .profile-progress>summary{display:grid;grid-template-columns:44px minmax(0,1fr);gap:.6rem;align-items:center}.profile-side .profile-ring{width:44px;height:44px;margin:0}.profile-side .profile-ring::before{inset:4px}.profile-side .profile-ring #profile-percent{font-size:.8rem}.profile-side .progress-heading{flex-direction:row;justify-content:space-between;align-items:center;gap:.4rem}.profile-side .progress-heading :is(h2,.progress-title){font-size:.82rem;text-align:left}.profile-side .profile-level{font-size:.68rem;padding:.1rem .4rem}.profile-side #progress-save-state{margin:.1rem 0;text-align:left;font-size:.63rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.progress-mobile-cue{display:block;font-size:.61rem;color:#6c5b42}.profile-side .profile-progress-body{padding-top:.5rem}.profile-side .profile-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-side .profile-badges small{display:block;margin:0}.profile-work .profile-panel{margin-top:.8rem}.profile-save{z-index:10}}

.progress-title{font-weight:700}.progress-summary-text{display:block;min-width:0}

.profile-side .profile-progress>summary{position:sticky;top:0;z-index:2;background:#fff;padding-bottom:.3rem}

/* Desktop workspace is viewport-wide: zero gutter outside the left progress rail. */
@media(min-width:801px){
 #main .profile-workarea{padding:0;min-height:calc(100dvh - var(--adi-header-height,96px))}
 #main .profile-workarea>.wrap{width:100%;max-width:none;margin:0;padding:0;box-sizing:border-box}
 #main #profile-app{width:100%;max-width:none;margin:0;padding:0;box-sizing:border-box}
 #main .profile-layout{grid-template-columns:clamp(240px,18vw,280px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:0;min-height:calc(100dvh - var(--adi-header-height,96px))}
 #main .profile-layout>.profile-summary{grid-column:2;grid-row:1;margin:0;padding:1.25rem clamp(1rem,2vw,2.25rem) .8rem;min-width:0}
 #main .profile-layout>.profile-side{grid-column:1;grid-row:1 / span 2;position:sticky;top:var(--adi-header-height,96px);height:calc(100dvh - var(--adi-header-height,96px));max-height:calc(100dvh - var(--adi-header-height,96px));margin:0;padding:0;border-right:1px solid #e5dfd5;background:#fff;box-sizing:border-box}
 #main .profile-side .profile-progress{min-height:100%;margin:0;padding:1.25rem 1rem;border:0;border-radius:0;box-shadow:none;box-sizing:border-box}
 #main .profile-work{grid-column:2;grid-row:2;min-width:0;margin:0;padding:0 clamp(1rem,2vw,2.25rem) 2rem;box-sizing:border-box}
 #main .profile-work .profile-panel{width:100%;max-width:none;box-sizing:border-box}
 #main .profile-work :is(.identity-grid,form[data-profile-form] .account-fields){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1500px){
 #main .profile-work :is(.identity-grid,form[data-profile-form] .account-fields){grid-template-columns:repeat(3,minmax(0,1fr))}
 #main .identity-grid>.profile-field:has(#public_bio){grid-column:span 2}
}

/* Owner-only registered-user table uses isolated per-row native forms. */
.sc-users table{min-width:1050px}.sc-users small{display:block;margin-top:.35rem}.sc-users select{max-width:180px;padding:.55rem;border:1px solid #c5bdb5;border-radius:8px}.sc-users .btn{white-space:nowrap}.sc-search{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin:1rem 0}.sc-search input[type=search]{min-height:44px;flex:1 1 220px;min-width:0;padding:.65rem .8rem;border:1px solid #c5bdb5;border-radius:8px}.sc-search input:focus-visible,.sc-users select:focus-visible{outline:2px solid #b92327;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* SC has no completeness rail: use the entire profile workspace. */
@media(min-width:801px){#main .profile-layout.profile-layout-sc{grid-template-columns:minmax(0,1fr)}#main .profile-layout-sc>.profile-summary,#main .profile-layout-sc>.profile-work{grid-column:1}}

/* SC tab: no white frame; full working width */
#main .profile-layout-sc .profile-panel.account-card{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  max-width:none!important;
}
#main .profile-workarea:has(.profile-layout-sc){
  background:#0f141a;
}
#main .profile-workarea:has(.profile-layout-sc)>.wrap{
  max-width:none!important;
  width:100%;
  margin:0;
  padding:0 16px;
  box-sizing:border-box;
}
#profile-app:has(.profile-layout-sc){
  max-width:none!important;
  width:100%;
}
#main .profile-layout-sc>.profile-summary{
  padding-inline:0!important;
  margin-bottom:.85rem;
  color:#e8edf5;
}
#main .profile-layout-sc>.profile-summary .muted{color:#9ba3af}
#main .profile-layout-sc>.profile-work{
  padding-inline:0!important;
  padding-bottom:1.5rem!important;
}
#main .profile-layout-sc .profile-tabs:not(.sc-tabs):not(.document-mode-tabs){
  margin-bottom:.85rem;
}
@media(max-width:600px){
  #main .profile-workarea:has(.profile-layout-sc)>.wrap{padding:0 10px}
  #main .profile-layout-sc .profile-panel.account-card{padding:0!important}
}

/* One unwrapped, compact table row per user; narrow screens scroll, never stack. */
#main .sc-users{overflow-x:auto}#main .sc-users table{table-layout:fixed;min-width:1120px;width:100%;font-size:.82rem}#main .sc-users :is(th,td){height:42px;padding:.35rem .5rem;white-space:nowrap;vertical-align:middle;line-height:1.25;overflow:hidden}#main .sc-users thead th{font-size:.75rem}#main .sc-users .sc-cell{display:block;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sc-name{display:flex;gap:.5rem;align-items:center;min-width:0;max-width:100%;font-weight:600}.sc-avatar{display:inline-flex;width:24px;height:24px;flex:0 0 24px;align-items:center;justify-content:center;border-radius:50%;object-fit:cover;background:#faeee9;color:#9d2428;font-size:.75rem}#main .sc-action-button{min-height:30px;max-width:100%;padding:.3rem .45rem;border:1px solid #d8c5b4;border-radius:6px;background:#fff;color:#8e2426;font:inherit;font-size:.75rem;cursor:pointer}#main .sc-action-button:focus-visible{outline:2px solid #b92327;outline-offset:2px}.sc-user-menu{max-width:min(360px,calc(100vw - 2rem));padding:1.25rem;border:1px solid #d8c5b4;border-radius:12px;box-shadow:0 12px 45px #22130f33;color:#263248;background:#fff}.sc-user-menu::backdrop{background:#22130f22}.sc-user-menu h3{font-size:1rem;margin:0 0 .7rem}.sc-user-menu p{font-size:.85rem;overflow-wrap:anywhere}.sc-user-menu>label{display:block;margin:.5rem 0}.sc-user-menu select{width:100%;min-height:42px;padding:.55rem;border:1px solid #c5bdb5;border-radius:8px}.sc-menu-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}

.sc-user-menu :is(select,button):focus-visible{outline:2px solid #b92327;outline-offset:2px}

.document-upload label:not(.check-option){display:block;margin:.8rem 0 .3rem;font-weight:600}.document-upload :is(input:not([type=checkbox]),select,textarea){width:100%;min-height:44px;padding:.7rem;border:1px solid #c5bdb5;border-radius:9px;box-sizing:border-box;font:inherit}.document-upload :is(input,select,textarea):focus-visible{outline:2px solid #b92327;outline-offset:2px}.document-mode-tabs button{padding:.7rem 1rem;background:#f1eeea;border:0;border-radius:8px;cursor:pointer;font:inherit}.document-drop{padding:1.5rem;border:2px dashed #bda78e;border-radius:12px;background:#fcf9f3}.document-drop.dragover{border-color:#b92327;background:#fff1eb}.document-upload [hidden]{display:none!important}

#main .btn.danger{background:#9d2025;color:#fff;border:1px solid #7f171c}.role-delete-dialog{max-width:min(520px,calc(100vw - 2rem));padding:1.5rem;border:1px solid #d0b5a3;border-radius:12px}.role-delete-dialog::backdrop{background:#24131366}.role-delete-dialog label{display:block;margin:.8rem 0}.role-delete-dialog select{min-height:42px;padding:.5rem;width:100%}

.pending-card{max-width:760px!important;margin:2rem auto!important}.pending-count{font-size:.75em;border-radius:999px;padding:.12rem .45rem;background:#fff0d6;color:#772222!important;-webkit-text-fill-color:#772222!important}.approval-actions{display:inline-flex;gap:.3rem;white-space:nowrap}.approval-actions .btn{font-size:.75rem;padding:.4rem .6rem}.approval-list table{min-width:820px!important}.approval-list :is(td,th){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.approval-list tr{height:46px}

.sc-users td[data-approval=pending] .sc-cell{background:#fff0d6;color:#784c05;border-radius:999px;padding:.1rem .4rem}.sc-search select{height:38px;border:1px solid #c9cdd3;border-radius:7px;padding:.4rem}


.member-card-admin label{display:block;margin:.6rem 0}.member-card-admin input{min-height:38px;max-width:100%;border:1px solid #bbb;border-radius:7px;padding:.5rem}

.archive-document-actions{display:flex;gap:.3rem;align-items:center;flex-wrap:nowrap}.archive-document-actions .btn:disabled{opacity:.45;cursor:not-allowed}

.archive-search{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.archive-search label{font-weight:650}.archive-search input{flex:1;min-width:160px;max-width:550px;padding:.7rem;border:1px solid #b8bdc5;border-radius:9px}.archive-search input:focus{outline:2px solid #b92327;outline-offset:2px}.archive-row-new td{background:#fff2c9!important;outline-color:#dbb65c;transition:background-color .7s}.archive-new-badge{display:inline-block;margin-inline-start:.6rem;padding:.12rem .45rem;border-radius:20px;background:#9c2228;color:#fff;font-size:.7rem;font-weight:700}[data-archive-table] tr[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.archive-row-new td{transition:none!important}}

/* Archive documents stay one compact row; small screens scroll, never stack. */
.archive-list{overflow-x:auto}.archive-list table{table-layout:fixed;min-width:0;width:100%;border-collapse:collapse}.archive-list .archive-col-number{width:16%}.archive-list .archive-col-status{width:7%}.archive-list .archive-col-signatures{width:20%}.archive-list .archive-col-document{width:11%}.archive-list .archive-col-publication{width:13%}.archive-list :is(th,td){padding:.35rem .5rem;white-space:nowrap;vertical-align:middle;text-align:start;font-size:.8rem;height:40px}.archive-list form{margin:0}.archive-list .archive-number{overflow:hidden;text-overflow:ellipsis;font:600 .75rem ui-monospace,monospace}.archive-subject-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-status{display:inline-block;padding:.12rem .45rem;border-radius:20px;font-size:.7rem;font-weight:650;background:#f0f2f5;color:#46515f}.archive-status.published{background:#e6f7ec;color:#166534}.archive-status.revoked{background:#fee2e2;color:#991b1b}.archive-list .archive-icon{display:inline-grid;place-items:center;width:30px;height:30px;min-height:30px;flex:none;padding:5px;border:1px solid #d6d9de;border-radius:6px;background:#fff;color:#9d2529;cursor:pointer;text-decoration:none;box-sizing:border-box}.archive-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.archive-list .archive-icon:disabled{opacity:.4;cursor:not-allowed}.archive-icon:focus-visible,.archive-publish:focus-visible{outline:3px solid #174ea6;outline-offset:2px}.archive-list .archive-publish{padding:.3rem .5rem;min-height:28px;line-height:1.2;font-size:.72rem;white-space:nowrap}.archive-list .archive-new-badge{font-size:.6rem;margin-inline-start:.25rem;padding:.08rem .25rem}

.archive-sig-wrap{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.archive-sig{display:inline-flex;align-items:center;gap:2px;padding:.1rem .35rem;border-radius:999px;font-size:.68rem;font-weight:700;background:#f0f2f5;color:#46515f;white-space:nowrap}
.archive-sig.ok{background:#e6f7ec;color:#166534}
.archive-sig.pending{background:#fff7e6;color:#9a6700}
.archive-sign-form{display:inline-flex;margin:0}
.archive-sign-btn{width:28px!important;height:28px!important;min-height:28px!important;padding:4px!important}
.sc-console .archive-list .archive-col-signatures{width:18%}
.sc-console .archive-list th{white-space:normal;line-height:1.15;font-size:.68rem}

.archive-list .archive-publish{padding:.25rem .4rem;font-size:.68rem;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.archive-sig-wrap{gap:3px;max-width:100%}
.archive-sig{font-size:.62rem;padding:.08rem .28rem}
.archive-sign-btn{width:26px!important;height:26px!important;min-height:26px!important}
.archive-list .archive-number{font-size:.7rem}

.identity-diri-wrap{display:grid;grid-template-columns:minmax(140px,200px) minmax(0,1fr);gap:1rem 1.25rem;align-items:start}
.identity-photo-cell{grid-column:1;grid-row:1;min-width:0}
.identity-diri-wrap form,.identity-diri-wrap fieldset{grid-column:2;grid-row:1;min-width:0;margin:0;padding:0;border:0;min-inline-size:0}
.identity-diri-wrap fieldset:disabled{opacity:.7}
@media(max-width:700px){.identity-diri-wrap{grid-template-columns:minmax(0,1fr)}.identity-photo-cell{grid-column:1;grid-row:1}.identity-diri-wrap form,.identity-diri-wrap fieldset{grid-column:1;grid-row:2}}

.document-upload-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.55rem 1rem;margin:0 0 .85rem}
.document-upload-head h3{margin:0;flex:1 1 12rem;min-width:10rem}
.document-upload-head .document-mode-tabs{display:inline-flex;flex-wrap:wrap;gap:0;margin:0;padding:3px;border:1px solid #c5bdb5;border-radius:10px;background:#f6f3ee;flex:0 1 auto}
.document-upload-head .document-mode-tabs button{padding:.35rem .75rem;min-height:32px;min-width:0;font-size:.8rem;border-radius:7px}
@media(max-width:700px){.document-upload-head .document-mode-tabs{width:100%;flex:1 1 100%}.document-upload-head .document-mode-tabs button{flex:1 1 0}}

.document-upload-head-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem .7rem;flex:1 1 auto;min-width:0}
.document-upload-head .document-upload-submit{margin:0;flex:0 0 auto;white-space:nowrap}
.document-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;min-height:11rem;padding:1.5rem 1.2rem;border:2px dashed #bda78e;border-radius:12px;background:#fcf9f3;text-align:center;cursor:pointer;box-sizing:border-box}
.document-drop:hover,.document-drop:focus-visible{border-color:#b92327;background:#fff1eb;outline:2px solid #b92327;outline-offset:2px}
.document-drop.dragover{border-color:#b92327;background:#fff1eb}
.document-drop-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.document-drop-icon{color:#b92327;display:block}
.document-drop-copy{margin:0;font-weight:700}
.document-drop-btn{display:inline-flex;align-items:center;justify-content:center;min-height:2.25rem;padding:.35rem 1rem;border:2px solid #b92327;border-radius:20px;color:#b92327;font-weight:700;background:transparent}
.document-drop-file{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;max-width:28rem;padding:.7rem .85rem;border:1px solid #c5bdb5;border-radius:10px;background:#fff;text-align:start}
.document-drop.has-file{cursor:default}
.document-drop-name{display:block;font-weight:700;overflow-wrap:anywhere}
.document-drop-size{display:block;font-size:.85em;opacity:.85}
.document-drop-clear{flex:0 0 auto;width:2rem;height:2rem;border-radius:999px;border:1px solid #c5bdb5;background:transparent;cursor:pointer;font-size:1.25rem;line-height:1}
@media(max-width:700px){
 .document-upload-head-tools{width:100%;flex:1 1 100%;justify-content:stretch}
 .document-upload-head .document-upload-submit{width:100%}
}

/* Academic ID icons (clickable when a profile URL is present; greyed when empty). */
a.academic-icon{text-decoration:none;color:#a42c27;background:#fff2df;border:0;padding:0;cursor:pointer}
a.academic-icon:hover,a.academic-icon:focus-visible{background:#a42c27;color:#fff}
a.academic-icon.is-empty,a.academic-icon[aria-disabled="true"]{background:#ececec;color:#8a8a8a;pointer-events:none;cursor:not-allowed;opacity:.55}
a.academic-icon:focus-visible{outline:2px solid #174ea6;outline-offset:2px}

/* Required-field fulfillment: Wajib pill is replaced by a green check. */
#main .profile-field[data-fulfill-key],#main .identity-photo-cell[data-fulfill-key]{border-radius:10px;padding:.15rem .4rem .4rem;border:1px solid transparent;transition:border-color .15s,background .15s}
#main .profile-field.is-fulfilled,#main .identity-photo-cell.is-fulfilled{border-color:#b7e0c0;border-left:4px solid #2f9e44;background:#f6fbf7}
#main [data-fulfill-badge],#main [data-fulfill-section-badge]{display:inline-flex;align-items:center;margin-left:.35rem;vertical-align:middle}
#main h2 [data-fulfill-section-badge],#main h3 [data-fulfill-section-badge]{margin-left:.4rem}
#main .sc-field-check{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;height:1.35rem;border-radius:999px;background:#2f9e44;color:#fff;font-weight:800;font-size:.85rem;line-height:1}
#main .sc-field-badge.sc-field-wajib{display:inline-flex;align-items:center;padding:.08rem .45rem;border-radius:999px;font-size:.68rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;background:#fff2df;color:#a42c27;border:1px solid #e8c48a}
#main .profile-field[data-compulsory="1"]>label,#main .identity-photo-cell[data-compulsory="1"]>label{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}

/* Required labels keep the fulfillment check inline with the label text. */
#main .profile-field[data-compulsory="1"]>label,
#main .identity-photo-cell[data-compulsory="1"]>label{
  display:block;
  flex-wrap:unset;
  color:#1c2533;
}
#main .profile-field[data-compulsory="1"]>label .sc-field-label,
#main .identity-photo-cell[data-compulsory="1"]>label .sc-field-label{
  display:inline;
  color:#1c2533;
  font-weight:700;
}
#main .profile-field[data-compulsory="1"]>label [data-fulfill-badge],
#main .identity-photo-cell[data-compulsory="1"]>label [data-fulfill-badge],
#main .profile-field[data-compulsory="1"]>label .sc-field-check,
#main .identity-photo-cell[data-compulsory="1"]>label .sc-field-check{
  display:inline-flex;
  vertical-align:middle;
  margin-left:.3rem;
}
#main .profile-field :is(input[type=email],input[name=contact_email]){
  min-width:0;
  overflow-x:auto;
  text-overflow:clip;
}

.archive-list .archive-publication{white-space:normal;vertical-align:top}
.archive-list .archive-publish:disabled{opacity:.55;cursor:not-allowed}
.archive-list .archive-publish-hint{margin:.15rem 0 0;font-size:.62rem;line-height:1.25;color:#5c6573;font-weight:550;white-space:normal;max-width:11rem}
/* v4.1 live field feedback, animated completeness ring */
@property --progress{syntax:'<percentage>';inherits:true;initial-value:0%}
.profile-ring{transition:--progress .6s cubic-bezier(.2,.8,.2,1)}
.profile-ring.is-bumping{animation:ring-bump .45s ease}
@keyframes ring-bump{50%{transform:scale(1.06)}}
.profile-level.tier-changed{animation:tier-pop .8s ease}
@keyframes tier-pop{0%{transform:scale(.85);background:#fff2c6}60%{transform:scale(1.12)}100%{transform:none}}
.profile-unsaved{display:inline-block;margin:.15rem 0;padding:.05rem .45rem;border-radius:999px;background:#fff2df;color:#8a4b00;font-weight:600;font-size:.75rem}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.profile-field.is-valid,[data-field-wrap].is-valid{border-left:3px solid #1f8a4c;padding-left:.6rem}
.profile-field.is-invalid,[data-field-wrap].is-invalid{border-left:3px solid #c52b28;padding-left:.6rem}
.live-tick,.section-tick{display:inline-grid;place-items:center;width:1.15rem;height:1.15rem;margin-inline-start:.35rem;border-radius:50%;background:#1f8a4c;color:#fff;font-size:.72rem;font-weight:700;opacity:0;transform:scale(.6);transition:opacity .2s,transform .2s;vertical-align:middle}
.is-valid>label .live-tick,.is-all-valid .section-tick{opacity:1;transform:none}
.profile-field.is-invalid input,.profile-field.is-invalid textarea,.profile-field.is-invalid select{border-color:#c52b28}
.profile-field.is-valid input,.profile-field.is-valid textarea,.profile-field.is-valid select{border-color:#1f8a4c}
.bio-count.is-near{color:#8a4b00;font-weight:600}.bio-count.is-over{color:#c52b28;font-weight:700}
.academic-move{margin-inline-start:.35rem;padding:.1rem .5rem;border:1px solid #a42c27;border-radius:6px;background:#fff;color:#a42c27;font:inherit;font-size:.8rem;cursor:pointer}
a.academic-icon.is-empty{pointer-events:auto;cursor:pointer;opacity:.8;background:#f1f1f1;color:#666}
a.academic-icon.is-empty:hover,a.academic-icon.is-empty:focus-visible{background:#a42c27;color:#fff;opacity:1}
@media (prefers-reduced-motion:reduce){.profile-ring{transition:none}.profile-ring.is-bumping,.profile-level.tier-changed{animation:none}.live-tick,.section-tick{transition:none}}
.profile-ring.is-complete{animation:ring-complete 1.2s ease}
@keyframes ring-complete{0%{box-shadow:0 0 0 0 rgba(31,138,76,.55)}70%{box-shadow:0 0 0 14px rgba(31,138,76,0)}100%{box-shadow:none}}
@media (prefers-reduced-motion:reduce){.profile-ring.is-complete{animation:none;outline:3px solid #1f8a4c}}
/* v4.1 hotfix: restored draft notice and save errors stay visible */
.profile-draft-notice{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0 0 1rem;padding:.65rem .85rem;border:1px solid #f2c94c;border-radius:10px;background:#fff8e1;color:#5c4400;font-size:.92rem}
[data-save-status].is-error{color:#b42318;font-weight:600}
