/* ============================================================
   늘늘 자산 늘림 챌린지 3기 · 과제/강의 마이페이지
   인강 LMS 스타일: 사이드바 + 콘텐츠, 카드형 강의/과제
   ============================================================ */
:root{
  --main:#F2994A;
  --main-deep:#E07B2E;
  --main-ink:#C4610E;
  --main-soft:#FFD9A8;
  --main-pale:#FFF4E8;
  --ink:#201A14;
  --ink-2:#4A4038;
  --ink-3:#8A7E72;
  --ink-4:#B6ABA0;
  --bg:#F7F4F0;
  --surface:#FFFFFF;
  --line:#ECE5DD;
  --line-2:#F3EEE8;
  --ok:#1F9D57;
  --ok-bg:#E7F6ED;
  --wait:#C4610E;
  --wait-bg:#FFF0DF;
  --lock:#9AA0A6;
  --radius:18px;
  --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(32,26,20,.05), 0 1px 3px rgba(32,26,20,.04);
  --shadow:0 4px 16px -6px rgba(32,26,20,.12);
  --shadow-lg:0 18px 40px -20px rgba(32,26,20,.28);
  --font:'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font); color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.6; font-weight:500;
}
img{display:block; max-width:100%;}
button,input,textarea,select{font-family:inherit;}
a{color:inherit; text-decoration:none;}

/* ---------- 버튼 ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  font-weight:700; border:none; border-radius:999px; cursor:pointer; white-space:nowrap;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, opacity .14s, border-color .14s;
}
.btn-primary{ background:var(--main-deep); color:#fff; box-shadow:0 6px 16px -8px rgba(224,123,46,.7); }
.btn-primary:hover{ background:var(--main-ink); transform:translateY(-1px); }
.btn-primary:disabled{ background:var(--main-soft); color:#fff; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-ghost{ background:var(--surface); border:1.5px solid var(--line); color:var(--ink-2); }
.btn-ghost:hover{ border-color:var(--main-soft); color:var(--main-ink); }
.btn-danger{ background:var(--surface); border:1.5px solid #F0C9C2; color:#C4443B; }
.btn-danger:hover{ background:#FBEEEA; border-color:#E6A99F; }
.btn-danger:disabled{ opacity:.5; cursor:not-allowed; }
.btn-lg{ padding:14px 26px; font-size:15px; }
.btn-sm{ padding:8px 15px; font-size:13px; }
.btn-block{ width:100%; }

/* ============================================================
   로그인
   ============================================================ */
.login-wrap{ min-height:100dvh; display:grid; place-items:center; padding:24px; background:
  radial-gradient(1200px 500px at 50% -10%, var(--main-pale), transparent 60%), var(--bg); }
