.video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #020617;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.video-stage video,
.video-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  -webkit-user-drag: none;
}

.video-watermark {
  position: absolute;
  top: 12%;
  left: 4%;
  z-index: 2;
  color: rgba(255, 255, 255, .36);
  font-size: 9px;
  pointer-events: none;
  text-shadow: 0 1px 4px #000;
  transform: rotate(-8deg);
}

.video-upload-box {
  padding: 14px !important;
  border: 2px dashed #99f6e4 !important;
  border-radius: 12px;
  background: #f0fdfa;
}

.video-upload-box b { color: #0f766e; font-size: 11px; }
.video-upload-box input { background: #fff; }
.video-upload-box small { margin-top: 6px; color: var(--muted); font-size: 8px; }

.upload-progress {
  position: relative;
  overflow: hidden;
  height: 22px;
  border-radius: 12px;
  background: #e2e8f0;
}

.upload-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #5eead4);
  transition: width .2s;
}

.upload-progress span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}

.upload-divider { display: flex; align-items: center; gap: 9px; color: #94a3b8; font-size: 8px; }
.upload-divider::before,
.upload-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.identity-grid { display: grid; grid-template-columns: minmax(250px, .7fr) 1.3fr; gap: 18px; align-items: start; }
.identity-grid > div { display: grid; gap: 18px; }
.academy-preview { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(145deg, #111827, #0f766e); color: #fff; }
.academy-preview.blue { background: linear-gradient(145deg, #111827, #1d4ed8); }
.academy-preview.amber { background: linear-gradient(145deg, #111827, #b45309); }
.academy-preview.violet { background: linear-gradient(145deg, #111827, #6d28d9); }
.academy-preview img { width: 92px; height: 92px; padding: 8px; object-fit: contain; border-radius: 24px; background: #fff; box-shadow: 0 16px 34px #0004; }
.academy-preview small { margin-top: 18px; opacity: .75; }
.academy-preview h2 { margin: 5px 0; }
.academy-preview p { max-width: 320px; opacity: .85; }
.academy-preview span { font-weight: 700; }
.academy-preview em { margin-top: 32px; font-size: 9px; opacity: .58; font-style: normal; }
.logo-form { display: flex; gap: 12px; align-items: end; }
.logo-form > label { flex: 1; }
.identity-bottom { margin-top: 18px; }
.muted-copy { color: var(--muted); }
.domain-row,.domain-admin-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); }
.domain-row div,.domain-admin-row > div:first-child { display: grid; gap: 3px; }
.domain-row small,.domain-admin-row small { direction: ltr; color: var(--muted); }
.plan-summary > strong { display: block; margin: 12px 0; font-size: 18px; }
.schedule-grid,.plan-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.schedule-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.schedule-card h3,.schedule-card p { margin: 3px 0; }
.schedule-card small,.schedule-card em { color: var(--muted); font-style: normal; }
.attendance-list { display: grid; gap: 16px; }
.attendance-card > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.attendance-card header h3,.attendance-card header p { margin: 3px 0; }
.attendance-card header p,.attendance-card header small { color: var(--muted); }
.attendance-student { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.attendance-student:last-child { border-bottom: 0; }
.attendance-student > div:first-child { display: flex; align-items: center; gap: 9px; }
.attendance-student > div:first-child span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #ccfbf1; color: #0f766e; font-weight: 800; }
.attendance-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.attendance-actions button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 10px; cursor: pointer; }
.attendance-actions button.selected { border-color: var(--teal); background: #ccfbf1; color: #0f766e; font-weight: 800; }
.plan-admin-card { display: grid; gap: 14px; }
.academy-mini-brand { display: flex; align-items: center; gap: 12px; }
.academy-mini-brand img { width: 50px; height: 50px; object-fit: contain; border-radius: 13px; border: 1px solid var(--line); padding: 5px; }
.academy-mini-brand h3 { margin: 0 0 3px; }
.academy-mini-brand small,.plan-admin-card p { color: var(--muted); }
.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: #f8fafc; }
.row-actions { display: flex; gap: 7px; }

@media (max-width: 800px) {
  .identity-grid,.schedule-grid,.plan-admin-grid { grid-template-columns: 1fr; }
  .logo-form,.attendance-student,.domain-admin-row { align-items: stretch; flex-direction: column; }
  .schedule-card { grid-template-columns: auto 1fr; }
  .schedule-card > .status { grid-column: 1 / -1; justify-self: start; }
}
