/* ══════════════════════════════════════════════════════════════════════════
   수업 준비 관문 — 로그인 직후 학생이 30초 안에 끝내는 한 줄짜리 절차
   설계 정본 = docs/50_AI_LLM/성문_게이트.md §4

   ★크기가 고정이다★ 560 × 620 — 상태가 바뀌어도 «한 픽셀도» 안 변한다.
     버튼이 제자리에 있어야 학생이 「또 어디 갔지」를 겪지 않는다(고정 크기 모달 규칙).
     넘치는 것은 몸통이 안에서 스크롤한다 — 상자와 발(버튼)은 그대로 있다.

   ★한 화면에 할 일 하나★ 밀도 낮음 · 장식 0 · 글자 16px 이상 · 누르는 곳 48px 이상.
     학생 화면이고 특수학생이 섞여 있다 — 여기서 글자를 줄이지 말 것.

   ★색·반경·그림자는 전부 토큰이다★ 특수학교 주황 테마(html.prof-special)가 따라와야
     화면이 한 벌로 보인다. hex 를 여기 박으면 못 따라간다.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 막(幕) ───────────────────────────────────────────────────────────────
   ★닫는 길이 없다★ 바깥 클릭·Esc 로 안 닫힌다(그 배선은 js 가 안 붙인다).
   막는 곳은 «로그인 직후» 하나뿐이고, 라이브 입장은 절대 안 막는다. */
.srg-ov{
  position:fixed; inset:0; z-index:9500;
  display:flex; align-items:center; justify-content:center;
  background:rgba(15,23,42,.55);
  padding:16px;
}

.srg{
  /* ★이 두 값이 이 파일의 약속이다★ — 상태가 바뀌어도 안 변한다. */
  width:560px; height:620px;
  max-width:100%; max-height:calc(100vh - 32px);
  display:flex; flex-direction:column;
  background:var(--surface);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}

/* ── 관문 중 수업 시작 — «지금 입장» 띠 (F-20261008-73-1 · 2026-10-12) ───────────
   관문(9500)과 목소리 등록 창(.alc-rdn-ov 10060) «위»에 뜬다 — 등록 창을 연 채로도 보여야 한다.
   단추는 대시보드 배너의 [입장하기]와 같은 일을 한다(새 탭). 누르는 곳 48px. */
.srg-live{
  position:fixed; z-index:10070; top:16px; left:50%; transform:translateX(-50%);
  display:flex; align-items:center; gap:16px;
  max-width:calc(100vw - 32px); box-sizing:border-box;
  padding:8px 8px 8px 20px;
  background:var(--surface); color:var(--text);
  border:2px solid var(--primary); border-radius:var(--radius-pill);
  box-shadow:var(--shadow-lg);
  font-size:var(--text-base); word-break:keep-all;
}
.srg-live__go{
  display:inline-flex; align-items:center; gap:6px; flex:0 0 auto;
  min-height:48px; padding:0 20px;
  background:var(--primary-fill); color:var(--text-on-primary);
  border-radius:var(--radius-pill);
  font-weight:800; text-decoration:none; white-space:nowrap;
}
.srg-live__go:hover{ background:var(--primary-fill-hover); }
.srg-live__go:focus-visible{ outline:3px solid var(--primary); outline-offset:3px; }

