/* Teacher recording controls, scoped to the recording module. */
#body-record .record-panel {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text, #303248);
}
#body-record .record-panel [hidden] { display: none !important; }
#body-record .record-panel-summary,
#body-record .record-panel-card {
  border: 1px solid #e9e8f0;
  border-radius: 15px;
  padding: 24px;
  background: #fff;
}
#body-record .record-panel-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
#body-record .record-panel h3 { margin: 0; font-size: 16px; font-weight: 650; }
#body-record .record-panel-state { display: flex; align-items: center; gap: 16px; }
#body-record .record-panel-state p { margin: 5px 0 0; color: #858596; font-size: 12px; }
#body-record .record-panel-dot {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f2eff8;
}
#body-record .record-panel-dot::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #a59ab9; }
#body-record .record-panel-dot.is-live { background: #fcedf0; }
#body-record .record-panel-dot.is-live::after { background: #c84b60; }
#body-record .record-panel-summary-actions { display: flex; align-items: center; gap: 26px; }
#body-record .record-panel-summary-actions small { display: block; text-align: right; font-size: 11px; color: #858596; }
#body-record #rec-elapsed { display: block; font-size: 30px; line-height: 1.4; font-variant-numeric: tabular-nums; }
#body-record .record-panel-summary-actions .btn { min-width: 116px; }
#body-record .record-panel-stop { color: #b64a58; border-color: #ecd1d7; background: #fff; }
#body-record .record-panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 20px; }
#body-record .record-panel-content { grid-column: 1; }
#body-record .record-panel-storage { grid-column: 2; }
#body-record .record-panel-files { grid-column: 1 / -1; min-width: 0; }
#body-record .record-panel-files header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
#body-record .record-panel-files #rec-artifacts { font-size: 13px; color: #858596; }
#body-record .record-panel-files .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#body-record .record-panel-files .r-title { flex: 1; min-width: 180px; color: #303248; overflow-wrap: anywhere; }
#body-record .record-panel-files .r-sub { font-size: 12px; color: #858596; margin-top: 5px; }
#body-record .record-panel-visual { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid #e9e8f0; }
#body-record .record-panel-visual strong,
#body-record .record-save-target strong { display: block; font-size: 14px; }
#body-record .record-panel-visual small,
#body-record .record-save-target small { display: block; font-size: 12px; color: #858596; margin-top: 5px; }
#body-record .record-panel-screen { display: grid; place-items: center; width: 100px; height: 64px; border: 1px solid #e6e2ee; border-radius: 8px; background: #faf8ff; color: #ac9cd2; }
#body-record .record-panel-screen svg { width: 40px; height: 40px; }
#body-record .record-panel h4 { margin: 22px 0 6px; color: #858091; font-size: 13px; font-weight: 500; }
#body-record .record-panel-audio-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 76px 136px; align-items: center; gap: 12px; min-height: 86px; padding: 18px 0; border-bottom: 1px solid #f0eef5; }
#body-record .record-panel-audio-row:last-child { border-bottom: 0; }
#body-record .record-panel-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: #f5f3fa; color: #9684bc; }
#body-record .record-panel-icon svg { width: 19px; height: 19px; }
#body-record .record-panel-audio-copy { min-width: 0; }
#body-record .record-panel-audio-copy strong { display: block; font-size: 14px; font-weight: 500; }
#body-record .record-panel-audio-copy select { display: block; max-width: 100%; width: 180px; margin-top: 6px; padding: 2px 3px; border: 0; border-radius: 4px; background: #fff; color: #9991a5; font: inherit; font-size: 12px; }
#body-record .record-panel-badge { justify-self: start; font-size: 11px; border-radius: 5px; padding: 2px 7px; background: #f2f2f6; color: #8a8797; white-space: nowrap; }
#body-record .record-panel-badge.is-ready { background: #edf7f1; color: #23846a; }
#body-record .record-panel-audio-row > .btn { width: 136px; min-height: 38px; padding: 8px; font-size: 13px; }
#body-record .record-panel-action-hint { font-size: 12px; color: #9991a5; text-align: center; }
#body-record .record-panel-audio-error { grid-column: 2 / -1; margin: 0; font-size: 12px; color: #a24756; overflow-wrap: anywhere; }
#body-record .record-save-target { display: flex; gap: 10px; align-items: center; padding-bottom: 24px; margin-top: 24px; border-bottom: 1px solid #e9e8f0; }
#body-record .record-save-state { margin-top: 24px; padding: 16px; border: 1px solid #eee5cd; border-radius: 9px; background: #faf7ed; color: #946e2b; }
#body-record .record-save-state.is-ready { background: #f3f8f5; border-color: #e1eee5; color: #23846a; }
#body-record .record-save-state strong { font-size: 12px; }
#body-record .record-save-state p { margin: 8px 0 16px; font-size: 12px; line-height: 1.7; }
#body-record .record-text-button { border: 0; background: transparent; color: #7361cd; padding: 0; font: inherit; font-size: 12px; cursor: pointer; }
#body-record .record-save-state .record-text-button { display: block; margin-top: 14px; }
#body-record .record-panel-empty { padding: 28px 0; color: #858596; }
.record-panel-confirm { position: fixed; inset: 0; margin: auto; box-sizing: border-box; max-height: calc(100dvh - 32px); overflow: auto; width: min(420px, calc(100vw - 32px)); padding: 26px; border: 1px solid #e9e8f0; border-radius: 16px; color: #303248; box-shadow: 0 20px 70px #29223b25; }
.record-panel-confirm::backdrop { background: #302b4140; }
.record-panel-confirm h3 { margin: 0; font-size: 19px; }
.record-panel-confirm p { margin: 14px 0 24px; font-size: 13px; color: #858193; line-height: 1.8; }
.record-panel-confirm footer { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 1100px) {
  #body-record .record-panel-grid { grid-template-columns: minmax(0, 1fr); }
  #body-record .record-panel-content,
  #body-record .record-panel-storage { grid-column: 1; }
}
@media (max-width: 600px) {
  #body-record .record-panel-card { padding: 20px; }
  #body-record .record-panel-summary { flex-direction: column; align-items: stretch; padding: 20px; gap: 18px; }
  #body-record .record-panel-summary-actions { justify-content: space-between; padding-left: 66px; gap: 12px; }
  #body-record #rec-elapsed { font-size: 26px; }
  #body-record .record-panel-audio-row { grid-template-columns: 30px minmax(0, 1fr) 66px; gap: 10px; }
  #body-record .record-panel-audio-row > .btn { grid-column: 2 / -1; width: 100%; }
  #body-record .record-panel-action-hint { grid-column: 2 / -1; text-align: left; }
  #body-record .record-panel-audio-copy select { width: 160px; }
  #body-record .record-panel-screen { width: 88px; }
}
