/* 학습 계획 — 공통 아이콘 칩 · 학생 홈 "오늘 할 일" · 강의실 "다음 학습" 카드.
   글자 크게, 버튼 크게, 빨간색은 쓰지 않는다(지난 수업은 주황 톤). 프로그램 아이콘은 앱 전체가 쓰는 assets/studio 그림 그대로. */

/* ── 공통: 이 수업에서 할 일(영상 + 프로그램) ── */
.plc-icons{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:2px 0 0}
.plc-ic{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:3px 13px 3px 4px;border:2px solid #dcd9c8;border-radius:999px;background:#fff;color:#33443a;font-size:14px;font-weight:800;line-height:1;white-space:nowrap}
.plc-ic img{width:28px;height:28px;border-radius:50%;object-fit:contain;background:#faf8ef}
.plc-ic.is-video b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e6efdc;color:#315840;font-size:12px}
.plc-ic em{max-width:9em;overflow:hidden;text-overflow:ellipsis;font-style:normal}
.plc-ic i{margin-left:1px;font-style:normal;font-weight:900;color:#256a41}
.plc-ic.is-done{border-color:#bfd8c4;background:#eaf5ea;color:#256a41}

/* ── 학생 홈 "오늘 할 일" ── */
.home-plan[hidden]{display:none}
.home-plan{margin:0 0 20px;padding:22px 24px;border-radius:22px;background:#fffdfa;border:1px solid #e3e1d6}
.spl-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.spl-head h2{margin:0;font-size:26px}.spl-head p{margin:2px 0 0;color:#5f6a62;font-size:16px;font-weight:600}
.spl-head-side{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.spl-badge{padding:10px 18px;border-radius:999px;background:#fdebd9;color:#9a3f06;font-size:18px;font-weight:800}
.spl-badge.is-done{background:#dcefdc;color:#256a41}
.spl-cal{appearance:none;border:0;background:none;color:#315840;font-weight:800;font-size:16px;line-height:1;font-family:inherit;cursor:pointer;padding:8px 4px}
.spl-cal:hover{text-decoration:underline}
.spl-cards{display:grid;gap:12px}
.spl-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-radius:18px;background:#f4f1e6}
.spl-card.is-today{background:#e6efdc}
.spl-card.is-past{background:#fdf3e6}
.spl-info{display:grid;gap:7px;min-width:0}.spl-info strong{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
.spl-sub{font-size:14px;font-weight:700;color:#5f6a62}
.spl-card.is-past .spl-sub{color:#8b6a3d}
.spl-go{appearance:none;flex:none;min-height:60px;padding:0 26px;border:0;border-radius:16px;background:#315840;color:#fff;font-weight:800;font-size:19px;line-height:1;font-family:inherit;cursor:pointer}
.spl-go:hover:not(:disabled){background:#264833}
.spl-go:disabled{opacity:.45;cursor:not-allowed}
.spl-more{appearance:none;margin:10px 2px 0;border:0;background:none;color:#5f6a62;font-weight:700;font-size:15px;line-height:1;font-family:inherit;cursor:pointer;padding:6px 0}
.spl-more:hover{color:#315840;text-decoration:underline}
.spl-fin{margin:14px 0 0;font-size:17px;font-weight:700;color:#256a41}.spl-fin span{margin-right:6px;font-weight:900}
.spl-past{margin-top:18px}
.spl-past-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.spl-past h3{margin:0;font-size:19px}.spl-past h3 small{margin-left:6px;font-size:14px;font-weight:600;color:#8b6a3d}
.spl-more-note{margin:8px 2px 0;color:#5f6a62;font-size:15px}
.spl-open{appearance:none;display:block;width:100%;margin-top:14px;padding:14px 18px;border:2px dashed #cfd6c5;border-radius:16px;background:transparent;color:#33443a;font-weight:700;font-size:17px;line-height:1.2;font-family:inherit;text-align:left;cursor:pointer}
.spl-open b{font-size:20px;color:#315840}.spl-open:hover{background:#f4f1e6}
.spl-week{margin-top:20px}.spl-week h3{margin:0 0 10px;font-size:19px}
.spl-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.spl-day{appearance:none;display:grid;justify-items:center;gap:2px;padding:10px 4px;border:2px solid #e3e1d6;border-radius:14px;background:#fff;color:#26372f;font:inherit;cursor:pointer;min-height:76px}
.spl-day b{font-size:14px;color:#5f6a62}.spl-day span{font-size:20px;font-weight:800}.spl-day em{font-style:normal;font-size:15px;font-weight:800;color:#9a3f06}
.spl-day.is-today{border-color:#315840}.spl-day.is-fin{background:#dcefdc}.spl-day.is-fin em{color:#256a41}
.spl-day.is-empty{opacity:.6}.spl-day.is-empty em{color:#5f6a62}
.spl-day:hover{border-color:#9bb59d}
@media(max-width:640px){.home-plan{padding:16px}.spl-card{flex-direction:column;align-items:stretch}.spl-go{width:100%}.spl-head h2{font-size:23px}}

/* ── 강의실 "다음 학습" 카드 (어두운 초록 바탕) ── */
.cs-next-copy .cs-kicker.is-plan{display:inline-block;margin-bottom:10px;padding:6px 14px;border-radius:999px;background:#d6ecac;color:#1f4437;font-size:15px;font-weight:900;letter-spacing:0}
.cs-next-card .cs-next-copy p{margin:8px 0 14px}
.cs-next-card .plc-icons{margin:0 0 18px}
.cs-next-card .plc-ic{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff}
.cs-next-card .plc-ic img,.cs-next-card .plc-ic.is-video b{background:#fff}
.cs-next-card .plc-ic.is-done{border-color:rgba(214,236,172,.8);background:rgba(214,236,172,.22);color:#d6ecac}
.cs-next-card .plc-ic i{color:#d6ecac}
/* 오늘의 수업 목록 — 큰 시작 버튼 아래에 줄로 */
.cs-today{margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.22)}
.classroom-studio .cs-next-card .cs-today p{margin:0 0 8px;color:#c5daa0;font-size:14px;font-weight:800}.cs-today p b{color:#fff}
.cs-today ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.classroom-studio .cs-next-card .cs-today-row{appearance:none;display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:6px 10px;border:0;border-radius:10px;background:transparent;color:#e8f0e2;font-weight:700;font-size:15px;line-height:1.3;font-family:inherit;text-align:left;cursor:pointer;box-shadow:none}
.classroom-studio .cs-next-card .cs-today-row:hover{background:rgba(255,255,255,.12)}
.classroom-studio .cs-next-card .cs-today-row.is-now{background:rgba(214,236,172,.2);color:#fff}
.cs-today-row i{display:grid;place-items:center;flex:none;width:22px;height:22px;border:2px solid rgba(255,255,255,.5);border-radius:50%;font-style:normal;font-size:12px;font-weight:900}
.cs-today-row.is-done i{background:#d6ecac;border-color:#d6ecac;color:#1f4437}.cs-today-row.is-done span{opacity:.75}
.cs-today small{display:block;margin-top:6px;color:#9fb9a3;font-size:13px}

/* ── 강의 목차의 계획 표시 ── */
.ep-plan{display:inline-block;margin:4px 0 0;padding:4px 12px;border-radius:999px;background:#eef1e8;color:#5f6a62;font-size:13.5px;font-weight:800;line-height:1.3}
.ep-plan.is-today{background:#315840;color:#fff}
.ep-plan.is-overdue{background:#fdebd9;color:#9a3f06}

/* 홈: 공부 중인 강좌(최대 3장, 한 줄형) — 날짜 없는 강좌가 수백 강이어도 홈이 길어지지 않는다 */
.spl-courses{margin-top:18px}
.spl-courses-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.spl-courses-head h3{margin:0;font-size:20px}.spl-courses-head h3 small{margin-left:6px;font-size:16px;color:#5f6a62;font-weight:700}
.spl-crs-list{display:grid;gap:10px}

/* 쌓이는 카드 목록 더 보기 단추 (강의실 · 미수강 강의 · 시청기록 · 강의실 바로가기) */
.cs-home-course[hidden],.explore-course-card[hidden],.home-todo-rooms [hidden],.video-card[hidden]{display:none!important}
.home-cards-more{appearance:none;grid-column:1/-1;display:block;width:100%;min-height:60px;margin-top:6px;padding:0 20px;border:2px dashed #cfd6c5;border-radius:16px;background:transparent;color:#33443a;font-weight:800;font-size:18px;line-height:1;font-family:inherit;cursor:pointer}
.home-cards-more:hover{background:#f4f1e6}
.home-todo-more-rooms{appearance:none;min-height:44px;padding:0 16px;border:2px dashed #cfd6c5;border-radius:999px;background:transparent;color:#33443a;font-weight:800;font-size:15px;line-height:1;font-family:inherit;cursor:pointer}
/* 복습 수업 안내 (강의 화면) */
.video-mini-programs .activity-review-note{margin:0 0 14px;padding:14px 18px;border-radius:14px;background:#efeafb;border:1px solid #d8cff2;color:#4a3382;font-size:17px;font-weight:700;line-height:1.55}
.video-mini-programs .activity-review-note b:first-child{display:inline-block;margin-right:8px;padding:2px 12px;border-radius:999px;background:#5a3f9c;color:#fff;font-size:15px;font-weight:900}
body .activity-retake.is-review{background:#5a3f9c;border-color:#5a3f9c;color:#fff}
body .activity-retake.is-review:disabled{background:#cfc8e2;border-color:#cfc8e2;color:#fff}

/* ═══ 강의 타일 (유튜브처럼 썸네일이 위에) · 진한 상태색 — 2026-11-06 ═══ */
.lt-grid,.scp-list,.spl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}
.lt{display:flex;flex-direction:column;gap:12px;min-width:0;border:3px solid #c9d1c4;border-radius:18px;background:#fff;overflow:hidden}
.lt.is-today{border-color:#1458b8}.lt.is-past{border-color:#c62828}.lt.is-done{border-color:#237a3b}.lt.is-review{border-color:#6a2aa8}
.lt-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;border-radius:0;background:#1f2d24;cursor:pointer;overflow:hidden}
.lt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.lt-thumb:disabled{cursor:not-allowed;opacity:.55}
.lt-tags{position:absolute;left:10px;top:10px;display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 20px)}
.lt-badge{padding:5px 12px;border-radius:8px;font-size:16px;font-weight:900;line-height:1.2;color:#fff;background:#37474f;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.lt-badge.is-today{background:#1458b8}.lt-badge.is-past{background:#c62828}.lt-badge.is-soon{background:#37474f}.lt-badge.is-done{background:#237a3b}.lt-badge.is-review{background:#6a2aa8}
.lt-tri{font-style:normal;color:#ffe082}
.lt-no{position:absolute;right:10px;bottom:10px;padding:3px 10px;border-radius:8px;background:rgba(0,0,0,.8);color:#fff;font-size:16px;font-weight:900}
.lt-play{position:absolute;inset:0;display:grid;place-items:center;font-size:44px;color:#fff;background:rgba(0,0,0,.2);opacity:0;transition:opacity .15s}
.lt-thumb:hover:not(:disabled) .lt-play{opacity:1}
.lt-body{display:grid;gap:8px;padding:0 16px;min-width:0}
.lt-body small{font-size:15px;font-weight:800;color:#44524a}
.lt-body strong{font-size:20px;line-height:1.35;color:#16231b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lt-go{appearance:none;margin:auto 16px 16px;min-height:56px;border:3px solid #1f3a2c;border-radius:14px;background:#1f3a2c;color:#fff;font-weight:800;font-size:19px;line-height:1;font-family:inherit;cursor:pointer;box-shadow:none}
.lt-go.is-quiet{background:#fff;color:#1f3a2c}
.lt-go:disabled{opacity:.45;cursor:not-allowed}
.lt .plc-icons{display:flex;flex-wrap:wrap;gap:8px}
.lt .plc-ic{border:2px solid #aeb8aa;background:#fff;color:#16231b}
.lt .plc-ic em{color:#16231b;font-style:normal;font-weight:800}
.lt .plc-ic.is-done{border-color:#237a3b;background:#e0f2e4}.lt .plc-ic.is-done i{color:#14532d;font-style:normal;font-weight:900}
.spl-past .lt{max-width:380px}
.spl-card{display:none}
/* 강의실 "오늘의 수업": 배경이 밝은 카드에서도 글씨가 보이게 자기 배경을 갖는다 (예전엔 어두운 카드 위 흰 글씨 가정이라 안 보였음) */
.cs-today{margin-top:20px;padding:16px 18px;border:3px solid #1f3a2c;border-radius:16px;background:#fff}
.cs-today p{margin:0 0 10px;color:#16231b;font-size:17px;font-weight:900}.cs-today p b{color:#1458b8}
.cs-today-row{min-height:48px;padding:8px 12px;color:#16231b;font-weight:800;font-size:17px;line-height:1.3;font-family:inherit}
.cs-today-row:hover{background:#eef3ec}
.cs-today-row.is-now{background:#1f3a2c;color:#fff}
.cs-today-row i{width:26px;height:26px;border:3px solid #5d6b62;border-radius:6px;background:#fff;color:#fff;font-size:15px}
.cs-today-row.is-now i{border-color:#fff;background:transparent}
.cs-today-row.is-done i{background:#237a3b;border-color:#237a3b;color:#fff}
.cs-today-row.is-done span{opacity:1;text-decoration:line-through;text-decoration-thickness:2px}
.cs-today small{color:#44524a;font-size:15px}
.lt-tags{left:10px;right:auto;top:auto;bottom:10px;max-width:calc(100% - 90px)}
.lt-no{right:10px;bottom:10px;top:auto}
.scp-chip.is-today{background:#1458b8;color:#fff}.scp-chip.is-past{background:#c62828;color:#fff}
.spl-badge{background:#1458b8;color:#fff;border-radius:10px;font-weight:900}.spl-badge.is-done{background:#237a3b;color:#fff}
.spl-day{border:3px solid #c9d1c4}.spl-day.is-today{border-color:#1458b8}.spl-day.is-fin{background:#e0f2e4;border-color:#237a3b}.spl-day em{color:#1458b8}

/* ═══ 타일 고정 (앱 전체 버튼 스타일이 덮어써도 사진은 테두리에 딱 맞게) ═══ */
html body .lt{border-radius:12px !important;border:3px solid #c9d1c4 !important;background:#fff !important;padding:0 !important;gap:12px !important;overflow:hidden !important;box-shadow:none !important}
html body .lt.is-today{border-color:#1458b8 !important}html body .lt.is-past{border-color:#c62828 !important}html body .lt.is-done{border-color:#237a3b !important}html body .lt.is-review{border-color:#6a2aa8 !important}
html body .lt .lt-thumb{display:block !important;position:relative !important;width:100% !important;height:auto !important;min-height:0 !important;aspect-ratio:16/9 !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:#1f2d24 !important;box-shadow:none !important;overflow:hidden !important}
html body .lt .lt-thumb img{position:absolute !important;inset:0 !important;display:block !important;width:100% !important;height:100% !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;object-fit:cover !important;box-shadow:none !important}
html body .lt .lt-go{display:block !important;width:auto !important;min-height:56px !important;margin:auto 16px 16px !important;padding:0 16px !important;border:3px solid #1f3a2c !important;border-radius:10px !important;background:#1f3a2c !important;color:#fff !important;font-weight:800;font-size:19px;line-height:1;font-family:inherit !important;box-shadow:none !important}
html body .lt .lt-go.is-quiet{background:#fff !important;color:#1f3a2c !important}
html body .lt .lt-go:disabled{opacity:.45 !important}
html body .lt .lt-body strong{font-size:20px !important;line-height:1.35 !important;color:#16231b !important}

/* ═══ 강의실 "이어서 볼 영상"(cs-next-card): 흰 카드에서 글씨가 보이고, 썸네일은 잘리지 않게 ═══ */
/* 예전 규칙은 어두운 초록 카드 위 흰 글씨를 전제로 했는데, 실제 강의실(playground)의 카드는 흰색이라 칩 글씨 · "오늘의 수업" 글씨가 안 보였다 */
[data-playground=true] .cs-next-card{grid-template-columns:minmax(170px,36%) minmax(0,1fr) !important;gap:24px !important;align-items:start !important}
[data-playground=true] .cs-next-card .cs-next-art{display:block !important;grid-column:1 !important;grid-row:1 !important;width:100% !important;height:auto !important;aspect-ratio:16/9 !important;object-fit:cover !important;border-radius:10px !important;background:#1f2d24}
[data-playground=true] .cs-next-card .plc-icons{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
[data-playground=true] .cs-next-card .plc-ic{border:2px solid #8a968e !important;background:#fff !important;color:#16231b !important}
[data-playground=true] .cs-next-card .plc-ic em{color:#16231b !important;font-style:normal;font-weight:800}
[data-playground=true] .cs-next-card .plc-ic.is-video b{background:#e3efe6 !important;color:#1f3a2c !important}
[data-playground=true] .cs-next-card .plc-ic.is-done{border-color:#237a3b !important;background:#e0f2e4 !important;color:#14532d !important}
[data-playground=true] .cs-next-card .plc-ic.is-done i{color:#14532d !important}
html body .classroom-studio .cs-next-card .cs-today{margin-top:18px;padding:14px 16px;border:3px solid #1f3a2c;border-radius:14px;background:#fff}
html body .classroom-studio .cs-next-card .cs-today p{margin:0 0 10px;color:#16231b;font-size:17px;font-weight:900}
html body .classroom-studio .cs-next-card .cs-today p b{color:#1458b8}
html body .classroom-studio .cs-next-card .cs-today-row{min-height:48px;padding:8px 12px;border-radius:10px;background:transparent;color:#16231b;font-weight:800;font-size:17px;line-height:1.3;font-family:inherit}
html body .classroom-studio .cs-next-card .cs-today-row:hover{background:#eef3ec}
html body .classroom-studio .cs-next-card .cs-today-row.is-now{background:#1f3a2c;color:#fff}
html body .classroom-studio .cs-next-card .cs-today-row.is-done span{opacity:1;text-decoration:line-through;text-decoration-thickness:2px}
html body .classroom-studio .cs-next-card .cs-today small{color:#44524a;font-size:15px}
@media(max-width:1150px){[data-playground=true] .cs-next-card{grid-template-columns:minmax(150px,34%) minmax(0,1fr) !important;gap:18px !important}}
@media(max-width:700px){[data-playground=true] .cs-next-card{grid-template-columns:1fr !important}[data-playground=true] .cs-next-card .cs-next-art{grid-column:1 !important;grid-row:1 !important;max-width:420px}[data-playground=true] .cs-next-card .cs-next-copy{grid-column:1 !important;grid-row:2 !important}}
html body .lt .lt-body strong{word-break:keep-all !important;overflow-wrap:break-word !important}

/* 계획 이름 · 중요도 (2026-11-06) */
.scp-chip.is-pri{background:#c62828;color:#fff}
.scp-crs-plan{margin:0 0 6px;font-size:15px;font-weight:700;color:#44524a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
