/* MOMENTS: shared UI for access, editing, records and administration. */
@font-face {
  font-family: "Noto Serif Bengali";
  src: url("/fonts/NotoSerifBengali-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0980-09FF;
}
:root {
  font-family: "Noto Serif Bengali", "Source Sans 3", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #183647;
  background: #fcfbf8;
  --ink: #183647;
  --muted: #536873;
  --line: #d7dfe1;
  --surface: #f4f6f5;
  --brand: #173849;
  --rail: clamp(280px, 25vw, 340px);
  --field-border: #7a8c95;
  --space-help: 6px;
  --space-label: 8px;
  --space-related: 16px;
  --space-row: 24px;
  --space-group: 32px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden],
.step-inactive {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: #23576b;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: #112f40;
}
p {
  margin: 0 0 16px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
}
h1,
h2,
h3 {
  font-family: "Noto Serif Bengali", "Source Serif 4", Georgia, serif;
}
h2,
h3,
h4 {
  margin: 0 0 12px;
}
h1,
h2 {
  font-weight: 600;
}
button,
input,
select,
textarea,
.card,
.repeat {
  border-radius: 0;
}
:focus-visible {
  outline: 3px solid #327da0;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 18px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
/* Centered institutional identity, with compact spacing at the top. */
.masthead {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 32px 30px 26px;
  background: var(--brand);
  color: #fff;
  text-align: center;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.college-logo {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 4px;
  flex: none;
}
.brand-copy {
  width: 100%;
  margin-top: 24px;
}
.brand strong {
  display: block;
  font-family: "Noto Serif Bengali", "Source Serif 4", Georgia, serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: white;
}
.brand-established {
  display: block;
  margin-top: 12px;
  color: #d0dce1;
  font-size: 13px;
}
.brand-affiliation {
  display: block;
  margin: 24px auto 0;
  max-width: 340px;
  color: #d0dce1;
  font-size: 14px;
  line-height: 1.75;
}
.identity-story {
  margin: 34px auto 28px;
  max-width: 320px;
}
.identity-story p {
  font-family: "Noto Serif Bengali", "Source Serif 4", Georgia, serif;
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.identity-story > span {
  display: block;
  color: #d0dce1;
  font-size: 14px;
  line-height: 1.75;
}
.identity-address {
  font-size: 12px;
  color: #d0dce1;
  line-height: 1.7;
  margin-top: auto;
  padding-top: 28px;
}
.identity-address a {
  display: inline-block;
  color: #d0dce1;
  margin-top: 7px;
}
.brand-affiliation > span {
  display: block;
}
.brand-affiliation > span + span {
  margin-top: 4px;
}
.college-address {
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--college-divider, #6e8591);
  color: var(--college-secondary, #e4edf2);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.college-contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.college-contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal > main,
.portal > footer {
  margin-left: var(--rail);
  width: calc(100% - var(--rail));
}
.portal > main {
  max-width: none;
  padding: 24px clamp(24px, 4vw, 64px) 32px;
  min-height: calc(100svh - 110px);
}
.wrap {
  width: 100%;
  margin: 0;
}
.entry-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 12px;
}
.entry-topbar > span {
  font-weight: 700;
  letter-spacing: 2px;
}
.product-identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.product-identity > span:first-child {
  font-weight: 700;
  letter-spacing: 1.5px;
}
.product-identity > span:last-child {
  color: var(--muted);
  font-size: 13px;
}
.entry-topbar > a {
  font-size: 12px;
  color: var(--muted);
}
.page-intro {
  margin: 0 0 20px;
}
.page-intro > div {
  max-width: 760px;
}
.eyebrow {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  font-size: 14px;
  margin: 0 0 13px;
}
.page-intro h1 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.page-intro p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}
.needs-auth .page-intro,
.needs-auth .login-panel {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.needs-auth .page-intro {
  padding-top: 26px;
  margin-bottom: 26px;
}
.needs-auth .workspace,
.needs-auth .report-nav,
.needs-auth .record-register,
.needs-auth .admin,
.needs-auth .record-detail {
  display: none !important;
}
#sessionLoading {
  display: none;
  color: var(--muted);
  padding: 20px 0;
}
.auth-checking #sessionLoading {
  display: block;
}
.auth-checking #loginPanel {
  display: none;
}
/* Faculty access uses the existing authentication and activation flow. */
.login-panel {
  border: 0;
  background: none;
  padding: 0;
  box-shadow: none;
  margin-bottom: 36px;
}
.access-body {
  display: flex;
  flex-direction: column;
}
.access-choices {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.access-choices button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  min-height: 48px;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 600;
}
.access-choices button[aria-pressed="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.access-choices button:hover {
  background: #f0f3f2;
}
.access-heading {
  font-family: "Noto Serif Bengali", "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.access-instructions {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.login-panel form {
  width: 100%;
}
.recovery-help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 0;
}
.login-panel .login-button {
  width: 100%;
  margin-top: 26px;
}
.access-safety {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.secret-field {
  display: block;
  position: relative;
}
.secret-field input {
  padding-right: 72px !important;
}
.reveal-secret {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: #37596b;
  font-size: 13px;
  min-height: 32px;
}
.reveal-secret:hover {
  background: #edf2f3;
}
#loginStatus:not(:empty),
.step-error {
  border: 1px solid #b4753e;
  background: #eef2f2;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.step-error {
  background: #fff1ed;
  border-color: #a33a28;
  color: #8b2e20;
}
.activation-prompt h2 {
  font-size: 28px;
}
.activation-prompt p {
  color: var(--muted);
}
/* Consistent controls and feedback. */
button.primary,
.login-button,
.step-next,
.actions button,
.admin button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
  padding: 11px 18px;
  min-height: 46px;
  font-weight: 600;
  text-decoration: none;
}
.login-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.secondary,
.actions button.secondary,
.admin button.secondary {
  border: 1px solid #7a8c95;
  background: white;
  color: var(--brand);
  min-height: 46px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
}
.secondary:hover,
.actions button.secondary:hover,
.admin button.secondary:hover {
  background: #edf2f3;
  color: var(--brand);
}
.login-button:hover,
.step-next:hover,
.actions button:hover,
.admin button:hover {
  background: #285267;
  color: white;
}
.text-button,
.remove {
  border: 0;
  background: none;
  padding: 8px 2px;
  min-height: 40px;
  text-decoration: underline;
  font-weight: 600;
  font-size: 14px;
}
.remove {
  color: #a23829;
}
.text-button {
  color: #23576b;
}
label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  min-width: 0;
}
label b {
  color: #a23829;
}
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin-top: 8px;
  padding: 11px 16px;
  border: 1px solid var(--field-border);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
