.student-rerecord-entry {
  position: relative;
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 10px 16px; border: 1px solid #d8cce5; border-radius: 8px;
  background: #fbf8ff; color: #453459; font-size: 15px; font-weight: 600; text-align: left;
}
.student-rerecord-entry:hover { background: #f3ebfc; }
.student-rerecord-entry.is-home { margin-top: 16px; }
.student-rerecord-entry small { margin-left: auto; font-size: 12px; font-weight: 400; color: #685676; }
.student-rerecord-entry[hidden] { display: none; }
.student-rerecord-dot { position: absolute; top: 8px; right: 8px; display: block; width: 7px; height: 7px; border-radius: 50%; background: #e34458; pointer-events: none; }
.student-rerecord-dot[hidden] { display: none; }
.rerecord-entry-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 50%; background: #e9e2ee; font-size: 13px; }
.rerecord-entry-count.has-warning { color: #a52c42; background: #ffe3e8; }
.rerecord-entry-chevron { width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.student-secondary-modal-sheet.student-rerecord-sheet {
  display: flex; flex-direction: column; width: min(680px, 100%); height: 78vh; height: min(82dvh, 740px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px); overflow: hidden;
  padding-bottom: max(16px, var(--android-nav-safe, 0px), env(safe-area-inset-bottom, 0px));
}
.student-rerecord-sheet > .admin-modal-head { flex: 0 0 auto; }
.student-rerecord-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; gap: 16px; }
.student-rerecord-panel button { margin: 0; width: auto; box-shadow: none; }
.student-rerecord-panel .primary { color: #fff; background: #7042a8; border-color: #7042a8; }
.student-rerecord-panel .ghost { background: #fcf9ff; color: #583973; border: 1px solid #d5c7e1; }
.student-rerecord-panel button:focus-visible, .student-rerecord-entry:focus-visible { outline: 2px solid #7042a8; outline-offset: 3px; }
.student-rerecord-panel button:disabled { opacity: .5; cursor: not-allowed; }
.rerecord-tabs { display: flex; gap: 4px; padding: 4px; background: #eae3f1; border-radius: 8px; flex: 0 0 auto; }
.rerecord-tabs button { flex: 1; min-height: 40px; padding: 6px 8px; background: transparent; color: #665471; border: 0; border-radius: 5px; font-size: 14px; }
.rerecord-tabs button.active { background: #fff; color: #573087; }
.rerecord-tabs button span { margin-left: 8px; font-variant-numeric: tabular-nums; }
.rerecord-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 2px 6px; }
.rerecord-list ul { list-style: none; padding: 0; margin: 0; }
.rerecord-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 68px; padding: 10px 0; border-bottom: 1px solid #e3dbe9; }
.rerecord-row:not(:has(> img)) { grid-template-columns: minmax(0, 1fr) auto; }
.rerecord-row > img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #eee7f5; }
.rerecord-word { min-width: 0; }
.rerecord-word > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.rerecord-word b { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.rerecord-word span { font-size: 12px; color: #685676; overflow-wrap: anywhere; }
.rerecord-word small { display: block; margin-top: 3px; font-size: 11px; color: #715f7b; }
.rerecord-row > button { min-height: 40px; padding: 6px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.rerecord-pending-label { color: #8b621e; font-size: 12px; padding: 6px 10px; }
.rerecord-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 180px; color: #6a587a; font-size: 14px; }
.rerecord-loading { display: grid; gap: 12px; }
.rerecord-loading i { display: block; height: 56px; background: #eee8f3; border-radius: 6px; }
.rerecord-detail { flex: 1; min-height: 0; overflow-y: auto; text-align: center; padding: 8px 6px 20px; }
.rerecord-source { display: block; font-size: 12px; color: #6a587a; margin-bottom: 18px; }
.rerecord-detail-image { width: 140px; height: 140px; object-fit: contain; display: block; margin: 0 auto 16px; border-radius: 8px; }
.rerecord-detail h3 { font-size: 28px; line-height: 1.3; margin: 0; color: #462665; overflow-wrap: anywhere; }
.rerecord-detail .rerecord-meaning { margin: 10px 0 0; color: #6a587a; font-size: 16px; }
.rerecord-audio-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.rerecord-audio-actions button { min-height: 44px; padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.rerecord-review-status { display: inline-block; padding: 6px 12px; margin: 24px 0 0; border-radius: 6px; color: #a32d45; background: #fbe7ec; font-size: 13px; }
.rerecord-review-status.is-submitted { color: #346148; background: #e2f0e6; }
.rerecord-controls { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 2px 2px; border-top: 1px solid #d9c9e7; }
.rerecord-controls button { width: 100%; min-height: 48px; font-size: 16px; border-radius: 8px; }
.rerecord-controls .recording-now { color: #fff; background: #b73b55; border-color: #b73b55; }
.rerecord-record-status { margin: 0; min-height: 20px; font-size: 13px; line-height: 20px; text-align: center; color: #6a587a; }
.student-rerecord-panel[data-rerecord-view] > * { animation: rerecordViewEnter 180ms ease-out; }
@keyframes rerecordViewEnter { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 360px) {
  .rerecord-row { gap: 8px; grid-template-columns: 32px minmax(0, 1fr) auto; }
  .rerecord-row > img { width: 32px; height: 32px; }
  .rerecord-row > button { padding-inline: 8px; }
  .rerecord-detail-image { width: 112px; height: 112px; }
}
@media (prefers-reduced-motion: reduce) { .student-rerecord-panel[data-rerecord-view] > * { animation: none; } }
