.pg-records .page-header h2 {
  margin-bottom: 2px;
}
.pg-records .tabs {
  margin-bottom: 16px;
}
.rc-source {
  background: var(--accent-tint);
  color: var(--accent);
  flex: none;
}
.pg-records .rc-back {
  margin-bottom: 12px;
}
.pg-records .rc-section-title {
  margin: 26px 0 10px;
  font-size: 16px;
}
.pg-records .rc-card-head {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}
.pg-records .rc-card-head h3 {
  font-size: 15.5px;
  line-height: 1.35;
  margin: 0;
}
.pg-records .rc-card .btn {
  margin-top: 12px;
}
.rc-dl {
  display: grid;
  gap: 6px 14px;
  grid-template-columns: minmax(96px, max-content) 1fr;
  margin: 0;
}
.rc-dl > div {
  display: contents;
}
.rc-dl dt {
  color: var(--text-3);
  font-size: 12.5px;
}
.rc-dl dd {
  margin: 0;
  font-size: 13.5px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.rc-dl a {
  color: var(--accent);
  font-weight: 600;
}
.pg-records .rc-exam {
  margin-bottom: 16px;
}
.pg-records .rc-subj {
  font-weight: 600;
}
.pg-records .rc-extra {
  margin-top: 2px;
}
.pg-records .rc-marks {
  font-weight: 700;
  white-space: nowrap;
}
.pg-records .rc-subject {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid var(--cc);
  color: inherit;
  text-decoration: none;
}
.pg-records .rc-code {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--text-3);
}
.pg-records .rc-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.pg-records .rc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}
.pg-records .rc-subject-grid {
  align-items: start;
}
.pg-records .rc-answer {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.pg-records .rc-answer:first-child {
  border-top: 0;
  padding-top: 0;
}
.pg-records .rc-q {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13.5px;
}
.pg-records .rc-reply {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}
.pg-records .rc-reply p {
  margin: 2px 0 0;
  white-space: pre-wrap;
  font-size: 13.5px;
}
.pg-records .rc-head-actions {
  flex-wrap: wrap;
}
.pg-records .rv-chips {
  margin-bottom: 14px;
}
.pg-records .rv-list .rc-answer:last-child {
  padding-bottom: 0;
}
.pg-records .rv-head {
  align-items: flex-start;
  flex-wrap: nowrap;
}
.pg-records .rv-head b {
  font-size: 14.5px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pg-records .rv-head .badge {
  flex: none;
}
.pg-records .rc-q,
.pg-records .rc-reply p {
  overflow-wrap: anywhere;
}
.pg-records .rc-videos {
  padding: 6px;
  margin-top: 12px;
}
.pg-records .rc-video {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.pg-records .rc-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  flex: none;
}
.rc-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--n-900);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 10px;
}
.rc-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pg-records .rc-form {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.pg-records .rc-form-ic {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  flex: none;
}
.pg-records .rc-form-ic svg {
  width: 20px;
  height: 20px;
}
.pg-records .rc-form .rc-title {
  flex: 1;
}
.pg-records .rc-notice {
  background: var(--warning-tint);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-bottom: 14px;
}
.pg-records .rc-picture {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.pg-records .rc-info {
  white-space: pre-wrap;
  font-size: 13.5px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.pg-records .form-field .rc-days {
  background: var(--surface-2);
  color: var(--text-2);
}
.pg-records .form-field .rc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}
.pg-records .form-field .rc-check input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--accent);
}
.pg-records .form-field input[type=file] {
  padding: 8px 10px;
}
.pg-records .rc-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pg-records .rc-stages li {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: 13px;
}
.pg-records .rc-stages p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.pg-records .rc-mine-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pg-records .rc-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.pg-records .rc-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.pg-records .rc-search .input {
  padding-left: 36px;
}
@media (max-width: 760px) {
  .pg-records .rc-search {
    max-width: none;
  }
}
.pg-records .rc-fees td {
  vertical-align: top;
}
.pg-records .rc-fees .rc-fee-act {
  text-align: right;
  white-space: nowrap;
}
.pg-records .rc-overdue {
  color: var(--danger);
  font-weight: 600;
  margin-top: 2px;
}
.pg-records .rc-fee-note {
  margin: 10px 2px 0;
}
@media (max-width: 760px) {
  .pg-records .rc-fees thead {
    display: none;
  }
  .pg-records .rc-fees tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .pg-records .rc-fees tr:last-child {
    border-bottom: 0;
  }
  .pg-records .rc-fees td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .pg-records .rc-fees td:first-child,
  .pg-records .rc-fees .rc-fee-act {
    grid-column: 1 / -1;
    text-align: left;
  }
  .pg-records .rc-fees td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    color: var(--text-3);
    margin-bottom: 2px;
  }
}
.rc-profile .rc-dl {
  margin-top: 10px;
}
.rc-profile .rc-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-2);
}
.rc-profile .rc-sub ~ .rc-sub {
  margin-top: 22px;
}
.rc-retry {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
}
.rc-ecard {
  max-width: 420px;
  background: var(--n-0);
  color: var(--n-900);
  border: 1px solid var(--n-200);
  border-bottom: 6px solid var(--p-600);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.rc-ecard[role=button] {
  cursor: zoom-in;
}
.rc-ecard:focus-visible,
.rc-ecard-pic:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rc-ecard-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  padding: 14px 0 12px;
  border-bottom: 2px solid var(--p-600);
}
.rc-ecard-logo {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex: none;
}
.rc-ecard-school {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rc-ecard-school b {
  font-size: 13.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.rc-ecard-school span {
  font-size: 11px;
  font-weight: 600;
  color: var(--n-500);
}
.rc-ecard-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px 16px;
}
.rc-ecard-photo {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 92px;
  height: 115px;
  border-radius: var(--r-xs);
  background: var(--p-600);
  color: var(--n-0);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 26px;
}
.rc-ecard-photo > .avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rc-ecard-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--n-500);
}
.rc-ecard-id b {
  font-size: 16px;
  line-height: 1.25;
  color: var(--n-900);
  overflow-wrap: anywhere;
}
.rc-ecard-den {
  font-weight: 700;
  color: var(--p-600);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.rc-ecard-pic {
  display: block;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.rc-ecard-pic[role=button] {
  cursor: zoom-in;
}
.rc-ecard-big {
  max-width: none;
  width: 100%;
}
.rc-ecard-big .rc-ecard-photo {
  width: 120px;
  height: 150px;
  font-size: 34px;
}
.rc-ecard-big .rc-ecard-id b {
  font-size: 19px;
}
.rc-ecard-note {
  margin: 8px 0 0;
}
.rc-ecard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.rc-qr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.rc-qr-img {
  width: 236px;
  height: 236px;
  padding: 8px;
  background: var(--n-0);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  flex: none;
}
.rc-qr .small {
  flex: 1;
  min-width: 140px;
}
.rc-ecard-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rc-ecard-view .rc-qr {
  margin-top: 0;
  justify-content: center;
}
.rc-ecard-view .rc-qr-big {
  width: min(296px, 100%);
  height: auto;
  aspect-ratio: 1;
}
.rc-ecard-view .rc-ecard-actions {
  margin-top: 0;
  width: 100%;
  justify-content: flex-end;
}
.rc-houses-title {
  margin: 16px 0 6px;
  font-size: 13px;
  color: var(--text-2);
}
.rc-houses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  counter-reset: h;
}
.rc-houses li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13.5px;
  counter-increment: h;
}
.rc-houses li span::before {
  content: counter(h) ". ";
  color: var(--text-3);
}
.rc-houses li.mine {
  background: var(--warning-tint);
  font-weight: 700;
}
.rc-admin .rc-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
  cursor: pointer;
}
.rc-admin .rc-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.rc-admin .rc-counts {
  margin-top: 14px;
}
.rc-admin .rc-check-when {
  margin: 14px 0 6px;
}
.rc-admin .rc-check-row {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.rc-admin .rc-check-row summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-wrap: wrap;
}
.rc-admin .rc-pre {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 10px;
  font-size: 11.5px;
  overflow: auto;
  max-height: 320px;
  margin: 8px 0 0;
}
@media (max-width: 760px) {
  .rc-dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .rc-dl dd {
    margin-bottom: 6px;
  }
}
.pg-records .grid > * {
  min-width: 0;
}
.rc-admin .form-hint,
.rc-admin p,
.rc-admin .rc-check-row summary {
  overflow-wrap: anywhere;
}
.pg-records .rc-subject-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}
.pg-records .rc-subject-acts .rc-cta {
  text-decoration: none;
}
.pg-records .rc-subject-acts .rc-cta:hover {
  text-decoration: underline;
}
.pg-records .rc-fee-year + .rc-fee-year {
  margin-top: 18px;
}
.pg-records .rc-fee-year-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-2);
  margin: 0 2px 8px;
}
.pg-records .rc-form-search {
  max-width: 420px;
  margin-bottom: 14px;
}
.pg-records .rc-mine td {
  vertical-align: middle;
}
.pg-records .rc-mine-date {
  white-space: nowrap;
}
.pg-records .rc-mine-act {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .pg-records .rc-mine th,
  .pg-records .rc-mine td {
    padding-left: 10px;
    padding-right: 10px;
  }
  .pg-records .rc-mine-act .btn span {
    display: none;
  }
}
.pg-records .rc-mine-narrow {
  display: none;
}
@media (max-width: 540px) {
  .pg-records .rc-mine .rc-mine-date {
    display: none;
  }
  .pg-records .rc-mine-narrow {
    display: block;
  }
}