input::placeholder,
textarea::placeholder {
  font-weight: 400;
  color: #62717a;
  opacity: 1;
}
:is(input, select, textarea):focus {
  --field-focus: #b4162e;
  outline: 1px solid var(--field-focus);
  outline-offset: 0;
  border-color: var(--field-focus);
  box-shadow: none;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 16px;
  padding-right: 48px;
  background-image: url("/images/select-chevron.svg");
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: right 16px center;
}
input[type="file"] {
  font-size: 14px;
  background: #f4f6f5;
  padding: 10px;
  line-height: 1.5;
}
input[type="file"]::file-selector-button {
  border: 1px solid #aab9c0;
  background: #fff;
  color: var(--brand);
  border-radius: 0;
  min-height: 40px;
  padding: 7px 12px;
  margin-right: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.grid {
  display: grid;
  gap: 24px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-weight: 400;
  margin-top: 24px;
  line-height: 1.7;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.actions > p {
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 8px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.actions button span {
  margin-left: 8px;
}
p[role="status"]:empty,
.step-save-status:empty {
  display: none;
}
p[role="status"]:not(:empty) {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.field-hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin: 6px 0 0;
}
/* Focused wizard and responsive section navigation. */
.workspace {
  display: block;
}
.workspace > * {
  min-width: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 24px;
  scroll-margin-top: 20px;
}
.card > :last-child {
  margin-bottom: 0;
}
.section-title {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 0;
}
.section-title h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 6px;
}
.section-title .number {
  margin-top: 3px;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 65ch;
}
.number {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: #315f6b;
  background: #edf2f3;
  border-radius: 0;
}
.report-nav {
  width: 100%;
  margin: 24px 0 0;
  text-align: left;
}
.report-nav summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
  padding: 4px 2px;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.report-nav summary::-webkit-details-marker {
  display: none;
}
.report-nav summary::after {
  content: "";
  justify-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.report-nav[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.report-nav .nav-heading,
#mobileStepLabel {
  white-space: nowrap;
  line-height: 1.4;
}
#mobileStepLabel {
  font-weight: 400;
  color: #d0dce1;
  font-size: 12px;
}
.report-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.report-nav nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  color: #e1e9ed;
  text-decoration: none;
  font-size: 14px;
  border-radius: 0;
  line-height: 1.35;
}
.report-nav nav a span {
  flex: none;
  font-size: 12px;
  color: #c2d1d9;
}
.report-nav nav a.active {
  background: white;
  color: var(--brand);
}
.report-nav nav a.active span {
  color: #315f6b;
}
.report-nav nav a:hover {
  background: #2b5063;
  color: white;
}
.report-nav nav a.active:hover {
  background: #e7eeee;
  color: var(--brand);
}
.report-nav nav a:focus-visible {
  outline-color: #e4b282;
}
.nav-guidance,
.nav-records {
  display: none;
}
.portal:not(.needs-auth):not(.policy-page) .masthead {
  padding-top: 24px;
}
.portal:not(.needs-auth):not(.policy-page) .college-logo {
  width: 88px;
  height: 88px;
  padding: 4px;
}
.portal:not(.needs-auth):not(.policy-page) .brand-copy {
  margin-top: 10px;
}
.portal:not(.needs-auth):not(.policy-page) .brand strong {
  font-size: 27px;
}
.portal:not(.needs-auth):not(.policy-page) .brand-affiliation {
  font-size: 12px;
  margin-top: 14px;
}
.portal:not(.needs-auth):not(.policy-page) .brand-established {
  font-size: 12px;
  margin-top: 8px;
}
.portal:not(.needs-auth):not(.policy-page) .identity-story {
  display: none;
}
.portal:not(.needs-auth):not(.policy-page) .identity-address {
  font-size: 11px;
  padding-top: 22px;
}
.step-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 24px;
}
.step-position {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto 0 0;
  order: -1;
  width: 100%;
}
.step-save-status {
  flex-basis: 100%;
  margin: 0;
  padding: 12px 0;
  color: var(--muted);
}
.step-next {
  margin-left: auto;
}
.wizard-progress {
  height: 3px;
  background: #e1e7e8;
  margin: 0 0 20px;
}
.wizard-progress > span {
  display: block;
  width: 16.6667%;
  height: 100%;
  background: #386f7c;
  transition: width 0.15s;
}
.session-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 0;
  background: #edf2f2;
  margin-bottom: 20px;
  font-size: 14px;
}
.session-bar > span {
  color: var(--muted);
  margin-right: auto;
}
.session-bar nav {
  display: flex;
  gap: 4px;
}
.session-bar nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
}
.session-bar nav a[aria-current="page"] {
  background: var(--brand);
  color: white;
}
.custom-event-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  margin-top: -10px;
  font-size: 14px;
  color: var(--muted);
}
.custom-event-type small {
  display: block;
  font-size: 13px;
  font-weight: 400;
}
.custom-event-type input { background: #f4f6f5; }
#signOut {
  font-size: 13px;
  min-height: 40px;
  padding: 8px 12px;
}
/* Repeated people, activities, funding and evidence. */
.date-time-group,
.funding-block,
.team-group,
.repeat,
.location {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  border-radius: 0;
}
.date-time-group {
  container-type: inline-size;
}
.date-time-group h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
.date-time-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.date-time-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
}
@container (max-width:300px) {
  .date-time-inputs {
    grid-template-columns: 1fr;
  }
}
.duration-preview,
.upload-note,
.review-note,
.existing-files:not(:empty) {
  border: 1px solid var(--line);
  background: #edf3f2;
  color: #315563;
  padding: 14px 16px;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.65;
}
.upload-note,
.existing-files:not(:empty) {
  margin-bottom: 22px;
}
.duration-preview.invalid {
  color: #8b2e20;
  background: #fff1ed;
  border-color: #d6a59b;
}
.team-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.team-heading {
  margin-bottom: 14px;
}
.team-heading strong {
  display: block;
  font-family: "Noto Serif Bengali", "Source Serif 4", Georgia, serif;
  font-size: 20px;
}
.team-heading span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.repeat {
  margin-bottom: 16px;
}
.team-entry,
.funding-entry,
.contributors-block .person-entry {
  background: white;
  padding: 16px;
}
.repeat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.repeat-head strong {
  font-size: 16px;
  font-weight: 600;
}
.subsection,
.admin-subsection + .admin-subsection,
.contributors-block,
#reviewControls,
.supplement-panel {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}
.subsection h3,
.admin-subsection h3 {
  font-size: 23px;
}
.subsection p,
.admin-subsection > p,
.funding-block > p,
.supplement-panel > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.contributors-block h4,
.funding-block h4 {
  font-size: 18px;
}
.conditional-fields,
.funding-block,
.funding-note {
  margin-top: 20px;
}
.location {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.location p {
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
  margin: 4px 0 0;
}
#locationStatus {
  width: 100%;
}
.saved-file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}
.saved-file-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.saved-file-list a,
.saved-file-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.saved-file-list button {
  flex: none;
  min-height: 40px;
  padding: 7px 12px;
}
.pending-file-list {
  margin-top: 10px;
}
.load-more {
  margin-top: 20px;
}
/* Saved records and administrator tools. */
.record-register,
.record-detail,
.admin {
  width: 100%;
  margin: 24px 0;
  max-width: none;
}
.register-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.register-tools input[type="search"],
.register-tools > button {
  height: 50px;
  min-height: 50px;
}
.register-tools > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.record-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.record-row > div {
  min-width: 0;
}
.record-row strong {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.record-row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.record-row button {
  flex: none;
}
.record-detail > h2 {
  font-size: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.record-detail p,
.record-detail li {
  overflow-wrap: anywhere;
}
.record-detail #recordDetailContent > strong {
  display: block;
  margin: 22px 0 8px;
}
.record-detail #recordDetailContent > p#documentStatus {
  margin: 20px 0 0;
  padding-top: 8px;
}
.record-detail > .actions a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #7a8c95;
  padding: 10px 16px;
  min-height: 46px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.supplement-panel > button {
  margin-top: 20px;
}
#supplementStatus {
  margin-top: 12px;
}
.admin {
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
}
.admin summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  min-height: 36px;
  line-height: 1.5;
}
.admin summary::-webkit-details-marker {
  display: none;
}
.admin summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.admin details[open] > summary::after,
details.admin[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
.admin p {
  color: var(--muted);
  margin: 14px 0 20px;
}
.admin h3 {
  font-size: 24px;
}
.admin label {
  max-width: none;
  margin-top: 18px;
}
.admin button {
  margin-top: 14px;
}
.admin .actions button {
  margin-top: 0;
}
.admin-review {
  margin-top: 28px;
}
.activation-admin {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 28px;
}
.legacy-tools {
  margin: 28px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
}
.legacy-tools summary {
  font-size: 15px;
}
.pending-faculty-requests {
  display: grid;
  gap: 12px;
}
.pending-faculty-request {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
}
.pending-faculty-request p {
  margin: 6px 0 0;
  font-size: 14px;
}
#activationLinkPanel,
#adminRecoveryPanel {
  background: #edf3f2;
  border: 1px solid var(--line);
  padding: 18px;
  margin-top: 20px;
}
#activationLink,
#adminRecoveryCode {
  font-family: "Noto Serif Bengali", ui-monospace, Consolas, monospace;
  font-size: 14px;
}
#approvalDetails,
#approvalStatus,
#activationExpiry {
  overflow-wrap: anywhere;
}
#approvalLoadStatus:not(:empty) {
  padding: 14px 16px;
  background: #edf3f2;
  border: 1px solid var(--line);
  margin: 16px 0;
}
.saved-view .workspace,
.saved-view .report-nav {
  display: none;
}
.saved-view .identity-story {
  display: block !important;
}
.saved-view .record-register {
  margin-top: 0;
}
.portal:not(.saved-view) .record-register {
  display: none;
}
/* Footer and bilingual guide. */
footer {
  background: #fcfbf8;
  color: var(--muted);
  padding: 20px clamp(24px, 4vw, 64px) 24px;
  font-size: 12px;
}
footer > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
footer a {
  color: #536873;
}
.footer-links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.guide-trigger {
  font-family: "Noto Serif Bengali", serif;
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: 16px;
  min-height: 44px;
}
.guide-bn,
.guide-bn h2,
.guide-bn h3 {
  font-family: "Noto Serif Bengali", serif;
  letter-spacing: normal;
}
.guide-bn {
  line-height: 1.9;
}
#guideDialog {
  width: min(1060px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fcfbf8;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
}
#guideDialog::backdrop {
  background: #102d3bbd;
}
.guide-dialog-tools {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px;
  background: #fcfbf8;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
.guide-content {
  padding: 28px;
}
.guide-heading {
  margin-bottom: 24px;
}
.guide-heading h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.guide-heading p:last-child {
  color: var(--muted);
  margin: 0;
}
.guide-eyebrow {
  font-size: 13px;
  color: #315f6b;
  margin-bottom: 10px;
}
.guide-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.guide-facts > span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  background: #edf3f2;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 14px;
}
.guide-grid {
  display: grid;
  gap: 20px;
}
.guide-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
}
.guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  color: #315f6b;
  background: #edf3f2;
  margin-bottom: 16px;
}
.guide-language-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.guide-language {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.guide-step-top {
  font-size: 14px;
  color: #315f6b;
  margin-bottom: 8px;
}
.guide-step h3 {
  font-size: 23px;
  margin-bottom: 14px;
}
.guide-checklist {
  padding-left: 22px;
  margin: 0 0 20px;
  line-height: 1.75;
}
.guide-checklist li {
  padding-left: 3px;
  margin-bottom: 10px;
}
.guide-tip {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.guide-output {
  background: var(--brand);
  color: white;
  padding: 24px;
  margin-top: 24px;
  border-radius: 0;
}
.guide-output p {
  color: #d0dce1;
  margin: 6px 0 0;
}
.guide-output > a {
  display: inline-block;
  margin-top: 22px;
  color: white;
  overflow-wrap: anywhere;
}
.guide-output strong {
  font-size: 18px;
}
/* Information pages use the identical institutional header. */
.policy-page .information-page > p {
  margin-bottom: 20px;
}
.policy-hero {
  padding-bottom: 28px;
}
.policy-hero h1 {
  font-size: 38px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.policy-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 65ch;
}
.policy-layout {
  display: block;
}
.policy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.policy-toc strong {
  width: 100%;
  font-size: 14px;
}
.policy-toc a {
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
}
.policy-toc a:hover .policy-link-text {
  text-decoration: underline;
}
.policy-toc a span[aria-hidden] {
  text-decoration: none !important;
}
.policy-section {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 20px;
  border-radius: 0;
  scroll-margin-top: 24px;
}
.policy-section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.policy-section-heading > span {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 30px;
  height: 30px;
  background: #edf3f2;
  font-size: 13px;
  color: #315f6b;
}
.policy-section h2 {
  font-size: 25px;
  margin: 0;
}
.policy-section p {
  line-height: 1.8;
  color: #344e5c;
  overflow-wrap: anywhere;
}
.policy-section p:last-child {
  margin: 0;
}
.policy-help {
  padding: 26px;
  background: #edf3f2;
  border: 1px solid var(--line);
  border-radius: 0;
}
.policy-help h2 {
  font-size: 25px;
}
.policy-help a {
  overflow-wrap: anywhere;
}
/* Views and access override the generic card surface. */
.needs-auth .login-panel {
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.portal:not(.needs-auth):not(.policy-page) .entry-topbar > a {
  display: none;
}
.admin-view .workspace,
.admin-view .record-register,
.admin-view .report-nav {
  display: none;
}
.admin-view .identity-story {
  display: block !important;
}
.admin-view .admin {
  margin-top: 0;
}
#showAdminWorkspace {
  font-size: 13px;
  padding: 8px 12px;
  min-height: 40px;
}
#showAdminWorkspace[aria-pressed="true"] {
  background: var(--brand);
  color: white;
}
#files-section .grid > div > small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .admin-view .identity-story {
    display: none !important;
  }
  #showAdminWorkspace {
    grid-column: 1/-1;
    grid-row: 3;
    justify-self: start;
  }
}
/* Responsive institutional header and single-column mobile editing. */
@media (min-width: 1500px) {
  .portal > main,
  .portal > footer {
    padding-left: 72px;
    padding-right: 72px;
  }
}
@media (max-width: 1100px) {
  :root {
    --rail: 280px;
  }
  .masthead {
    padding-left: 24px;
    padding-right: 24px;
  }
  .brand strong {
    font-size: 32px;
  }
  .brand-affiliation {
    font-size: 13px;
  }
  .portal > main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .card,
  .admin {
    padding: 24px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .team-entry .two {
    grid-template-columns: 1fr 1fr;
  }
  .wide {
    grid-column: 1/-1;
  }
  .guide-language-pair {
    gap: 22px;
  }
  .section-title h2 {
    font-size: 26px;
  }
}
@media (max-width: 800px) {
  :root {
    --rail: 0px;
  }
  .masthead {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 24px;
    overflow: visible;
  }
  .brand {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    text-align: left;
    align-items: start;
    max-width: 650px;
  }
  .college-logo {
    width: 84px;
    height: 84px;
    padding: 4px;
  }
  .brand-copy {
    margin: 0;
  }
  .brand strong {
    font-size: 28px;
  }
  .brand-established {
    margin-top: 7px;
    font-size: 12px;
  }
  .brand-affiliation {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.65;
  }
  .identity-story,
  .identity-address {
    display: none !important;
  }
  .portal > main,
  .portal > footer {
    margin-left: 0;
    width: 100%;
  }
  .portal > main {
    padding: 22px 24px 28px;
    min-height: 0;
  }
  .needs-auth .page-intro {
    padding-top: 10px;
  }
  .page-intro {
    margin-bottom: 24px;
  }
  .page-intro h1 {
    font-size: 32px;
  }
  .needs-auth .login-panel {
    margin-bottom: 16px;
  }
  .entry-topbar {
    margin-bottom: 12px;
  }
  .portal:not(.needs-auth):not(.policy-page) .college-logo {
    width: 76px;
    height: 76px;
  }
  .portal:not(.needs-auth):not(.policy-page) .brand {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
  }
  .portal:not(.needs-auth):not(.policy-page) .brand-copy {
    margin: 0;
  }
  .portal:not(.needs-auth):not(.policy-page) .brand strong {
    font-size: 26px;
  }
  .portal:not(.needs-auth):not(.policy-page) .brand:not(.institution-brand) .brand-affiliation {
    display: none;
  }
  .portal:not(.needs-auth):not(.policy-page) .masthead {
    padding: 20px 24px;
  }
  .report-nav {
    margin-top: 18px;
    max-width: 650px;
  }
  .report-nav summary {
    cursor: pointer;
    min-height: 44px;
    margin: 0;
    font-size: 14px;
  }
  .report-nav summary #mobileStepLabel {
    margin-left: auto;
  }
  .report-nav nav {
    padding-top: 10px;
  }
  .report-nav nav a {
    font-size: 15px;
    min-height: 44px;
  }
  .wizard-progress {
    margin-bottom: 18px;
  }
  .session-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .session-bar > span {
    font-size: 13px;
  }
  .session-bar nav {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .session-bar nav a {
    flex: 1;
  }
  .session-bar #signOut {
    grid-column: 2;
    grid-row: 1;
  }
  .saved-view .identity-story {
    display: none !important;
  }
  .two,
  .team-entry .two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-language-pair {
    grid-template-columns: 1fr;
  }
  .guide-language + .guide-language {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .guide-content {
    padding: 22px;
  }
  .guide-output .guide-language-pair > div + div {
    padding-top: 18px;
    border-top: 1px solid #ffffff40;
  }
  .policy-hero h1 {
    font-size: 32px;
  }
}
@media (max-width: 560px) {
  .masthead {
    padding: 24px 20px;
  }
  .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .brand strong {
    font-size: 30px;
  }
  .brand-affiliation {
    margin-top: 14px;
  }
  .portal > main {
    padding: 20px 18px 24px;
  }
  .portal > footer {
    padding: 12px 18px 24px;
  }
  .entry-topbar {
    font-size: 12px;
  }
  .entry-topbar > a {
    font-size: 12px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
  .page-intro p:last-child {
    font-size: 15px;
  }
  .needs-auth .page-intro {
    padding-top: 8px;
  }
  .access-choices {
    margin-bottom: 22px;
  }
  .access-choices button {
    font-size: 14px;
  }
  .login-panel .login-button {
    margin-top: 22px;
  }
  .two,
  .team-entry .two {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 22px;
  }
  .wide {
    grid-column: auto;
  }
  .date-time-inputs {
    grid-template-columns: 1fr;
  }
  .card,
  .admin {
    padding: 22px 18px;
    margin-bottom: 20px;
  }
  .section-title {
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 22px;
  }
  .section-title h2 {
    font-size: 25px;
  }
  .section-title p {
    font-size: 14px;
  }
  .section-title .number {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
  }
  label {
    font-size: 15px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
    min-height: 50px;
  }
  input[type="file"] {
    font-size: 14px;
  }
  /* Selected filenames already have their own removable list. Avoid clipped
     native status text beside the picker on narrow phones. */
  #reportForm input[type="file"] {
    font-size: 0;
    padding: 0;
  }
  #reportForm input[type="file"]::file-selector-button {
    width: 100%;
    margin: 0;
    border: 0;
    min-height: 48px;
    font: 600 14px/1.5 "Source Sans 3", sans-serif;
  }
  .repeat,
  .team-group,
  .funding-block,
  .date-time-group,
  .location {
    padding: 16px;
  }
  .team-entry,
  .funding-entry,
  .contributors-block .person-entry {
    padding: 14px;
  }
  .actions > button,
  .actions > a {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
  .actions > p {
    flex-basis: 100%;
  }
  .step-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .step-position,
  .step-save-status {
    grid-column: 1/-1;
  }
  .step-position {
    order: 0;
    text-align: left;
  }
  .step-next {
    grid-column: 2;
    margin: 0;
  }
  .step-controls > button {
    width: 100%;
    font-size: 14px;
    padding: 11px 8px;
    min-height: 48px;
  }
  .step-controls > .secondary:first-child {
    grid-column: 1;
    grid-row: 2;
  }
  .step-controls > .secondary:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }
  .step-controls > .step-next {
    grid-column: 3;
    grid-row: 2;
  }
  .register-tools {
    grid-template-columns: 1fr;
  }
  .record-row {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .record-row button {
    width: 100%;
  }
  .record-row strong {
    font-size: 17px;
  }
  .saved-file-list li {
    flex-wrap: wrap;
    align-items: start;
    gap: 10px;
  }
  .saved-file-list li > a,
  .saved-file-list li > span {
    flex: 1 1 170px;
  }
  .saved-file-list button {
    min-height: 44px;
  }
  .pending-faculty-request {
    flex-direction: column;
    align-items: stretch;
  }
  .admin summary {
    font-size: 16px;
  }
  .admin h3 {
    font-size: 23px;
  }
  .admin button {
    max-width: 100%;
  }
  footer > .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links {
    gap: 8px 20px;
  }
  .footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .guide-trigger {
    font-size: 16px;
  }
  .guide-content {
    padding: 22px 14px;
  }
  .guide-heading h2 {
    font-size: 25px;
  }
  .guide-step {
    padding: 20px 16px;
  }
  .guide-step h3 {
    font-size: 23px;
  }
  .guide-bn h3 {
    font-size: 21px;
  }
  .guide-facts {
    display: grid;
    grid-template-columns: 1fr;
  }
  .guide-output {
    padding: 22px 18px;
  }
  .policy-section,
  .policy-help {
    padding: 22px 18px;
  }
  .policy-section-heading {
    align-items: start;
    gap: 12px;
  }
  .policy-section h2 {
    font-size: 23px;
  }
  .policy-toc {
    gap: 4px 18px;
  }
  .policy-toc a {
    min-height: 44px;
  }
  .portal:not(.needs-auth):not(.policy-page) .brand {
    display: grid;
    text-align: left;
  }
  .portal:not(.needs-auth):not(.policy-page) .brand strong {
    font-size: 23px;
  }
  .portal:not(.needs-auth):not(.policy-page) .masthead {
    padding: 18px;
  }
  .portal:not(.needs-auth):not(.policy-page) .brand-established {
    margin-top: 6px;
  }
  .record-detail > h2 {
    font-size: 26px;
  }
}
@media (forced-colors: active) {
  select:not([multiple]) {
    appearance: auto;
    background-image: none;
    padding-right: 16px;
  }
  .wizard-progress > span {
    background: Highlight;
  }
  .access-choices button[aria-pressed="true"] {
    border-bottom-color: Highlight;
  }
  .report-nav nav a.active {
    outline: 1px solid Highlight;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .masthead,
  .entry-topbar,
  .session-bar,
  .step-controls,
  .report-nav,
  footer,
  .skip-link {
    display: none !important;
  }
  .portal > main {
    margin: 0;
    width: 100%;
    padding: 0;
  }
  .step-inactive {
    display: block !important;
  }
  .card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .saved-view .workspace {
    display: block;
  }
  .portal:not(.saved-view) .record-register {
    display: none;
  }
}

/* First-save recovery checkpoint */
#facultyCodePanel.recovery-dialog {
  box-sizing: border-box;
  inset: 0 0 0 var(--rail);
  width: min(610px, calc(100% - var(--rail) - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid #c9d4dc;
  border-radius: 0;
  background: #fff;
  color: #15334b;
  box-shadow: 0 24px 80px #071d3359;
}
.recovery-dialog::backdrop {
  background: rgba(9, 28, 44, 0.76);
}
.recovery-intro {
  padding: 28px 32px 24px;
  text-align: center;
  background: #15334b;
  color: #fff;
}
.recovery-emblem {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 1px solid #9ab5bf;
  border-radius: 0;
  color: #d4e7df;
}
.recovery-emblem svg {
  width: 28px;
  height: 28px;
}
.recovery-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #c6dcd6;
}
#facultyCodePanel h2 {
  margin: 0 0 12px;
  font-family: "Noto Serif Bengali", "Source Serif 4", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.2;
  color: #fff;
}
#facultyCodePanel h2:focus {
  outline: none;
}
#recoveryDescription {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #e4ecf0;
}
.recovery-body {
  padding: 24px 32px;
}
.recovery-once {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 10px;
  background: #fff2cf;
  color: #694900;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid #e7d7aa;
  border-radius: 0;
}
#facultyCodePanel #newFacultyCode {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 8px 0 14px;
  padding: 14px 16px;
  resize: none;
  font:
    600 1rem/1.6 ui-monospace,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
  background: #f3f6f7;
  border: 1px solid #a5b8c6;
  border-radius: 0;
  color: #15334b;
}
.recovery-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.recovery-tools button {
  padding: 12px 14px;
  font-size: 1rem;
}
.recovery-privacy {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #526472;
  margin: 18px 0;
}
#facultyCodePanel .recovery-confirm {
  margin: 18px 0;
  padding: 14px;
  background: #f3f6f7;
  border: 1px solid #dce3e7;
  border-radius: 0;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.recovery-confirm input {
  margin: 3px 0 0;
  flex-shrink: 0;
}
#continueAfterCode {
  width: 100%;
  padding: 14px 18px;
}
#continueAfterCode:disabled {
  opacity: 1;
  background: #e5eaed;
  border-color: #d5dde2;
  color: #647582;
  cursor: not-allowed;
}
.recovery-next {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.83rem;
  color: #647582;
}
#facultyCodeStatus:not(:empty) {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #24564e;
}
@media (max-width: 520px) {
  .recovery-intro {
    padding: 23px 20px 20px;
  }
  .recovery-body {
    padding: 20px;
  }
  #facultyCodePanel h2 {
    font-size: 1.5rem;
  }
  .recovery-tools {
    grid-template-columns: 1fr;
  }
  #facultyCodePanel #newFacultyCode {
    font-size: 0.9rem;
  }
}
#facultyCodePanel button {
  min-height: 44px;
  border: 1px solid #15334b;
  border-radius: 0;
  background: #15334b;
  color: #fff;
  font-weight: 700;
}
#facultyCodePanel button.secondary {
  background: #fff;
  color: #15334b;
  border-color: #a5b8c6;
}
#facultyCodePanel button:hover:not(:disabled) {
  background: #254f68;
  color: #fff;
}
#facultyCodePanel #continueAfterCode:disabled {
  background: #e5eaed;
  border-color: #d5dde2;
  color: #647582;
}
@media (min-width: 521px) and (max-height: 800px) {
  .recovery-intro {
    padding: 18px 28px;
  }
  .recovery-emblem {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  .recovery-emblem svg {
    width: 23px;
    height: 23px;
  }
  #facultyCodePanel h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  .recovery-body {
    padding: 18px 28px;
  }
  .recovery-once {
    margin-bottom: 10px;
  }
  #facultyCodePanel #newFacultyCode {
    height: 72px;
    margin-bottom: 10px;
  }
  .recovery-privacy {
    margin: 12px 0;
  }
  #facultyCodePanel .recovery-confirm {
    margin: 12px 0;
    padding: 10px;
  }
}