/* ── 머리 — 단계 점 + 걸리는 시간 + 제목 ───────────────────────────────── */
.srg__head{
  padding:22px 28px 16px;
  border-bottom:1px solid var(--border);
  flex:0 0 auto;
}
.srg__dots{ display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.srg__dots i{
  width:26px; height:4px; border-radius:var(--radius-pill);
  background:var(--border-strong);
}
.srg__dots i.is-on{ background:var(--success); }
.srg__dots i.is-now{ background:var(--primary); }
.srg__step{
  margin-left:6px;
  font-size:var(--text-sm); font-weight:700; color:var(--text-muted);
}
.srg__title{
  margin:0;
  font-size:var(--text-2xl); font-weight:800; line-height:1.35;
  color:var(--text);
  word-break:keep-all;      /* 한글은 낱말 단위로 끊는다 */
}

/* ── 몸통 — 넘치면 «여기»가 스크롤한다(상자는 안 커진다) ─────────────── */
.srg__body{
  flex:1 1 auto; min-height:0; overflow-y:auto;
  padding:24px 28px;
  display:flex; flex-direction:column; align-items:center; gap:16px;
  /* ★세로 가운데★ 상자 높이가 고정이라 짧은 화면(「알겠어요」 한 줄)은 아래가 통째로
     빈다 — 글이 위로 쏠려 «덜 만든 화면»처럼 보인다. 가운데로 모으면 어느 단계든
     눈이 가는 자리가 같다.
     ★safe 를 함께 쓴다★ 내용이 상자보다 길어지면 그냥 center 는 «위»를 잘라 버려
     첫 줄을 스크롤로도 못 본다. safe 는 그때 위 맞춤으로 물러난다. */
  justify-content:center;
  justify-content:safe center;
  text-align:center;
}
.srg__why{
  margin:0;
  font-size:var(--text-md); line-height:1.75; color:var(--text-body);
  word-break:keep-all;
}
/* ★그림이지 글이 아니다★ 이 자리는 「지금 무엇을 하는 단계인가」를 한눈에 말하는 삽화다.
   글자 6단(--text-*)은 «읽는 글»의 자다 — 최대 30px 로 그리면
   삽화가 옆 글과 같은 크기가 되어 단계를 못 가른다. 읽히는 글은 .srg__why 가 나른다. */
.srg__mark{ font-size:64px; line-height:1; } /* [design-ok] 삽화용 이모지 — 읽는 글이 아니다 */

/* 「이렇게 해 보세요」 — 실패했을 때만 몸통에 들어온다. */
.srg__err{
  width:100%;
  padding:14px 16px;
  background:var(--warning-light);
  border:1px solid var(--warning);
  border-radius:var(--radius-sm);
  font-size:var(--text-base); line-height:1.7; color:var(--text-body);
  text-align:left; word-break:keep-all;
}
.srg__err b{ display:block; margin-bottom:4px; color:var(--warning-dark); }

/* 건너뛰기 이유 — 고르는 «마찰»이 「예외 신고」로 뜻을 바꾼다. */
.srg__reasons{ width:100%; display:flex; flex-direction:column; gap:10px; }
.srg__reasons button{
  min-height:56px;                   /* 누르는 곳 48px 이상 */
  padding:12px 16px;
  display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  background:var(--surface); color:var(--text);
  border:1px solid var(--border-strong); border-radius:var(--radius-sm);
  cursor:pointer; text-align:left;
}
.srg__reasons button:hover{ background:var(--surface-hover); }
.srg__reasons button[aria-pressed="true"]{
  border-color:var(--primary); background:var(--primary-light);
}
.srg__reasons b{ font-size:var(--text-md); font-weight:700; }
.srg__reasons span{ font-size:var(--text-sm); color:var(--text-muted); word-break:keep-all; }

/* ── 발 — 단추 자리. ★둘째 줄은 처음부터 비어 있다★ ────────────────────
   「지금은 건너뛰기」가 나타나도 위가 밀리지 않게 자리를 미리 잡아 둔다
   (목업 화면 F 의 주석: 「그 줄은 처음부터 비어 있던 자리라 나타나도 위가 안 밀린다」). */
.srg__foot{
  flex:0 0 auto;
  padding:16px 28px 22px;
  border-top:1px solid var(--border);
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.srg__foot-row{
  width:100%; min-height:44px;
  display:flex; align-items:center; justify-content:center;
}
.srg__main{
  width:100%; min-height:52px;
  padding:0 20px;
  background:var(--primary-fill); color:var(--text-on-primary);
  border:0; border-radius:var(--radius-sm);
  font-size:var(--text-lg); font-weight:800; cursor:pointer;
}
.srg__main:hover{ background:var(--primary-fill-hover); }
.srg__main.is-ok{ background:var(--success-fill); }   /* [다크 ④] 흰 글자 3.30 → 진한 초록(밝은 판도) */
.srg__main:disabled{ background:var(--border-strong); cursor:default; }
.srg__quiet{
  min-height:44px; padding:0 14px;
  background:transparent; color:var(--text-muted);
  border:0; border-radius:var(--radius-sm);
  font-size:var(--text-base); font-weight:600; cursor:pointer;
  text-decoration:underline;
}
.srg__quiet:hover{ color:var(--text-body); }

/* ══════════════════════════════════════════════════════════════════════════
   대시보드 띠 — ★의무성의 본체★ (목업 화면 J)
   건너뛰기는 «사라지는 것»이 아니라 «자리를 옮기는 것»이다.
   ★닫는 ✕ 가 없다★ 끝내야 없어진다. 3번째부터 빨강.
   ══════════════════════════════════════════════════════════════════════════ */
.srg-ban{
  display:flex; align-items:center; gap:12px;
  /* 카드 영역 안에서는 그 간격(gap)이 띄운다 — 스스로 여백을 두지 않는다(js _paintBannerInner). */
  margin:0;
  padding:14px 18px;
  background:var(--warning-light);
  border:1px solid var(--warning);
  border-left:4px solid var(--warning);
  border-radius:var(--radius-lg);   /* 아래 카드들과 같은 모서리 */
}
.srg-ban{ cursor:pointer; transition:box-shadow .15s; }   /* 줄 전체가 «지금 하기» (2026-10-13) */
.srg-ban:hover{ box-shadow:var(--shadow-md); }
.srg-ban.is-hot{
  background:var(--danger-light);
  border-color:var(--danger); border-left-color:var(--danger);
}
.srg-ban__ico{ font-size:var(--text-2xl); line-height:1; flex:0 0 auto; }
.srg-ban__txt{ flex:1 1 auto; min-width:0; text-align:left; }
.srg-ban__txt b{
  display:block;
  font-size:var(--text-md); font-weight:800; color:var(--text);
  word-break:keep-all;
}
.srg-ban__txt span{
  display:block; margin-top:2px;
  font-size:var(--text-sm); color:var(--text-body);
  word-break:keep-all;
}
.srg-ban__cta{
  flex:0 0 auto;
  min-height:44px; padding:0 18px;
  background:var(--primary-fill); color:var(--text-on-primary);
  border:0; border-radius:var(--radius-sm);
  font-size:var(--text-base); font-weight:800; cursor:pointer;
}
.srg-ban__cta:hover{ background:var(--primary-fill-hover); }

/* ── 좁은 화면 ─────────────────────────────────────────────────────────
   ★고정 크기 규칙은 «상태가 바뀔 때»의 약속이다★ — 화면이 담지 못하는 폭에서는
   상자가 화면을 따라간다(안 그러면 발이 잘려 학생이 나갈 수 없다). */
@media (max-width:600px){
  .srg{ width:100%; height:calc(100vh - 32px); }
  .srg__head{ padding:18px 20px 14px; }
  .srg__body{ padding:20px; }
  .srg__foot{ padding:14px 20px 18px; }
  .srg-ban{ flex-wrap:wrap; }
  .srg-ban__cta{ width:100%; }
}

/* [2026-09-28] 오늘의 한 문장 — 가운데 안내가 저절로 바뀌고 사라진다(js CUE_FADE_MS 와 같은 0.4초). */
.srg__cue{ transition:opacity .4s ease; }
.srg__cue.is-out{ opacity:0; }
@media (prefers-reduced-motion: reduce){ .srg__cue{ transition:none; } }

/* [2026-09-28] 저절로 넘어가는 안내 화면은 단추 줄을 숨긴다(js _screen 의 s.auto).
   ★.srg__foot 의 display 규칙이 [hidden] 을 덮으므로 따로 못 박는다★ — 없으면 「다음」이 그대로 보인다. */
.srg__foot[hidden]{ display:none; }
