:root{
  --bg:#F3F7F3; --card:#ffffff; --card-2:#eaf2ea; --ink:#1f0909; --text:#333333;
  --muted:#656565; --border:#dadada; --border-2:#e5e5e5; --accent:#4e6355;
  --link:#065588; --highlight:#ffe08a; --radius:16px;
  --shadow:0 8px 32px rgba(0,0,0,0.08);
}
body.dark-theme{
  --bg:#1C2520; --card:#202b25; --card-2:#26332b; --ink:#ffffff; --text:#DDE5DD;
  --muted:#a5b3a9; --border:#334237; --border-2:#334237; --accent:#8cd7a3;
  --link:#8cd7a3; --highlight:#8cd7a3; --shadow:0 8px 32px rgba(0,0,0,0.35);
}
*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:"B Mitra","Vazirmatn","B Nazanin","Segoe UI",sans-serif;
  line-height:1.75; padding-bottom:110px; transition:background-color .3s, color .3s;
}
a{color:var(--link); text-decoration:none;}
h1,h2,h3,h4{color:var(--ink); font-weight:800; margin:0;}

header.site{ position:sticky; top:0; z-index:500; background:var(--bg); border-bottom:1px solid var(--border-2);}
.site-inner{ max-width:1120px; margin:0 auto; padding:16px 24px; display:flex; align-items:center; gap:20px; flex-wrap:wrap;}
.logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.35rem; color:var(--ink);}
.logo .mark{ font-size:1.6rem; line-height:1; }
.logo small{ display:block; font-weight:500; font-size:.72rem; color:var(--muted); margin-top:1px;}
nav.top{ display:flex; gap:22px; margin-inline-start:12px; flex:1; font-size:.95rem; font-weight:600;}
nav.top a{ color:var(--muted);}
nav.top a.active{ color:var(--ink);}
.cta-new{ background:var(--accent); color:#fff; border:none; border-radius:50px; padding:10px 22px; font-weight:700; font-size:.9rem; cursor:pointer; display:inline-block;}
body.dark-theme .cta-new{ color:#12211a;}
.user-chip{ font-size:.85rem; color:var(--muted);}
.logout-link{ font-size:.85rem; color:var(--muted);}

main{ max-width:1120px; margin:0 auto; padding:36px 24px 0;}
section{ margin-bottom:48px;}
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px; flex-wrap:wrap; gap:10px;}
.section-head h2{ font-size:1.3rem;}
.section-head a.all{ font-size:.85rem; font-weight:600; color:var(--accent);}
.cat-description{ color:var(--muted); font-size:.9rem; margin-top:-10px;}

.cat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.cat-card{ background:var(--card); border:1px solid var(--border-2); border-radius:var(--radius); padding:20px; display:flex; gap:14px; align-items:flex-start; transition:transform .15s, box-shadow .15s; color:inherit;}
.cat-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow);}
.cat-icon{ width:46px;height:46px;border-radius:50%; flex-shrink:0; display:flex;align-items:center;justify-content:center; font-size:1.3rem; background:var(--card-2);}
.cat-body h3{ font-size:1.02rem; margin-bottom:4px;}
.cat-body p{ margin:0; font-size:.83rem; color:var(--muted);}
.cat-count{ font-size:.75rem; color:var(--accent); font-weight:700; margin-top:8px; display:block;}