/* Shared informational pop-ups. */
.footer-links button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  padding: 6px 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.information-dialog {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fcfbf8;
  color: var(--ink);
}
.information-dialog::backdrop {
  background: #102d3bbd;
}
.information-dialog-content {
  padding: 28px;
}
.information-dialog .policy-hero {
  padding: 0 0 24px;
}
.information-dialog .policy-hero h2 {
  font-size: 34px;
  margin: 0 0 12px;
}
.information-dialog .policy-layout {
  grid-template-columns: 1fr;
}
.information-dialog .policy-toc {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.information-dialog .policy-toc strong {
  flex-basis: 100%;
}
.information-dialog .policy-toc a {
  font-size: 14px;
}
.information-dialog .policy-section {
  scroll-margin-top: 80px;
}
.guide-output > button {
  margin-top: 18px;
}
.contact-email {
  display: inline-block;
  overflow-wrap: anywhere;
  font-size: 20px;
  margin: 8px 0 18px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 560px) {
  .information-dialog-content {
    padding: 22px 16px;
  }
  .information-dialog .policy-hero h2 {
    font-size: 28px;
  }
  .guide-dialog-tools {
    padding: 10px 16px;
  }
  .contact-email {
    font-size: 17px;
  }
}

/* Keep session feedback visible in every workspace view. */
#sessionStatus:empty {
  display: none;
}
#sessionStatus:not(:empty) {
  padding: 14px 18px;
  margin: 0 0 22px;
  background: #edf3f2;
  border: 1px solid #315f6b;
}
.auth-checking .page-intro,
.auth-checking .entry-topbar > a {
  visibility: hidden;
}
.portal:not(.admin-view) .admin {
  display: none;
}