.login-card{
  width:100%; max-width:400px; background:var(--surface); border:1px solid var(--line);
  border-radius:24px; box-shadow:var(--shadow-lg); padding:40px 32px;
}
.login-logo{ width:64px; height:64px; margin:0 auto 18px; border-radius:16px; overflow:hidden; background:var(--main-pale); }
.login-logo img{ width:100%; height:100%; object-fit:cover; display:block; }
.login-eyebrow{ text-align:center; font-size:12px; font-weight:800; letter-spacing:.04em; color:var(--main-deep); margin-bottom:6px; }
.login-title{ text-align:center; font-size:22px; font-weight:800; letter-spacing:-.02em; margin-bottom:4px; }
.login-sub{ text-align:center; font-size:13.5px; color:var(--ink-3); margin-bottom:28px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; font-weight:700; color:var(--ink-2); margin-bottom:8px; }
.field input{
  width:100%; padding:14px 16px; border:1.5px solid var(--line); border-radius:12px;
  font-size:15px; color:var(--ink); background:#fff; outline:none; transition:border-color .15s, box-shadow .15s;
}
.field input::placeholder{ color:var(--ink-4); }
.field input:focus{ border-color:var(--main); box-shadow:0 0 0 4px var(--main-pale); }
.login-err{ display:none; text-align:center; font-size:13px; font-weight:700; color:#C4443B; background:#FDECEA; border-radius:11px; padding:11px; margin-bottom:16px; }
.login-err.show{ display:block; }
.login-foot{ text-align:center; font-size:12px; color:var(--ink-4); margin-top:20px; }

/* ============================================================
   앱 레이아웃 (사이드바 + 콘텐츠)
   ============================================================ */
.app{ display:grid; grid-template-columns:260px 1fr; min-height:100dvh; }

/* 사이드바 */
.sidebar{
  position:sticky; top:0; align-self:start; height:100dvh;
  background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column; padding:22px 18px;
}
.side-brand{ display:flex; align-items:center; gap:10px; padding:4px 6px 20px; }
.side-brand .logo{ width:38px; height:38px; border-radius:11px; overflow:hidden; background:var(--main-pale); flex:none; }
.side-brand .logo img{ width:100%; height:100%; object-fit:cover; display:block; }
.side-brand .txt b{ display:block; font-size:14px; font-weight:800; letter-spacing:-.01em; }
.side-brand .txt span{ font-size:11.5px; color:var(--ink-3); font-weight:600; }

.side-nav{ display:flex; flex-direction:column; gap:4px; margin-top:6px; }
.nav-item{
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:12px;
  font-size:14.5px; font-weight:700; color:var(--ink-3); cursor:pointer; transition:background .14s, color .14s;
}
.nav-item .ic{ width:20px; height:20px; flex:none; opacity:.9; }
.nav-item:hover{ background:var(--line-2); color:var(--ink-2); }
.nav-item.active{ background:var(--main-pale); color:var(--main-ink); }
.nav-item.active .ic{ opacity:1; }

.side-progress{ margin-top:auto; padding:16px 14px; background:var(--main-pale); border-radius:14px; }
.side-progress .lab{ font-size:12px; font-weight:700; color:var(--main-ink); margin-bottom:8px; display:flex; justify-content:space-between; }
.bar{ height:8px; border-radius:999px; background:#fff; overflow:hidden; }
.bar > i{ display:block; height:100%; background:linear-gradient(90deg,var(--main),var(--main-deep)); border-radius:999px; transition:width .5s ease; }

.side-user{ display:flex; align-items:center; gap:10px; padding:14px 8px 2px; margin-top:14px; border-top:1px solid var(--line); }
.avatar{ width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,var(--main-soft),var(--main-deep)); color:#fff; display:grid; place-items:center; font-weight:800; font-size:14px; flex:none; }
.side-user .u b{ display:block; font-size:13.5px; font-weight:800; }
.side-user .u span{ font-size:11.5px; color:var(--ink-3); }
.side-user .out{ margin-left:auto; font-size:12px; font-weight:700; color:var(--ink-3); cursor:pointer; padding:6px 8px; border-radius:8px; }
.side-user .out:hover{ background:var(--line-2); color:var(--ink); }

/* 콘텐츠 */
.content{ padding:34px 40px 90px; max-width:1000px; }
.page-head{ margin-bottom:24px; }
.page-head h1{ font-size:24px; font-weight:800; letter-spacing:-.02em; }
.page-head p{ font-size:14px; color:var(--ink-3); margin-top:6px; }

/* 모바일 상단바 + 하단 탭바 (기본 숨김) */
.mobile-top{ display:none; }
.tabbar{ display:none; }

/* ============================================================
   강의 카드 그리드
   ============================================================ */
.lecture-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.lecture-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); overflow:hidden; display:flex; flex-direction:column;
  transition:transform .16s ease, box-shadow .16s ease;
}
.lecture-card.clickable{ cursor:pointer; }
.lecture-card.clickable:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.lc-thumb{
  position:relative; aspect-ratio:16/9; background:linear-gradient(135deg,#FFE7CC,#FFD1A1);
  display:grid; place-items:center; overflow:hidden;
}
.lc-thumb .wk{ font-size:40px; font-weight:800; color:#fff; opacity:.92; letter-spacing:-.02em; text-shadow:0 2px 10px rgba(196,97,14,.3); }
.lc-thumb.locked{ background:linear-gradient(135deg,#EDEAE6,#DED8D0); }
.lc-thumb.locked .wk{ color:#fff; opacity:.6; }
.lc-badge{
  position:absolute; top:12px; left:12px; font-size:11px; font-weight:800; padding:5px 11px; border-radius:999px;
  background:rgba(255,255,255,.92); color:var(--main-ink); backdrop-filter:blur(4px);
}
.lc-badge.lock{ color:var(--lock); }
.lc-lockicon{ position:absolute; inset:0; display:grid; place-items:center; }
.lc-lockicon span{ font-size:30px; opacity:.5; }
.lc-body{ padding:18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.lc-title{ font-size:16.5px; font-weight:800; letter-spacing:-.01em; line-height:1.4; }
.lc-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.lc-tag{ font-size:11.5px; font-weight:700; color:var(--ink-3); background:var(--line-2); border-radius:999px; padding:4px 10px; }
.lc-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:6px; }
.lc-date{ font-size:12.5px; color:var(--ink-3); font-weight:600; }
.lc-cta{ font-size:13px; font-weight:800; color:var(--main-deep); }
.lc-cta.lock{ color:var(--lock); }

/* 강의 상세(모달) */
.modal{ position:fixed; inset:0; z-index:120; display:none; align-items:flex-end; justify-content:center; }
.modal.open{ display:flex; }
.modal-dim{ position:absolute; inset:0; background:rgba(32,26,20,.5); backdrop-filter:blur(2px); }
.modal-card{
  position:relative; width:100%; max-width:640px; max-height:88vh; overflow:auto;
  background:var(--surface); border-radius:22px 22px 0 0; box-shadow:var(--shadow-lg);
  animation:sheetUp .28s cubic-bezier(.2,.7,.2,1);
}
@media (min-width:720px){ .modal{ align-items:center; } .modal-card{ border-radius:22px; } }
@keyframes sheetUp{ from{ transform:translateY(24px); opacity:0; } to{ transform:none; opacity:1; } }
.modal-hero{ padding:26px 28px; background:linear-gradient(135deg,var(--main),var(--main-deep)); color:#fff; }
.modal-hero .wk{ font-size:12.5px; font-weight:800; opacity:.9; letter-spacing:.03em; }
.modal-hero h2{ font-size:20px; font-weight:800; letter-spacing:-.02em; margin-top:6px; line-height:1.35; }
.modal-close{ position:absolute; top:16px; right:18px; z-index:3; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.22); color:#fff; font-size:22px; line-height:1; border:none; cursor:pointer; display:grid; place-items:center; transition:background .14s; }
.modal-close:hover{ background:rgba(255,255,255,.4); }
.modal-body{ padding:24px 28px 30px; }
.lblock{ margin-bottom:20px; }
.lblock h3{ font-size:14px; font-weight:800; color:var(--main-ink); margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.lblock h3::before{ content:''; width:4px; height:16px; border-radius:2px; background:var(--main); }
.lblock ul{ list-style:none; display:grid; gap:9px; }
.lblock li{ font-size:14px; color:var(--ink-2); padding-left:22px; position:relative; }
.lblock li::before{ content:'✓'; position:absolute; left:0; color:var(--main-deep); font-weight:800; font-size:12px; }
.modal-note{ font-size:12px; color:var(--ink-4); margin-top:6px; }

/* 강의 모달: 인사말 / 유튜브 버튼 / 안내 */
.lec-locked{ background:var(--line-2); color:var(--ink-2); border-radius:14px; padding:16px 18px; margin-bottom:20px; font-size:13.5px; line-height:1.7; text-align:center; }
.lec-locked b{ color:var(--main-ink); font-weight:800; }
.lec-intro{ background:var(--main-pale); border-radius:14px; padding:16px 18px; margin-bottom:20px; }
.lec-intro p{ font-size:14px; color:var(--ink-2); line-height:1.75; }
.lec-intro p + p{ margin-top:8px; }

.video-list{ display:flex; flex-direction:column; gap:10px; }
.video-btn{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-radius:14px; border:1.5px solid var(--line);
  background:var(--surface); transition:border-color .14s, box-shadow .14s, transform .14s;
}
.video-btn:hover{ border-color:var(--main); box-shadow:0 8px 20px -12px rgba(224,123,46,.5); transform:translateY(-1px); }
.vb-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.vb-no{ width:30px; height:30px; flex:none; border-radius:9px; background:var(--main-pale); color:var(--main-ink); font-weight:800; font-size:15px; display:grid; place-items:center; }
.vb-txt{ min-width:0; }
.vb-txt b{ display:block; font-size:14.5px; font-weight:800; color:var(--ink); line-height:1.35; }
.vb-txt small{ font-size:12px; color:var(--ink-3); font-weight:600; }
.vb-play{ flex:none; font-size:12.5px; font-weight:800; color:#fff; background:#FF0000; border-radius:999px; padding:7px 13px; }

.lec-outro{ margin-top:20px; background:var(--line-2); border-radius:14px; padding:16px 18px; }
.lec-outro p{ font-size:13.5px; color:var(--ink-2); line-height:1.75; }
.lec-outro p + p{ margin-top:8px; }

.lec-assign{ margin-top:14px; background:var(--wait-bg); color:var(--wait); border-radius:14px; padding:14px 18px; font-size:13.5px; line-height:1.7; font-weight:600; }
.lec-assign b{ font-weight:800; }

/* ============================================================
   과제
   ============================================================ */
.assign-week-tabs{ display:flex; gap:8px; margin-bottom:22px; overflow-x:auto; padding-bottom:2px; }
.awt{
  flex:none; padding:10px 18px; border-radius:999px; font-size:13.5px; font-weight:800;
  background:var(--surface); border:1.5px solid var(--line); color:var(--ink-3); cursor:pointer; white-space:nowrap;
  display:flex; align-items:center; gap:7px;
}
.awt.active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.awt.locked{ opacity:.5; cursor:not-allowed; }
.awt .dot{ width:7px; height:7px; border-radius:50%; background:var(--ink-4); }
.awt .dot.done{ background:var(--ok); }
.awt .dot.wait{ background:var(--main); }

.assign-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:26px; }
.assign-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:6px; flex-wrap:wrap; }
.assign-top h2{ font-size:19px; font-weight:800; letter-spacing:-.01em; }
.assign-due{ font-size:13px; color:var(--ink-3); margin-top:4px; }
.assign-due b{ color:var(--main-ink); }

.status-pill{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:800; padding:7px 14px; border-radius:999px; }
.status-pill.done{ background:var(--ok-bg); color:var(--ok); }
.status-pill.wait{ background:var(--wait-bg); color:var(--wait); }
.status-pill.none{ background:var(--line-2); color:var(--ink-3); }

.closed-banner{ background:#FBEEEA; color:#C4443B; font-weight:700; font-size:13.5px; border-radius:12px; padding:13px 16px; margin:14px 0; display:flex; gap:8px; align-items:center; }

.form-label{ display:flex; align-items:center; justify-content:space-between; font-size:13.5px; font-weight:800; color:var(--ink-2); margin:22px 0 10px; }
.form-label .req{ font-size:12px; font-weight:800; color:var(--main-deep); background:var(--main-pale); padding:3px 9px; border-radius:999px; }
textarea.review{
  width:100%; min-height:170px; padding:16px; border:1.5px solid var(--line); border-radius:14px;
  font-size:14.5px; line-height:1.75; resize:vertical; outline:none; color:var(--ink); background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
textarea.review:focus{ border-color:var(--main); box-shadow:0 0 0 4px var(--main-pale); }
textarea.review:disabled{ background:var(--line-2); color:var(--ink-2); }
.counter{ text-align:right; font-size:12.5px; font-weight:700; color:var(--ink-4); margin-top:8px; }
.counter.ok{ color:var(--ok); }

.photo-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:4px; }
.photo-slot{
  position:relative; width:120px; height:120px; border-radius:14px; overflow:hidden;
  border:1px solid var(--line); background:var(--line-2); display:grid; place-items:center;
}
.photo-slot img{ width:100%; height:100%; object-fit:cover; }
.photo-slot.add{ border:1.5px dashed var(--main-soft); background:var(--main-pale); }
.photo-slot.add label{ color:var(--main-deep); font-size:12.5px; font-weight:800; text-align:center; cursor:pointer; line-height:1.5; }
.photo-slot.add .plus{ font-size:22px; display:block; }
.photo-slot .remove{ position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:50%; background:rgba(32,26,20,.72); color:#fff; font-size:15px; display:grid; place-items:center; cursor:pointer; }
.photo-hint{ font-size:12px; color:var(--ink-4); margin-top:10px; }

.form-msg{ display:none; font-size:13px; font-weight:700; border-radius:11px; padding:12px 15px; margin-top:16px; }
.form-msg.err{ display:block; background:#FBEEEA; color:#C4443B; }
.form-msg.ok{ display:block; background:var(--ok-bg); color:var(--ok); }

.submit-meta{ display:flex; gap:18px; flex-wrap:wrap; font-size:12.5px; color:var(--ink-3); margin-top:18px; padding-top:16px; border-top:1px solid var(--line-2); }
.submit-meta span b{ color:var(--ink-2); font-weight:700; }

.form-actions{ margin-top:22px; }
.form-actions.edit-actions{ display:grid; grid-template-columns:1fr 2fr; gap:10px; }
.sub-actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:4px; }
textarea.review[readonly]{ background:var(--line-2); color:var(--ink-2); cursor:default; }
textarea.review[readonly]:focus{ border-color:var(--line); box-shadow:none; }

.locked-notice{ text-align:center; padding:60px 20px; color:var(--ink-3); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.locked-notice .emoji{ font-size:44px; margin-bottom:14px; }
.locked-notice .date{ font-weight:800; color:var(--main-deep); font-size:16px; margin-top:8px; }

/* ============================================================
   관리자
   ============================================================ */
.admin-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:22px; }
.stat{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px 20px; box-shadow:var(--shadow-sm); }
.stat .n{ font-size:26px; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
.stat .n.accent{ color:var(--main-deep); }
.stat .n.ok{ color:var(--ok); }
.stat .l{ font-size:12.5px; color:var(--ink-3); font-weight:700; margin-top:2px; }
.stat .n .sub{ font-size:14px; color:var(--ink-4); font-weight:700; }
.stat.clickable{ cursor:pointer; transition:border-color .14s, box-shadow .14s, transform .14s; }
.stat.clickable:hover{ border-color:var(--main-soft); transform:translateY(-1px); }
.stat.clickable.on{ border-color:var(--main); box-shadow:0 0 0 3px var(--main-pale); }

.filter-head{ font-size:13px; color:var(--ink-3); font-weight:700; margin-bottom:14px; }
.filter-head b{ color:var(--main-ink); }
.filter-head .clear{ color:var(--main-deep); cursor:pointer; text-decoration:underline; margin-left:4px; }

/* 이름별 현황 표 */
.ov-wrap{ overflow-x:auto; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.ov-table{ width:100%; border-collapse:collapse; min-width:520px; }
.ov-table th, .ov-table td{ padding:13px 10px; text-align:center; font-size:13.5px; border-bottom:1px solid var(--line-2); }
.ov-table thead th{ background:var(--bg); color:var(--ink-3); font-weight:800; font-size:12.5px; position:sticky; top:0; }
.ov-table tbody tr:last-child td{ border-bottom:none; }
.ov-table .ov-name{ text-align:left; white-space:nowrap; }
.ov-table .ov-name b{ display:block; font-size:14px; font-weight:800; }
.ov-table .ov-name small{ color:var(--ink-4); font-size:11.5px; }
.ov-cell{ font-size:16px; }
.ov-cell.none{ color:var(--ink-4); }
.ov-table td b.all-ok{ color:var(--ok); }
.ov-legend{ font-size:12px; color:var(--ink-3); margin-top:12px; text-align:center; }
.ov-table tr.ov-detached{ background:#FBF6F2; }
.ov-del-tag{ font-size:10px; font-weight:800; color:#C4443B; background:#FBEEEA; padding:2px 6px; border-radius:999px; vertical-align:middle; }

.sub-item{ background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-sm); padding:20px 22px; margin-bottom:14px; }
.sub-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.sub-head .who{ display:flex; align-items:center; gap:10px; }
.sub-head .name{ font-weight:800; font-size:15.5px; }
.sub-review{ font-size:14px; color:var(--ink-2); line-height:1.75; white-space:pre-wrap; background:var(--bg); border-radius:12px; padding:14px 16px; }
.sub-photos{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.sub-photos img{ width:92px; height:92px; object-fit:cover; border-radius:10px; border:1px solid var(--line); cursor:pointer; transition:transform .12s; }
.sub-photos img:hover{ transform:scale(1.04); }
.sub-meta{ font-size:12px; color:var(--ink-4); margin-top:12px; display:flex; gap:16px; flex-wrap:wrap; }

.loading{ text-align:center; padding:60px; color:var(--ink-3); font-weight:700; }
.empty{ text-align:center; padding:56px; color:var(--ink-3); background:var(--surface); border:1px dashed var(--line); border-radius:var(--radius); }
.empty .emoji{ font-size:40px; margin-bottom:12px; }

/* 라이트박스 */
.lb{ position:fixed; inset:0; z-index:140; display:none; align-items:center; justify-content:center; padding:24px; background:rgba(32,26,20,.85); }
.lb.open{ display:flex; }
.lb img{ max-width:100%; max-height:88vh; border-radius:12px; }
.lb-close{ position:absolute; top:18px; right:20px; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:24px; border:none; cursor:pointer; }

/* ============================================================
   반응형: 모바일 (사이드바 → 상단바 + 하단 탭바)
   ============================================================ */
@media (max-width:860px){
  .app{ grid-template-columns:1fr; }
  .sidebar{ display:none; }
  .mobile-top{
    display:flex; align-items:center; justify-content:space-between;
    position:sticky; top:0; z-index:40; background:rgba(255,255,255,.92); backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line); padding:13px 18px;
  }
  .mobile-top .mb{ display:flex; align-items:center; gap:9px; }
  .mobile-top .logo{ width:30px; height:30px; border-radius:9px; overflow:hidden; background:var(--main-pale); }
  .mobile-top .logo img{ width:100%; height:100%; object-fit:cover; display:block; }
  .mobile-top b{ font-size:14px; font-weight:800; }
  .mobile-top .out{ font-size:12.5px; font-weight:700; color:var(--ink-3); background:var(--surface); border:1.5px solid var(--line); border-radius:999px; padding:7px 14px; cursor:pointer; }
  .content{ padding:20px 16px 96px; }
  .page-head h1{ font-size:21px; }
  .lecture-grid{ grid-template-columns:1fr; gap:14px; }
  .admin-stats{ grid-template-columns:1fr 1fr 1fr; gap:8px; }
  .stat{ padding:13px 12px; }
  .stat .n{ font-size:20px; }
  .stat .l{ font-size:11px; }

  .tabbar{
    display:grid; grid-template-columns:1fr 1fr; position:fixed; bottom:0; left:0; right:0; z-index:50;
    background:rgba(255,255,255,.96); backdrop-filter:blur(12px); border-top:1px solid var(--line);
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar .tb{ display:flex; flex-direction:column; align-items:center; gap:3px; padding:7px; border-radius:12px; font-size:11px; font-weight:800; color:var(--ink-4); cursor:pointer; }
  .tabbar .tb .ic{ font-size:19px; line-height:1; }
  .tabbar .tb.active{ color:var(--main-deep); background:var(--main-pale); }
  .admin-nolayout .tabbar{ display:none; }
}
@media (max-width:420px){
  .photo-slot{ width:104px; height:104px; }
}
