/* ระบบส่งแผนการสอนและนิเทศภายใน — CSS เฉพาะระบบ (สีเน้นใช้ตัวแปรธีม --ac*) */
.gate { min-height: 100vh; min-height: 100dvh; padding: 24px 16px; display: grid; place-items: center; background: var(--page-bg, #f3f5fb); }
.gate-card { width: min(640px, 100%); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.gate-head { padding: 26px 24px 20px; color: #fff; background: linear-gradient(135deg, var(--hero-1), var(--ac) 60%, var(--ac-2)); display: flex; gap: 14px; align-items: center; }
.gate-head .ic { width: 54px; height: 54px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(255,255,255,.18); flex: 0 0 auto; }
.gate-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; } .gate-head p { margin: 2px 0 0; opacity: .9; font-size: .9rem; }
.gate-body { padding: 20px 24px 24px; color: var(--ink-2); line-height: 1.7; } .gate-body ol { padding-left: 20px; }
.txt-h { font-weight: 800; color: var(--ac-ink); margin: 6px 0 8px; display: flex; gap: 8px; align-items: center; }

/* หน้าเข้าสู่ระบบ: การ์ด 2 ฝั่ง */
.login-page { background: radial-gradient(circle at 10% 10%, var(--ac-soft), transparent 40%), var(--page-bg, #f3f5fb); }
.lg-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.lg-card { width: min(1020px, 100%); display: grid; grid-template-columns: 41fr 59fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(8,62,8,.35); border: 1px solid var(--line); }
.lg-side { position: relative; padding: 40px 36px; color: #fff; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(circle at 75% 15%, rgba(255,255,255,.2), transparent 45%), linear-gradient(150deg, var(--hero-1), var(--ac) 55%, var(--ac-2)); }
.lg-side::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.lg-ic { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.lg-side h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.35; margin: 22px 0 10px; }
.lg-desc { opacity: .92; line-height: 1.7; margin: 0 0 26px; }
.lg-feat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.lg-feat li { display: flex; gap: 12px; align-items: flex-start; }
.lg-feat li > span { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); }
.lg-feat b { display: block; font-size: .98rem; } .lg-feat small { display: block; opacity: .86; font-size: .84rem; }
.lg-main { padding: 44px 44px 36px; }
.lg-main h2 { font-size: 1.9rem; font-weight: 800; margin: 0; color: var(--ink, #0f172a); }
.lg-org { color: #64748b; margin: 2px 0 24px; }
.lg-in { position: relative; margin-bottom: 18px; }
.lg-in > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.lg-in .form-control { min-height: 50px; padding-left: 44px; padding-right: 48px; border-radius: 14px; }
.lg-in .form-control:focus { border-color: var(--ac); box-shadow: 0 0 0 4px var(--ac-soft); }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: #94a3b8; border-radius: 10px; cursor: pointer; }
.lg-btn { width: 100%; min-height: 54px; border: 0; border-radius: 16px; color: #fff; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  background: linear-gradient(90deg, var(--ac), var(--ac-2)); box-shadow: 0 14px 28px -12px var(--ac); }
.lg-btn:hover { filter: brightness(1.06); }
.demo-accts { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 8px; }
.demo-acct { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; text-align: left; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.demo-acct:hover, .demo-acct.on { border-color: var(--ac); background: var(--ac-soft); }
.demo-acct > i { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--ac), var(--ac-2)); flex: 0 0 auto; }
.demo-acct b { display: block; font-size: .86rem; color: var(--ink); } .demo-acct small { display: block; font-size: .72rem; color: #64748b; }
@media (max-width: 767.98px) {
  .lg-wrap { padding: 0; place-items: stretch; }
  .lg-card { grid-template-columns: 1fr; border-radius: 0; border: 0; min-height: 100dvh; box-shadow: none; align-content: start; }
  .lg-side { padding: 22px 20px 20px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .lg-side .lg-ic { width: 46px; height: 46px; font-size: 1.25rem; }
  .lg-side h1 { font-size: 1.12rem; margin: 0; flex: 1 1 200px; }
  .lg-desc, .lg-feat { display: none; }
  .lg-main { padding: 24px 20px 32px; } .lg-main h2 { font-size: 1.5rem; }
}

/* เมนู/แถบบน */
.sb-user { display: flex; gap: 10px; align-items: center; color: #fff; padding: 4px 8px 10px; }
.sb-user .av { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.sb-user b { display: block; font-size: .88rem; line-height: 1.3; } .sb-user small { opacity: .8; font-size: .74rem; }
.sb-foot form button.sb-link { border: 0; background: none; text-align: left; }
.tb-year { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ac-soft); color: var(--ac-ink); font-weight: 800; font-size: .82rem; border: 1px solid var(--ac-line); white-space: nowrap; }

/* ส่วนประกอบทั่วไป */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.panel { margin-bottom: 18px; }
.panel-body { padding: 16px 18px; }
.muted { color: var(--muted, #64748b); }
.small-note { font-size: .82rem; color: var(--muted, #64748b); }
.pre { white-space: pre-line; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.warn-row td { background: #fff7ed !important; }
.sum-row td { background: var(--ac-soft) !important; font-weight: 800; color: var(--ac-ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; } .kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .form-select, .filters .form-control { width: auto; min-width: 170px; max-width: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.fld-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.fld-h .form-label { margin: 0; }
.ph-list { text-align: left; max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ph-list label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.55; }
.ph-list label:has(input:checked) { border-color: var(--ac); background: var(--ac-soft); }
.ph-list input { margin-top: 5px; accent-color: var(--ac); flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; text-align: left; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ac-line); background: #fff; color: var(--ac-ink); font-weight: 700; font-size: .84rem; text-decoration: none; cursor: pointer; min-height: 36px; }
.chip:hover, .chip.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.chip .cnt { background: var(--ac-soft); color: var(--ac-ink); border-radius: 999px; padding: 0 7px; font-size: .74rem; }
.chip.mini { font-size: .8rem; padding: 4px 10px; font-weight: 600; min-height: 32px; } .chip.mini i { font-size: .7rem; opacity: .7; }
.txt-h { justify-content: flex-start; }
.temp-pw { font-size: 1.4rem; letter-spacing: 2px; color: var(--ac-ink); }

/* แถบร้อยละ */
.pbar { flex: 1 1 auto; min-width: 90px; height: 10px; border-radius: 99px; background: #e9eef5; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ac), var(--ac-2)); }
.trk-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr 56px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.trk-row:last-child { border-bottom: 0; }
.trk-name b { display: block; font-size: .9rem; } .trk-name small { color: var(--muted); font-size: .76rem; }
.trk-pct { text-align: right; color: var(--ac-ink); }

/* กราฟแท่งรายกลุ่มสาระ */
.gchart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 10px; align-items: end; overflow-x: auto; padding-top: 6px; }
.gcol { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); border-radius: 12px; padding: 6px 2px; }
.gcol.on { background: var(--ac-soft); }
.gbar { position: relative; width: 38px; height: 200px; border-radius: 10px 10px 4px 4px; background: #eef1f6; overflow: hidden; }
.gbar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px 10px 0 0; }
.gbar i.sub { background: var(--ac-line); } .gbar i.okk { background: linear-gradient(180deg, var(--ac-2), var(--ac)); }
.gval { font-weight: 800; font-size: .8rem; color: var(--ac-ink); }
.glab { font-size: .74rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.25; max-width: 90px; }

/* นัดนิเทศ (รายการ) */
.sess-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; text-decoration: none; color: var(--ink); background: #fff; }
.sess-item:hover { border-color: var(--ac); background: var(--ac-soft); color: var(--ink); }
.sess-date { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--ac), var(--ac-2)); line-height: 1.1; }
.sess-date b { font-size: 1.3rem; } .sess-date small { font-size: .72rem; }
.sess-txt { flex: 1 1 auto; min-width: 0; } .sess-txt b, .sess-txt small { display: block; } .sess-txt small { color: var(--muted); font-size: .78rem; }

/* เส้นทางการตรวจแผน */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.flow-step { position: relative; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; }
.flow-step > span { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef1f6; color: var(--muted); margin-bottom: 6px; }
.flow-step b { display: block; font-size: .86rem; } .flow-step small { color: var(--muted); font-size: .74rem; }
.flow-step.done > span { background: linear-gradient(135deg, var(--ac), var(--ac-2)); color: #fff; }
.flow-step.now { border-color: #FF9F0A; box-shadow: 0 0 0 3px rgba(255,159,10,.15); } .flow-step.now > span { background: #FF9F0A; color: #fff; }
.flow-step.back > span { background: #FF375F; color: #fff; }
.steps-line { display: flex; flex-wrap: wrap; gap: 6px; } .steps-line span { padding: 4px 10px; border-radius: 999px; background: #eef1f6; font-size: .78rem; font-weight: 700; color: var(--muted); }
.steps-line span.on { background: var(--ac); color: #fff; }
.cmt { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); border-left: 5px solid var(--ac); margin-bottom: 10px; }
.cmt.bad { border-left-color: #FF375F; background: #fff8f9; }
.cmt-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .cmt p { margin: 6px 0 0; }
.file-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--ac-soft); color: var(--ac-ink); font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.file-chip .fa-file-pdf, .file-big .fa-file-pdf { color: #e11d48; } .file-chip .fa-file-word, .file-big .fa-file-word { color: #2563eb; }
.file-big { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--ac-line); text-decoration: none; color: var(--ink); background: #fff; }
.file-big > i { font-size: 2rem; } .file-big b, .file-big small { display: block; } .file-big small { color: var(--muted); }
.dropzone { border-color: var(--ac-line); background: var(--ac-soft); } .dropzone i { color: var(--ac); }
.dropzone:hover, .dropzone.is-over { border-color: var(--ac); background: #fff; }

/* ปฏิทิน */
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cal-nav h3 { margin: 0 6px; font-weight: 800; font-size: 1.25rem; min-width: 170px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 18px 18px 0 0; overflow: hidden; }
.cal-h { background: var(--ac-head, var(--ac-soft)); color: var(--ac-ink); text-align: center; font-weight: 800; padding: 8px 2px; font-size: .84rem; }
.cal-d { background: #fff; min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-d.off { background: #f8fafc; } .cal-d.we { background: #fbfcfe; }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--ac); }
.cal-n { font-weight: 800; font-size: .82rem; color: var(--muted); }
.cal-ev { display: block; padding: 4px 6px; border-radius: 8px; font-size: .74rem; line-height: 1.25; text-decoration: none; color: #fff; background: var(--ac); overflow: hidden; }
.cal-ev b, .cal-ev small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cal-ev small { opacity: .9; }
.cal-ev.ok { background: #0A84FF; } .cal-ev.warn { background: #FF9F0A; } .cal-ev.off { background: #cbd5e1; color: #334155; text-decoration: line-through; }
.cal-ev:hover { color: #fff; filter: brightness(1.08); }

/* แบบสังเกตการสอน */
.grid-obs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.obs-table td { vertical-align: middle; }
.obs-table .dom-h td { background: var(--ac-soft) !important; color: var(--ac-ink); font-weight: 800; }
.score-pick { display: inline-flex; gap: 6px; }
.score-pick label { cursor: pointer; } .score-pick input { position: absolute; opacity: 0; pointer-events: none; }
.score-pick span { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: #fff; }
.score-pick input:checked + span { background: linear-gradient(135deg, var(--ac), var(--ac-2)); border-color: var(--ac); color: #fff; }
.score-pick input:focus-visible + span { outline: 3px solid var(--ac-line); }
.score-v { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; color: #fff; background: var(--ac); }
.score-v.s2 { background: #FF9F0A; } .score-v.s1 { background: #FF375F; } .score-v.s3 { background: var(--ac-2); color: var(--ac-ink); }
.score-badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 18px; padding: 10px 18px; text-align: center; color: #fff; }
.score-badge b { display: block; font-size: 2rem; line-height: 1; } .score-badge small { font-weight: 700; }
.ro-box { padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); min-height: 44px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.photo-grid figcaption { font-size: .76rem; padding: 6px 8px; color: var(--muted); }
.photo-grid .icon-btn { position: absolute; top: 6px; right: 6px; background: #fff; }
.lvl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.lvl { text-align: center; padding: 12px 8px; border-radius: 16px; background: var(--ac-soft); border: 1px solid var(--ac-line); }
.lvl b { display: block; font-size: 1.8rem; color: var(--ac-ink); line-height: 1.1; } .lvl span { display: block; font-weight: 800; } .lvl small { color: var(--muted); }

/* หน้าเอกสาร: รายการเอกสาร (ซ้าย) + ตัวอย่าง A4 (ขวา) ตามต้นแบบ vs-procure-specific */
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, background .15s; }
.doc-row.active { border-color: var(--ac); background: var(--ac-soft); }
.doc-n { width: 24px; height: 24px; border-radius: 8px; background: var(--ac-soft); color: var(--ac-ink); font-weight: 800; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.doc-row.active .doc-n { background: var(--ac); color: #fff; }
.doc-main { flex: 1 1 auto; min-width: 0; display: flex; gap: 10px; align-items: center; background: none; border: 0; text-align: left; padding: 4px; min-height: 44px; color: var(--ink); }
.doc-main > i { color: var(--ac); width: 20px; text-align: center; }
.doc-main b { display: block; font-size: .88rem; line-height: 1.35; } .doc-main small { color: var(--muted); font-size: .74rem; }
.ps-preview { background: #e9edf5; border-radius: 14px; padding: 14px; overflow: auto; max-height: 1200px; }
.ps-preview .gov-page { margin: 0 auto; }
.ps-loading { padding: 40px; text-align: center; color: var(--muted); }
@media (max-width: 1599px) { .ps-preview .gov-page { zoom: .78; } }
@media (max-width: 1199px) { .ps-preview .gov-page { zoom: .7; } }
@media (max-width: 860px) { .ps-preview .gov-page { zoom: .44; } }
@media (max-width: 400px) { .ps-preview .gov-page { zoom: .4; } }
.ps-doc p { margin: 0; }
.ps-doc .ps-c { text-align: center; } .ps-doc .b { font-weight: 700; }
.ps-doc .ps-title { text-align: center; font-weight: 700; }
.ps-doc .ps-head { font-weight: 700; margin-top: 8pt; }
.ps-doc .ps-signs { display: grid; gap: 4mm; text-align: center; break-inside: avoid; }
.ps-doc .ps-sign-cell { padding-top: 4mm; }
.ps-doc .gov-sign { margin-top: 4mm; }
.ps-doc .ps-opinion { margin-top: 5mm; break-inside: avoid; }
.ps-doc .ps-box { margin-left: 10mm; }
.ps-doc .ps-dots { margin-left: 10mm; border-bottom: 1px dotted #000; height: 7mm; }
.ps-doc .ps-table { font-size: 14pt; }
.ps-doc .ps-span td { background: #F2F2F2; font-weight: 700; }
.ps-doc .ps-foot td { font-weight: 700; }
@media print { #print-root .gov-page { zoom: 1 !important; } }

@media (max-width: 991.98px) { .grid-obs { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .cal-d { min-height: 74px; padding: 3px; } .cal-ev { padding: 2px 3px; font-size: .64rem; } .cal-ev small { display: none; } .cal-h { font-size: .74rem; }
  .trk-row { grid-template-columns: 1fr 52px; } .trk-row .trk-bar { grid-column: 1 / -1; grid-row: 2; }
  .gbar { height: 150px; width: 30px; }
}
@media (max-width: 575.98px) { .filters .form-select, .filters .form-control { min-width: 0; flex: 1 1 140px; } .kv { grid-template-columns: 1fr; } .score-pick span { width: 38px; height: 38px; } }
/* มือถือ: แบบสังเกตการสอนเรียงคะแนนไว้ใต้ข้อความ (ไม่ต้องเลื่อนตารางซ้าย-ขวา) */
@media (max-width: 767.98px) {
  .obs-table { min-width: 0 !important; }
  .obs-table thead { display: none; }
  .obs-table tbody tr:not(.dom-h) { display: grid; grid-template-columns: 34px 1fr; padding: 8px 4px; border-bottom: 1px solid var(--line); }
  .obs-table tbody tr:not(.dom-h) td { border: 0; padding: 2px 4px; }
  .obs-table tbody tr:not(.dom-h) td:last-child { grid-column: 2; text-align: left !important; }
  .obs-table tfoot tr { display: flex; justify-content: space-between; }
}


/* ====================================================================
   Lesson Plan Calm Indigo — theme overlay
   Replaces only on-screen appearance. Keeps data, forms and functionality.
   Inspired by supplied timetable dashboard screenshots, Nov 2026.
   ==================================================================== */
body.vs-theme-lessonphp {
  --blue: #4e80ec; --indigo: #514bd6; --purple: #8773e5;
  --green: #22ae83; --teal: #20bfae; --cyan: #3aaeda;
  --pink: #d97aa4; --orange: #e8a252; --red: #d76173;
  --ink: #1d2441; --ink-2: #384361; --muted: #74809a;
  --line: #e1e5f1; --line-2: #eef0f8;
  --surface: #fff; --surface-2: #f8f9fd;
  --page-bg: #f4f6fc;
  --shadow-sm: 0 3px 12px rgba(31,39,94,.045);
  --shadow: 0 8px 28px rgba(35,40,101,.07);
  --shadow-lg: 0 14px 35px rgba(38,43,119,.13);
  --radius: 20px;
  background: var(--page-bg);
}
body.vs-theme-lessonphp .app-sidebar {
  background: linear-gradient(180deg,#11165b 0%,#1b1a88 51%,#2923a5 100%);
  border-right: 1px solid rgba(255,255,255,.10);
  box-shadow: 4px 0 18px rgba(29,30,85,.11);
}
body.vs-theme-lessonphp .sb-brand { border-bottom-color: rgba(255,255,255,.13); }
body.vs-theme-lessonphp .sb-brand-icon { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.19); }
body.vs-theme-lessonphp .sb-link { color: #e1e5ff; border-radius: 12px; }
body.vs-theme-lessonphp .sb-link:hover { color: #fff; background: rgba(255,255,255,.12); }
body.vs-theme-lessonphp .sb-link.active {
  color: #fff; background: rgba(129,143,242,.32);
  border-left-color: #d7d1ff; box-shadow: none;
}
body.vs-theme-lessonphp .sb-group { color: #adb8f1; }
body.vs-theme-lessonphp .sb-foot { border-top-color: rgba(255,255,255,.13); }
body.vs-theme-lessonphp .app-topbar {
  background: rgba(255,255,255,.96); border-bottom-color: #e9ebf4;
  box-shadow: 0 1px 6px rgba(31,41,92,.03);
}
body.vs-theme-lessonphp .tb-title i { color: #3834b0; }
body.vs-theme-lessonphp .tb-year, body.vs-theme-lessonphp .tb-term {
  background: #f0effc; border-color: #e0def7; color: #363182;
}
body.vs-theme-lessonphp .tb-burger { background: #f1f0fc; color: #2e2b88; }
body.vs-theme-lessonphp .app-content { background: #f4f6fc; }
body.vs-theme-lessonphp .hero,
body.vs-theme-lessonphp .hero:not([class*="hero--"]) {
  --h1: #11134d; --h2: #302cab; --h3: #468af0;
  background: linear-gradient(112deg,#11134d 0%,#282995 48%,#438cf3 100%);
  border-radius: 22px; box-shadow: 0 10px 22px rgba(32,39,124,.10);
}
body.vs-theme-lessonphp .hero::before { opacity: .55; }
body.vs-theme-lessonphp .hero::after { opacity: .48; }
body.vs-theme-lessonphp .hero-icon { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.22); }
body.vs-theme-lessonphp .hero-sub { color: #e1e8ff; }
body.vs-theme-lessonphp .panel,
body.vs-theme-lessonphp .stat-card,
body.vs-theme-lessonphp .gate-card {
  border: 1px solid #e5e8f3; box-shadow: 0 5px 18px rgba(32,40,98,.055);
  background: #fff; border-radius: 19px;
}
body.vs-theme-lessonphp .panel::before,
body.vs-theme-lessonphp .stat-card::before { opacity: .72; height: 3px; }
body.vs-theme-lessonphp .panel-head { border-bottom-color: #edf0f8; }
body.vs-theme-lessonphp .panel-head h3 { color: #222849; }
body.vs-theme-lessonphp .panel--green { --pa: #4d8fe3; --pb: #817be5; }
body.vs-theme-lessonphp .panel--orange { --pa: #9c84e1; --pb: #d79bbd; }
body.vs-theme-lessonphp .panel--teal { --pa: #45a8d5; --pb: #817be5; }
body.vs-theme-lessonphp .panel--pink { --pa: #b792d8; --pb: #d3a6cb; }
body.vs-theme-lessonphp .panel--purple { --pa: #6259d9; --pb: #a48ce7; }
body.vs-theme-lessonphp .ic-box { box-shadow: 0 4px 11px rgba(58,66,151,.10); }
body.vs-theme-lessonphp .panel-head .ic-box { filter: saturate(.76); }
body.vs-theme-lessonphp .btn-x.primary,
body.vs-theme-lessonphp .btn-x.cta {
  background: linear-gradient(115deg,#3430a8,#6963dc); border-color: transparent;
  color: #fff; box-shadow: 0 5px 14px rgba(60,55,161,.16);
}
body.vs-theme-lessonphp .btn-x.ghost { background: #fff; border-color: #e1e4f0; color: #34338c; }
body.vs-theme-lessonphp .btn-x.soft { background: #f0effd; border-color: #dedaf9; color: #35328f; }
body.vs-theme-lessonphp .btn-x.blue { background: linear-gradient(120deg,#4c81e6,#6a66dc); }
body.vs-theme-lessonphp .btn-x.green { background: linear-gradient(120deg,#238f89,#3ba9a6); }
body.vs-theme-lessonphp .btn-x.orange { background: linear-gradient(120deg,#d79559,#d98191); }
body.vs-theme-lessonphp .dt thead th { background: #f0f0fa; color: #333366; border-bottom-color: #dadbf1; }
body.vs-theme-lessonphp .dt tbody td { border-bottom-color: #eff1f8; }
body.vs-theme-lessonphp .dt tbody tr:hover td { background: #f8f8fe; }
body.vs-theme-lessonphp .pbar { background: #eceef6; }
body.vs-theme-lessonphp .pbar i { background: linear-gradient(90deg,#5a65d1,#7779e3); }
body.vs-theme-lessonphp .stat-card .ic-box { filter: saturate(.75); }
body.vs-theme-lessonphp a:not(.sb-link):not(.btn-x) { accent-color: #4f4bc5; }
body.vs-theme-lessonphp .score-pick input:checked + span { background: #5854cd; border-color: #5854cd; }
body.vs-theme-lessonphp .score-v.s3 { color: #fff; }
body.vs-theme-lessonphp .gate-head { background: linear-gradient(120deg,#111653,#4039b5,#6196e8); }
body.vs-theme-lessonphp .form-control:focus,
body.vs-theme-lessonphp .form-select:focus { border-color: #7875d4; box-shadow: 0 0 0 .2rem rgba(91,85,205,.11); }
@media(max-width:767.98px) {
  body.vs-theme-lessonphp .hero { border-radius: 19px; }
  body.vs-theme-lessonphp .app-content { padding-left: 14px; padding-right: 14px; }
}
@media print {
  body.vs-theme-lessonphp .app-content { background: #fff; }
  body.vs-theme-lessonphp .panel, body.vs-theme-lessonphp .stat-card { box-shadow: none; }
}