/* Let content and footer share the viewport without a guessed footer height. */
.portal {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.portal > main {
  flex: 1 0 auto;
  min-height: 0;
}
.portal > footer,
.masthead {
  flex-shrink: 0;
}

/* One document scrollbar: the rail participates in the page grid, while its
   background continues beside long reports. Short screens can reach its end. */
@media screen and (min-width: 801px) {
  .portal {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    background: linear-gradient(to right, var(--brand) var(--rail), #fcfbf8 var(--rail));
  }
  .portal > .masthead {
    position: sticky;
    inset: auto;
    top: 0;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    min-height: 100svh;
    overflow: visible;
    padding: 24px 22px;
  }
  .portal > main,
  .portal > footer {
    grid-column: 2;
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }
  .portal > main { grid-row: 1; }
  .portal > footer { grid-row: 2; }
  .portal:not(.needs-auth):not(.policy-page) .brand-affiliation {
    font-size: 13px;
    line-height: 1.6;
  }
  .portal:not(.needs-auth):not(.policy-page) .identity-address {
    font-size: 13px;
    padding-top: 16px;
  }
  .report-nav { margin-top: 20px; }
  .report-nav nav a { font-size: 15px; }
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.guide-heading > .guide-bn {
  margin: 0 0 4px;
  font-size: clamp(23px, 3vw, 28px);
}
.guide-heading > .guide-subtitle {
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--muted);
}
.guide-heading > .guide-summary {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
footer .footer-links {
  align-items: center;
  gap: 4px 18px;
}
footer .footer-links .guide-trigger {
  font-family: "Noto Serif Bengali", serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 6px 0;
}
@media (max-width: 560px) {
  .portal > footer { padding-top: 0; }
  footer > .wrap { gap: 8px; }
  .footer-links { width: 100%; }
  .step-controls { padding-bottom: 4px; }
  .step-position { margin: 0; }
  .step-save-status:empty { display: none; }
  .custom-event-type {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .product-identity { gap: 4px; }
  .product-identity > span:last-child { flex-basis: 100%; }
}

.draft-state{margin:0 0 18px;padding:10px 14px;border-radius: 0;background:#edf4f2;color:#21584e;font-size:14px;font-weight:600}.draft-state[data-unsaved="true"]{background:#fff4df;color:#725115}

/* Match the supplementary file picker to its adjacent category control. */
#supplementFile {
  height: 50px;
  min-height: 50px;
  padding: 4px 8px;
  background: #fff;
  line-height: 40px;
}
#supplementFile::file-selector-button {
  height: 40px;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  background: #edf2f3;
  line-height: 28px;
  vertical-align: top;
}
#supplementFile::file-selector-button:hover {
  background: #dde8eb;
}

/* Form rhythm: help 6, label 8, related fields 16, rows 24,
   section introduction 24, distinct groups 32. Keep this scoped to editing. */
#reportForm {
  --space-help: 6px;
  --space-label: 8px;
  --space-related: 16px;
  --space-row: 24px;
  --space-group: 32px;
  container-type: inline-size;
}
#reportForm .grid { gap: var(--space-row); }
#reportForm .section-title { margin-bottom: var(--space-row); padding-bottom: 0; }
#reportForm .section-title h2 { margin-bottom: var(--space-label); }
#reportForm .section-title .number { margin-top: 0; }
#reportForm .field-hint { margin-top: var(--space-help); }
#reportForm .team-fields { gap: var(--space-related); margin-block: var(--space-label); }
#reportForm .team-heading { margin-bottom: var(--space-related); }
#reportForm .team-heading span { margin-top: 4px; }
#reportForm .repeat { margin-bottom: var(--space-related); }
#reportForm .repeat .grid { gap: var(--space-related) var(--space-row); }
#reportForm .repeat-head { margin-bottom: var(--space-related); }
#reportForm .subsection,
#reportForm .admin-subsection + .admin-subsection,
#reportForm .contributors-block {
  margin-top: var(--space-group);
  padding-top: var(--space-row);
}
#reportForm .subsection h3,
#reportForm .admin-subsection h3,
#reportForm .funding-block h4 { margin-bottom: var(--space-label); }
#reportForm .subsection > p,
#reportForm .admin-subsection > p,
#reportForm .funding-block > p { margin-bottom: var(--space-related); }
#reportForm .conditional-fields,
#reportForm .funding-block { margin-top: var(--space-related); }
#reportForm .funding-note { margin-top: var(--space-row); }
#reportForm .session-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#reportForm .session-fields > label { grid-column: span 2; }
#reportForm .session-fields > label:nth-child(n + 4) { grid-column: 1 / -1; }
#reportForm .upload-note { margin-bottom: 12px; }
#reportForm .existing-files:not(:empty) { margin-bottom: var(--space-row); }
#reportForm #files-section .grid > div > small {
  display: block;
  margin-top: var(--space-help);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