.thread-list{ display:flex; flex-direction:column; gap:10px;}
.thread, .post-card{ display:flex; gap:14px; align-items:center; background:var(--card); border:1px solid var(--border-2); border-radius:14px; padding:16px 18px; color:inherit; transition:box-shadow .15s, transform .15s;}
.thread:hover{ box-shadow:var(--shadow); transform:translateY(-1px);}
.avatar{ width:42px;height:42px;border-radius:50%; flex-shrink:0; background:var(--accent); color:#fff; display:flex;align-items:center;justify-content:center; font-weight:700; font-size:.9rem;}
.thread-body{ flex:1; min-width:0;}
.thread-title-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.thread-body h4{ margin:0; font-size:1rem; font-weight:700; color:var(--ink);}
.tag{ font-size:.7rem; font-weight:700; padding:2px 10px; border-radius:50px; background:var(--card-2); color:var(--accent); white-space:nowrap;}
.badge-hot{ background:var(--highlight); color:#1f0909 !important;}
.thread-meta{ font-size:.8rem; color:var(--muted); margin-top:4px;}
.thread-stats{ text-align:center; flex-shrink:0; font-size:.78rem; color:var(--muted); min-width:56px;}
.thread-stats b{ display:block; font-size:1.05rem; color:var(--ink);}
.empty-note{ color:var(--muted); font-size:.9rem;}

.post-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:24px;}
.post-card{ align-items:flex-start; flex-direction:column;}
.post-author{ display:flex; align-items:center; gap:10px;}
.post-body{ margin-top:10px; white-space:pre-wrap; line-height:1.8;}

.auth-form, .reply-form{ display:flex; flex-direction:column; gap:10px; max-width:480px; background:var(--card); border:1px solid var(--border-2); border-radius:var(--radius); padding:24px;}
.auth-form label{ font-size:.85rem; font-weight:700; color:var(--muted);}
.auth-form input, .auth-form select, .auth-form textarea, .reply-form textarea{
  padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-family:inherit;
  background:var(--bg); color:var(--text); font-size:.95rem;
}
.reply-form{ max-width:100%;}

.flash{ background:var(--card-2); border:1px solid var(--border); border-radius:12px; padding:12px 16px; margin-bottom:18px; font-size:.9rem;}
.flash.error{ background:#fdecea; border-color:#f3b3ac; color:#8a2118;}
body.dark-theme .flash.error{ background:#3a2320; border-color:#5a332c; color:#f3b3ac;}

.action-bar{
  position:fixed; bottom:25px; left:50%; transform:translateX(-50%);
  display:flex; gap:15px; background:rgba(255,255,255,0.9); padding:10px 20px;
  border-radius:50px; z-index:9999; box-shadow:0 8px 32px rgba(0,0,0,0.1);
  border:1px solid rgba(0,0,0,0.05); backdrop-filter:blur(8px); align-items:center;
}
body.dark-theme .action-bar{ background:rgba(28,37,32,0.95); border-color:rgba(255,255,255,0.05);}
.action-bar button, .action-bar a{ background:none; border:none; font-size:1.4rem; cursor:pointer; padding:5px; text-decoration:none;}

@media(max-width:820px){ .cat-grid{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:520px){ .cat-grid{ grid-template-columns:1fr;} .thread-stats{ display:none;} }

/* ---------- افزوده‌های نسخه ۲: جستجو، صفحه‌بندی، پروفایل، اکشن‌های پست ---------- */
.header-search input{
  padding:8px 14px; border:1px solid var(--border); border-radius:50px;
  background:var(--card); color:var(--text); font-family:inherit; font-size:.85rem; min-width:160px;
}
.user-chip{ font-size:.85rem; color:var(--muted); }

.avatar-img{
  width:42px; height:42px; border-radius:50%; flex-shrink:0;
  object-fit:contain; background:var(--card-2); box-sizing:border-box; padding:2px;
}
.avatar-img.big{ width:64px; height:64px; vertical-align:middle; margin-inline-end:10px; padding:3px; }

.post-actions{ margin-top:10px; display:flex; gap:14px; font-size:.8rem; }
.post-actions a{ color:var(--muted); }
.post-actions a:hover{ color:var(--accent); }

.pagination{ display:flex; gap:8px; margin-top:20px; flex-wrap:wrap; }
.page-link{
  padding:6px 13px; border-radius:8px; background:var(--card); border:1px solid var(--border-2);
  color:var(--text); font-size:.85rem;
}
.page-link.active{ background:var(--accent); color:#fff; border-color:var(--accent); }
body.dark-theme .page-link.active{ color:#12211a; }

.search-form{ display:flex; gap:10px; max-width:480px; }
.search-form input{
  flex:1; padding:10px 14px; border:1px solid var(--border); border-radius:10px;
  background:var(--card); color:var(--text); font-family:inherit;
}

@media(max-width:820px){ .header-search{ display:none; } }

/* ---------- افزوده‌های نسخه ۳: اعلان، تگ، عکس پست ---------- */
.tagcloud{ display:flex; flex-wrap:wrap; gap:8px; }

.notif-bell{ position:relative; font-size:1.3rem; color:var(--ink); }
.notif-badge{
  position:absolute; top:-6px; left:-8px; background:var(--highlight); color:#1f0909;
  font-size:.65rem; font-weight:800; border-radius:50%; min-width:16px; height:16px;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}

.post-image{ max-width:100%; border-radius:12px; margin-top:12px; display:block; }

.auth-form input[type="file"], .reply-form input[type="file"]{
  font-family:inherit; font-size:.85rem; color:var(--muted);
}

.badge-solved{ background:#d7f2df !important; color:#1e5631 !important; }
body.dark-theme .badge-solved{ background:#1f3b28 !important; color:#8cd7a3 !important; }

.role-badge{
  display:inline-block; font-size:.72rem; font-weight:700; color:var(--accent);
  background:var(--card-2); padding:1px 9px; border-radius:50px; margin-inline-start:6px;
}
.verified-check{ font-size:.75rem; }

/* ---------- آیکون تصویری دسته‌بندی ---------- */
.cat-icon img, .avatar img{
  width:100%; height:100%; object-fit:contain; border-radius:50%;
  box-sizing:border-box; padding:3px;
}
.cat-icon.inline{
  display:inline-flex; vertical-align:middle; margin-inline-end:6px;
  width:34px; height:34px; font-size:1.1rem;
}

/* ---------- افزوده‌های نسخه ۴: آواتار پیشرفت و دپارتمان‌های دانشنامه ---------- */
.edu-progress-hero{
  display:flex; align-items:center; gap:26px; background:var(--card); border:1px solid var(--border-2);
  border-radius:var(--radius); padding:26px; flex-wrap:wrap;
}
.edu-avatar-wrap{ position:relative; width:112px; height:112px; flex-shrink:0; padding-top:14px; }
.edu-avatar-wrap img{
  width:112px; height:112px; border-radius:50%; object-fit:contain; border:3px solid var(--card);
  background:var(--card-2); box-sizing:border-box; padding:4px;
  box-shadow:var(--shadow); display:block;
}
.edu-mastery-ring{
  position:absolute; top:0; left:0; right:0; height:8px; border-radius:999px;
  background:var(--card-2); overflow:hidden;
}
.edu-mastery-ring i{ display:block; height:100%; background:linear-gradient(90deg,#3b82f6,#60a5fa); border-radius:999px; }
.edu-tier-badge{
  position:absolute; bottom:0; left:-6px; width:42px; height:42px; border-radius:50%;
  background:var(--card); border:2px solid var(--border-2); display:flex; align-items:center; justify-content:center;
  font-size:1.35rem; box-shadow:0 4px 10px rgba(0,0,0,0.15);
}
.edu-progress-stats{ flex:1; min-width:220px; }
.edu-progress-stats h3{ font-size:1.15rem; margin-bottom:6px; }
.tier-label{ font-weight:700; color:var(--ink); }
.edu-overall-bar-bg{ width:100%; height:10px; border-radius:999px; background:var(--card-2); overflow:hidden; margin-top:10px; }
.edu-overall-bar-fill{ height:100%; border-radius:999px; background:var(--accent); }
.edu-progress-note{ font-size:.8rem; color:var(--muted); margin-top:8px; }

.dept-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.dept-card{ background:var(--card); border:1px solid var(--border-2); border-radius:14px; padding:16px 18px; transition:border-color .15s; }
.dept-card.selected{ border-color:var(--accent); }
.dept-card-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.dept-card-head label{ display:flex; align-items:center; gap:8px; font-weight:700; cursor:pointer; color:var(--ink); }
.dept-card-head input[type="checkbox"]{ width:16px; height:16px; }
.dept-card-tier{ font-size:1.15rem; }
.dept-bar-row{ margin-top:10px; font-size:.78rem; color:var(--muted); }
.dept-bar-bg{ width:100%; height:7px; border-radius:999px; background:var(--card-2); overflow:hidden; margin-top:3px; }
.dept-bar-fill{ height:100%; border-radius:999px; }
.dept-bar-fill.reading{ background:#22c55e; }
.dept-bar-fill.flashcard{ background:#3b82f6; }
.dept-bar-fill.exam{ background:#f5b942; }
.dept-bar-fill.overall{ background:var(--accent); }

/* --- Три-сегментная шкала прогресса (весовая) --- */
.vf-triseg{ display:flex; width:100%; height:12px; border-radius:999px; background:var(--card-2); overflow:hidden; margin-top:8px; }
.vf-triseg .seg{ height:100%; }
.vf-triseg .seg.green{ background:#22c55e; }
.vf-triseg .seg.blue{ background:#3b82f6; }
.vf-triseg .seg.gold{ background:#f5b942; }
.dept-bar-legend{ margin-top:6px; font-size:.78rem; color:var(--muted); }

/* Карта департамента: более заметное состояние selected */
.dept-card{ cursor:pointer; }
.dept-card.selected{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.dept-card-head input[type="checkbox"]{ display:none; }

@media(max-width:820px){ .dept-grid{ grid-template-columns:1fr; } }
@media(max-width:520px){ .edu-progress-hero{ flex-direction:column; align-items:flex-start; } }

/* ---------- آزمون دپارتمان (چهارگزینه‌ای) ---------- */
.exam-progress{ font-size:.85rem; color:var(--muted); margin-bottom:6px; }
.exam-progress-bar-bg{ width:100%; height:8px; border-radius:999px; background:var(--card-2); overflow:hidden; margin-bottom:22px; }
.exam-progress-bar-fill{ height:100%; border-radius:999px; background:var(--accent); transition:width .3s ease; }

.exam-question-box{ background:var(--card); border:1px solid var(--border-2); border-radius:var(--radius); padding:26px; }
.exam-question-text{ font-size:1.1rem; font-weight:700; color:var(--ink); margin-bottom:18px; line-height:1.8; }
.exam-options{ display:flex; flex-direction:column; gap:10px; }
.exam-option{
  text-align:right; padding:13px 16px; border-radius:12px; border:1px solid var(--border);
  background:var(--bg); color:var(--text); font-family:inherit; font-size:.95rem; cursor:pointer;
  transition:border-color .15s, background .15s;
}
.exam-option:hover{ border-color:var(--accent); }
.exam-option.chosen{ border-color:var(--accent); background:var(--card-2); font-weight:700; }

.exam-nav{ display:flex; justify-content:space-between; margin-top:20px; }
.exam-nav button:disabled{ opacity:.4; cursor:not-allowed; }

.exam-result{ text-align:center; background:var(--card); border:1px solid var(--border-2); border-radius:var(--radius); padding:32px 20px; }
.exam-result-icon{ font-size:2.2rem; }
.exam-result-score{ font-size:2.4rem; font-weight:800; color:var(--ink); margin-top:6px; }
.exam-result-label{ color:var(--muted); margin:10px 0 18px; }
.exam-result.passed .exam-result-score{ color:var(--accent); }

.exam-review-item{ border:1px solid var(--border-2); border-radius:12px; padding:14px 16px; margin-bottom:10px; }
.exam-review-item.correct{ border-color:#8cd7a3; }
.exam-review-item.incorrect{ border-color:#f3b3ac; }
.exam-review-q{ font-weight:700; color:var(--ink); margin-bottom:6px; }
.exam-review-a{ font-size:.85rem; color:var(--muted); }
.exam-review-correct{ font-size:.85rem; color:var(--accent); margin-top:4px; font-weight:700; }
/* ---------- Reddit-style Forum Modernization ---------- */
.forum-layout{
  display:grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap:28px;
  align-items:start;
}
@media(max-width:1080px){ .forum-layout{ grid-template-columns:1fr; } }

.sidebar{
  position:sticky;
  top:84px;
}
.sidebar-card{
  background:var(--card);
  border:1px solid var(--border-2);
  border-radius:var(--radius);
  padding:18px;
  margin-bottom:16px;
}
.sidebar-card h4{
  font-size:1rem;
  margin-bottom:12px;
  color:var(--ink);
}
.sidebar-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sidebar-list a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  color:var(--text);
  font-size:.92rem;
  transition:background .15s;
}
.sidebar-list a:hover{
  background:var(--card-2);
}
.sidebar-list .cat-count{
  margin-inline-start:auto;
  font-size:.7rem;
  color:var(--muted);
  font-weight:600;
}

.sort-bar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
  font-size:.9rem;
}
.sort-bar .chip{
  padding:6px 12px;
  border-radius:999px;
  background:var(--card);
  border:1px solid var(--border-2);
  color:var(--muted);
  cursor:pointer;
  font-weight:600;
}
.sort-bar .chip.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

/* Thread item reddit style */
.thread-list-reddit{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.thread-item-reddit{
  display:grid;
  grid-template-columns: 48px 1fr auto;
  gap:12px;
  align-items:start;
  background:var(--card);
  border:1px solid var(--border-2);
  border-radius:14px;
  padding:14px 16px;
  color:inherit;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.thread-item-reddit:hover{
  box-shadow:var(--shadow);
  transform:translateY(-1px);
  border-color:var(--border);
}
.thread-votes{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  color:var(--muted);
  font-size:.8rem;
  min-width:36px;
}
.thread-votes .count{
  font-weight:800;
  color:var(--ink);
  font-size:1rem;
}
.thread-main{
  min-width:0;
}
.thread-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.thread-item-reddit h4{
  font-size:1.02rem;
  font-weight:800;
  color:var(--ink);
  margin:0;
}
.thread-meta-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
  font-size:.78rem;
  color:var(--muted);
}
.thread-meta-row .dot{
  width:4px;height:4px;border-radius:50%;background:var(--muted);display:inline-block;
}
.thread-flair{
  font-size:.68rem;
  font-weight:700;
  padding:2px 8px;
  border-radius:50px;
  background:var(--card-2);
  color:var(--accent);
}
.thread-flair.pinned{ background:#ffe08a; color:#1f0909; }
.thread-flair.solved{ background:#d7f2df; color:#1e5631; }
.thread-snippet{
  font-size:.85rem;
  color:var(--muted);
  margin-top:4px;
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.thread-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  font-size:.72rem;
  color:var(--muted);
  white-space:nowrap;
  padding-inline-start:8px;
}
.thread-actions .comment-count{
  font-weight:700;
  color:var(--ink);
}

/* Category hero */
.category-hero{
  background:var(--card);
  border:1px solid var(--border-2);
  border-radius:var(--radius);
  padding:22px 24px;
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:22px;
}
.category-hero .cat-icon.big{
  width:64px;height:64px;font-size:1.8rem;
}
.category-hero h2{
  margin:0;
  font-size:1.4rem;
}
.category-hero p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.92rem;
}

/* Post thread reddit style */
.post-thread{
  background:var(--card);
  border:1px solid var(--border-2);
  border-radius:var(--radius);
  padding:20px 22px;
  margin-bottom:14px;
}
.post-header{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.post-header .avatar-img{
  width:40px;height:40px;
}
.post-author-meta{
  font-size:.85rem;
  color:var(--muted);
}
.post-body{ margin-top:10px; line-height:1.9; font-size:1rem; }
.post-actions-bar{
  margin-top:12px;
  display:flex;
  gap:14px;
  font-size:.82rem;
  color:var(--muted);
}

/* Quick reply sticky */
.reply-sticky{
  position:sticky;
  bottom:80px;
  z-index:10;
  background:var(--card);
  border:1px solid var(--border-2);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
}
.reply-sticky textarea{
  width:100%;
  min-height:70px;
  resize:vertical;
}

/* Animations */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}
.thread-item-reddit{ animation:fadeUp .25s ease both; }

/* Small tweaks for modern feel */
.cat-card{
  border-radius:18px;
}
.cat-card:hover{
  transform:translateY(-4px);
}
.section-head h2{
  font-size:1.35rem;
}

/* ---------- Enhanced Exam UI ---------- */
.exam-header {
  margin-bottom: 16px;
}

.exam-navigator {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 8px;
  background: var(--card-2);
  border-radius: 8px;
  border: 1px solid var(--border-2);
}

.exam-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-nav-btn:hover {
  border-color: var(--accent);
  background: var(--card);
}

.exam-nav-btn.current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.exam-nav-btn.answered {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

.exam-nav-btn.marked {
  border-color: var(--warning);
  background: var(--warning-bg);
  color: var(--warning);
}

.exam-nav-btn.answered.marked {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

.exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-2);
}

.exam-actions .exam-nav {
  flex: 1;
  min-width: 200px;
}

#exam-mark-review {
  padding: 8px 14px;
  font-size: .8rem;
  white-space: nowrap;
}

#exam-mark-review:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Admin import/ai page styles */
.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .9rem;
}

.msg.success { background: var(--success-bg); color: var(--success); }
.msg.error { background: var(--danger-bg); color: var(--danger); }
.msg.warning { background: var(--warning-bg); color: var(--warning); }

.badge {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.results-scroll {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border-2);
  border-radius: 8px;
}

.ai-question-card {
  transition: box-shadow .15s, border-color .15s;
}

.ai-question-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

.hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 4px;
}

.modal {
  animation: fadeIn .15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal > div {
  animation: slideUp .2s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

