:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#172033;
  --muted:#647084;
  --primary:#1e5eff;
  --primary-dark:#1648c7;
  --border:#e1e6ef;
  --green:#12805c;
  --yellow:#8a6500;
  --red:#b42318;
  --shadow:0 12px 35px rgba(20,32,56,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 34px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:var(--primary);
  color:white;
  font-weight:800;
  font-size:20px;
}
.brand span{display:block;color:var(--muted);font-size:13px;margin-top:-2px}
.status-pill{
  background:#eef4ff;
  color:#234bb3;
  border:1px solid #d9e5ff;
  border-radius:999px;
  padding:7px 14px;
  font-size:13px;
  font-weight:700;
}
.layout{
  max-width:1240px;
  margin:28px auto 70px;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:24px;
  padding:0 22px;
}
.sidebar{
  position:sticky;
  top:96px;
  height:max-content;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow);
}
.side-title{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  margin:0 0 12px;
}
.nav-link{
  display:block;
  padding:10px 12px;
  color:#263248;
  text-decoration:none;
  border-radius:12px;
  font-size:14px;
}
.nav-link:hover,.nav-link.active{
  background:#eef4ff;
  color:var(--primary-dark);
}
.content{min-width:0}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:26px;
  padding:30px;
  box-shadow:var(--shadow);
  margin-bottom:22px;
}
.hero{
  padding:42px;
  background:
    radial-gradient(circle at top right, rgba(30,94,255,.16), transparent 35%),
    linear-gradient(180deg,#fff,#fbfcff);
}
.eyebrow{
  display:inline-flex;
  background:#eef4ff;
  color:#234bb3;
  border-radius:999px;
  padding:7px 13px;
  font-weight:800;
  font-size:13px;
  margin-bottom:18px;
}
h1{font-size:42px;line-height:1.12;margin:0 0 18px}
h2{font-size:28px;margin:0 0 16px}
h3{font-size:18px;margin:0 0 8px}
.lead{font-size:18px;color:#3a465a;max-width:820px}
.muted{color:var(--muted)}
.meta-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:24px 0;
}
.meta-grid div{
  border:1px solid var(--border);
  background:#f8faff;
  border-radius:16px;
  padding:14px;
}
.meta-grid b{display:block}
.meta-grid span{color:var(--muted);font-size:14px}
.primary{
  border:0;
  background:var(--primary);
  color:white;
  border-radius:14px;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(30,94,255,.22);
}
.primary:hover{background:var(--primary-dark)}
.note{
  margin-top:18px;
  padding:18px;
  border-left:4px solid var(--primary);
  background:#f3f7ff;
  border-radius:16px;
}
.law-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:18px;
}
.law-item{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  background:#fbfcff;
}
.tag{
  display:inline-flex;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
}
.tag.ok{background:#e8fff4;color:var(--green)}
.tag.warn{background:#fff7df;color:var(--yellow)}
.steps{
  display:grid;
  gap:12px;
}
.steps div{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fbfcff;
}
.steps b{
  min-width:32px;height:32px;border-radius:11px;
  display:grid;place-items:center;
  background:#eef4ff;color:var(--primary-dark);
}
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.bad-answer,.good-answer{
  border-radius:18px;
  padding:18px;
}
.bad-answer{
  border:1px solid #ffd8d6;
  background:#fff7f6;
}
.good-answer{
  border:1px solid #cbeedc;
  background:#f4fff9;
}
.case-box{
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  background:#fbfcff;
}
.case-time{
  display:inline-flex;
  background:#172033;
  color:white;
  border-radius:999px;
  padding:5px 12px;
  font-size:13px;
  font-weight:800;
}
textarea{
  width:100%;
  min-height:150px;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  margin:16px 0;
  font:inherit;
  resize:vertical;
  outline:none;
}
textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(30,94,255,.10)}
.result{
  margin-top:16px;
  border-radius:18px;
  padding:18px;
  background:#f8faff;
  border:1px solid var(--border);
}
.hidden{display:none}
.question{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  margin:14px 0;
  background:#fbfcff;
}
.option{
  display:block;
  margin:9px 0;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:13px;
  cursor:pointer;
  background:white;
}
.option:hover{background:#f4f7ff}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.summary-grid div{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  background:#fbfcff;
}
.score{
  font-weight:900;
  font-size:28px;
  color:var(--primary-dark);
}
@media(max-width:900px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative;top:auto}
  .meta-grid,.law-list,.split,.summary-grid{grid-template-columns:1fr}
  h1{font-size:32px}
  .topbar{padding:0 18px}
}
/* DIRECTOR_NAV_STYLE_START */
.lesson-switcher{max-width:1180px;margin:14px auto 0;padding:0 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lesson-switcher a,.lesson-switcher span{min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid var(--border,#dbe3ef);border-radius:8px;background:#fff;color:var(--text,#172033);font-weight:800;text-decoration:none;padding:9px 10px;line-height:1.25}
.lesson-switcher a:hover{border-color:#1f5fbf;background:#eef6ff;color:#164b9b}
.lesson-switcher span{color:var(--muted,#647087);background:#f4f7fb}
.lesson-switcher-bottom{margin:24px auto 6px}
@media(max-width:720px){.lesson-switcher{grid-template-columns:1fr;padding:0 16px}.lesson-switcher a,.lesson-switcher span{justify-content:flex-start;text-align:left}}
/* DIRECTOR_NAV_STYLE_END */