#reportForm input[type="file"] {
  min-height: 50px;
  padding: 4px 8px;
  background: #fff;
}
#reportForm input[type="file"]::file-selector-button {
  min-height: 40px;
  padding: 6px 12px;
}
#reportForm .location p { margin: var(--space-help) 0 0; }
#reportForm .location > p:empty { display: none; }
#reportForm .submit-card .check {
  margin-top: var(--space-group);
  padding-top: var(--space-row);
  border-top: 1px solid var(--line);
}
#reportForm .submit-card .actions { margin-top: var(--space-row); }
@container (max-width: 740px) {
  #reportForm .two, #reportForm .session-fields { grid-template-columns: 1fr; }
  #reportForm .wide, #reportForm .session-fields > label { grid-column: 1; }
}
@media (max-width: 560px) {
  #reportForm { --space-row: 20px; --space-group: 28px; }
  #reportForm .section-title { margin-bottom: 24px; }
  #reportForm input[type="file"] { padding: 0; }
  #reportForm input[type="file"]::file-selector-button { min-height: 48px; }
}

@container (max-width: 800px) {
  #reportForm #files-section .two { grid-template-columns: 1fr; }
  #reportForm #files-section .wide { grid-column: 1; }
}

/* Record details use the same hierarchy as the editor, with compact metadata. */
.record-detail > h2 { padding-bottom: 16px; margin-bottom: 24px; }
#recordDetailContent .record-title { margin: 0 0 6px; }
#recordDetailContent .record-meta { margin: 0; color: var(--muted); font-size: 14px; }
#recordDetailContent > h4 { margin: 24px 0 8px; font-size: 16px; line-height: 1.5; }
#recordDetailContent .record-summary-heading { margin-top: 16px; }
#recordDetailContent .record-summary { margin: 0; max-width: 75ch; white-space: pre-line; }
#recordDetailContent > ul { margin: 0; padding-left: 24px; }
#recordDetailContent > ul > li + li { margin-top: 6px; }
#recordDetailContent .review-note { margin: 16px 0 0; }
.record-detail > .actions { margin-top: 24px; gap: 12px; }
.record-detail .supplement-panel { margin-top: 32px; padding-top: 24px; }
.record-detail .supplement-panel > h3 { margin-bottom: 8px; }
.record-detail .supplement-panel > p { max-width: 75ch; margin-bottom: 16px; }
.record-detail .supplement-panel .grid { gap: 24px; }
.record-detail .supplement-panel > button { margin-top: 16px; }
@media (max-width: 560px) {
  .record-detail .supplement-panel { margin-top: 28px; padding-top: 20px; }
  .record-detail .supplement-panel .grid { gap: 20px; }
}

