:root {
  font-family: Inter, Pretendard, system-ui, sans-serif;
  color: #162033;
  background: #f4f6f9;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell { width: min(980px, calc(100% - 32px)); margin: 36px auto; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.brand { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.muted { color: #697386; }
.card { background: white; border: 1px solid #e3e7ed; border-radius: 14px; padding: 22px; margin-bottom: 16px; box-shadow: 0 2px 9px rgba(24, 39, 75, .04); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.title { margin: 0 0 5px; font-size: 24px; }
.rec { border: 0; color: white; background: #e13d45; border-radius: 9px; padding: 13px 20px; font-weight: 750; }
.rec.stop { background: #202938; }
.secondary { border: 1px solid #ced5df; background: white; border-radius: 9px; padding: 10px 14px; }
.secondary:disabled, .rec:disabled { opacity: .45; cursor: default; }
.status { border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; background: #edf0f5; }
.status.ready, .status.completed { color: #087a55; background: #e2f7ef; }
.status.recording { color: #b5222b; background: #ffe6e8; }
.status.watching { color: #956500; background: #fff2cc; }
.status.not-watched { color: #5b6575; background: #edf0f5; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.stage { text-align: center; padding: 10px 5px; border-radius: 8px; font-size: 13px; background: #f1f3f6; color: #8b94a4; }
.stage.done { background: #e2f7ef; color: #087a55; font-weight: 700; }
.students { width: 100%; border-collapse: collapse; margin-top: 12px; }
.students th, .students td { padding: 13px 8px; border-top: 1px solid #edf0f4; text-align: left; }
.students th { color: #697386; font-size: 13px; }
.students a { color: #2254d1; text-decoration: none; font-weight: 650; }
.meter { width: 130px; height: 7px; background: #e8ebf0; border-radius: 8px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: #2b6de5; }
.events { max-height: 170px; overflow: auto; font-size: 13px; color: #697386; }
.event { padding: 5px 0; }
.player { aspect-ratio: 16 / 9; border-radius: 13px; background: linear-gradient(145deg, #121826, #26344f); color: white; display: grid; place-items: center; text-align: center; margin: 18px 0; user-select: none; }
.player strong { display: block; font-size: 23px; margin-bottom: 7px; }
.real-player { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 13px; background: #121826; margin: 18px 0; }
.timeline { width: 100%; }
.play-button { min-width: 95px; border: 0; border-radius: 9px; padding: 11px 17px; color: white; background: #2b6de5; font-weight: 700; }
.notice { font-size: 13px; color: #697386; margin-top: 12px; }
.recording-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 18px 0 12px; }
.recording-form label { display: grid; gap: 6px; color: #697386; font-size: 13px; }
.recording-form input, .recording-form select { width: 100%; border: 1px solid #ced5df; border-radius: 8px; padding: 10px; background: white; }
.empty { text-align: center; padding: 35px 10px; color: #697386; }
.auth-shell { min-height: 75vh; display: grid; place-items: center; }
.auth-card { width: min(420px, 100%); }
.auth-card form, .auth-card label { display: grid; gap: 8px; }
.auth-card form { gap: 16px; margin: 24px 0 16px; }
.auth-card input { width: 100%; border: 1px solid #ced5df; border-radius: 8px; padding: 11px; }
.auth-card button { border: 0; border-radius: 9px; padding: 12px 16px; color: white; background: #2b6de5; font-weight: 700; }
.bad { min-height: 1.25em; margin: 0; color: #b5222b; }
.video-library { display: grid; gap: 12px; margin-top: 20px; }
.video-card { width: 100%; display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px solid #e3e7ed; border-radius: 12px; background: white; color: inherit; text-align: left; }
.video-card:hover, .video-card:focus-visible { border-color: #2b6de5; outline: 2px solid rgba(43, 109, 229, .15); }
.video-thumb { aspect-ratio: 16 / 9; border-radius: 8px; display: grid; place-items: center; text-align: center; color: white; background: linear-gradient(145deg, #162033, #2b6de5); font-weight: 800; letter-spacing: .08em; }
.video-copy { min-width: 0; display: grid; gap: 5px; }
.video-copy strong { font-size: 17px; }
.video-copy span { color: #697386; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .hide-mobile { display: none; }
  .shell { margin-top: 20px; }
  .recording-form { grid-template-columns: 1fr; }
  .video-card { grid-template-columns: 105px 1fr; gap: 10px; }
}