/* Secondary views follow the same relationships: 8 / 16 / 24 / 32. */
.admin p:empty, #registerStatus:empty { display: none; }
.admin h3 { margin-bottom: 8px; }
.admin p { margin: 8px 0 16px; max-width: 75ch; }
.admin label { margin-top: 24px; }
.admin button { margin-top: 16px; }
.admin .actions { margin-top: 24px; }
.admin .actions button { margin-top: 0; }
.admin-review { margin-top: 32px; }
.activation-admin { padding-bottom: 24px; margin-bottom: 32px; }
.admin-task + .admin-task { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-task > h3 + label { margin-top: 16px; }
.legacy-tools { margin: 32px 0; }
.record-register .section-title { margin-bottom: 24px; padding-bottom: 0; }
.record-register .section-title h2 { margin-bottom: 8px; }
.register-tools { margin-bottom: 16px; }
#registerStatus:not(:empty) { margin: 0 0 16px; }
.access-choices { margin-bottom: 24px; }
.needs-auth .page-intro { margin-bottom: 24px; }
.login-panel .login-button { margin-top: 24px; }
.policy-hero { padding-bottom: 24px; }
.policy-hero > p:last-child { margin-bottom: 0; }
.policy-section-heading { align-items: flex-start; margin-bottom: 16px; }
.policy-section p { max-width: 75ch; }
.policy-section p + p { margin-top: 16px; }
.guide-step h3 { margin-bottom: 16px; }
.guide-checklist { margin-bottom: 16px; }
.guide-checklist li:last-child { margin-bottom: 0; }
.guide-tip { margin-top: 0; }
@media (max-width: 560px) {
  .admin label { margin-top: 20px; }
  .admin-review, .admin-task + .admin-task { margin-top: 28px; }
  .admin-task + .admin-task { padding-top: 20px; }
  .activation-admin { padding-bottom: 20px; margin-bottom: 28px; }
  .legacy-tools { margin-block: 28px; }
}

.admin p:not(:empty) + button { margin-top: 0; }
.admin-task > .actions { margin-top: 16px; }

/* Complete the shared rhythm, including activation and code-saving states. */
.page-intro { margin-bottom: var(--space-row); }
.page-intro h1 { margin-bottom: var(--space-label); }
.eyebrow { margin-bottom: var(--space-label); }
.activation-prompt h2 { margin-bottom: var(--space-label); }
.activation-prompt p { margin-bottom: var(--space-related); max-width: 65ch; }
.activation-prompt .login-button { margin-top: var(--space-label); }
#facultyCodePanel h2 { margin-bottom: var(--space-label); }
#facultyCodePanel #newFacultyCode { margin: var(--space-label) 0 var(--space-related); }
.recovery-privacy { margin: var(--space-row) 0 var(--space-related); }
#facultyCodePanel .recovery-confirm { margin: var(--space-related) 0 var(--space-row); }
.recovery-next { margin-top: var(--space-label); }
#facultyCodeStatus:empty, #sessionStatus:empty { display: none; }
.information-page > .policy-hero { margin-bottom: 0; }
.policy-help h2 { margin-bottom: var(--space-label); }
.policy-help p { margin-bottom: var(--space-related); max-width: 75ch; }
.policy-help > :last-child { margin-bottom: 0; }
#contactDialog h2 { margin-bottom: var(--space-label); }
#contactDialog h3 { margin: var(--space-row) 0 var(--space-label); }
#contactDialog p { max-width: 65ch; margin-bottom: var(--space-related); }
#contactDialog p:last-child { margin-bottom: 0; }
#reviewControls { margin-top: var(--space-group); padding-top: var(--space-row); }
#reviewControls h3 { margin-bottom: var(--space-related); }
@media (max-width: 560px) {
  .page-intro { margin-bottom: 20px; }
  .policy-toc { row-gap: 4px; }
  #reviewControls { margin-top: 28px; padding-top: 20px; }
  .recovery-privacy { margin-top: 20px; }
  #facultyCodePanel .recovery-confirm { margin-bottom: 20px; }
}

/* Administrator controls: align rows without inheriting standalone-button gaps. */
.admin button, .admin button.secondary { min-height: 50px; }
.admin .actions { align-items: stretch; gap: 12px; }
.admin .actions > button { display: inline-flex; align-items: center; justify-content: center; }
.admin .pending-faculty-request button,
.admin .record-row button { margin-top: 0; flex-shrink: 0; }
.admin .pending-faculty-request > div { min-width: 0; overflow-wrap: anywhere; }
.admin p[role="status"], .admin #approvalDetails { max-width: none; }
.admin .legacy-tools[open] > summary { margin-bottom: 16px; }
.admin .legacy-tools > h3 { margin-top: 0; }
.admin #activationLinkPanel > label:first-child { margin-top: 0; }
.admin #adminRecoveryPanel > p:first-child { margin-top: 0; }
.admin #activationExpiry { margin-bottom: 0; }
.admin #activationLinkPanel, .admin #adminRecoveryPanel { margin-top: 24px; padding: 16px; }
.admin #adminRecordList:not(:empty) { margin-top: 24px; }
#reviewControls .actions { align-items: stretch; }
#reviewControls .actions button { min-height: 50px; }
@media (max-width: 900px) {
  .session-bar #showAdminWorkspace { grid-column: 1 / -1; width: 100%; min-height: 46px; }
}
@media (max-width: 560px) {
  .admin { padding: 22px 18px; }
  .admin button { width: 100%; white-space: normal; }
  .admin .actions > button { flex-basis: 100%; }
  .admin .legacy-tools { padding: 16px; }
  .admin .pending-faculty-request { padding: 16px; gap: 16px; }
  .admin #activationLinkPanel, .admin #adminRecoveryPanel { margin-top: 20px; }
  .admin #adminRecordList:not(:empty) { margin-top: 20px; }
}
