/* فارسی ۱۰۰ – آزمون و تکالیف (mobile-first، با حالت شب) */
.f100c-exam, .f100c-hw, .f100c-list, .f100c-table, .f100c-review, .f100c-box {
	--c-bg: #fff; --c-fg: #1f2933; --c-muted: #667085; --c-line: #e4e7ec; --c-brand: #0f766e; --c-brand-ink: #fff;
	--c-soft: #f2f7f6; --c-warn: #b54708; --c-bad: #b42318; --c-ok: #067647;
	direction: rtl; text-align: right; color: var(--c-fg); font-family: inherit; line-height: 1.9;
}
html.dark .f100c-exam, html.dark .f100c-hw, html.dark .f100c-list, html.dark .f100c-table, html.dark .f100c-review, html.dark .f100c-box,
[data-f100-theme="dark"] .f100c-exam, [data-f100-theme="dark"] .f100c-hw, [data-f100-theme="dark"] .f100c-box, [data-f100-theme="dark"] .f100c-table, [data-f100-theme="dark"] .f100c-review {
	--c-bg: #111827; --c-fg: #e5e7eb; --c-muted: #9ca3af; --c-line: #374151; --c-brand: #2dd4bf; --c-brand-ink: #062a27; --c-soft: #1f2937;
}
.f100c-exam { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 14px; padding: 16px; position: relative; }
.f100c-head h3 { margin: 0 0 6px; }
.f100c-facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0; padding: 0; }
.f100c-facts li { background: var(--c-soft); border-radius: 999px; padding: 2px 12px; font-size: .9em; }
.f100c-rules { background: var(--c-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.f100c-rules ul { margin: 6px 0 0; padding-right: 18px; }
.f100c-btn { display: inline-block; background: var(--c-brand); color: var(--c-brand-ink); border: 0; border-radius: 10px; padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; }
.f100c-btn:disabled { opacity: .55; cursor: wait; }
.f100c-btn-ghost { background: transparent; color: var(--c-brand); border: 1px solid var(--c-brand); }
.f100c-msg { color: var(--c-bad); margin-top: 8px; min-height: 1.5em; }
.f100c-box { background: var(--c-soft); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.f100c-ok { border-right: 4px solid var(--c-ok); }
.f100c-err { border-right: 4px solid var(--c-bad); }
.f100c-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: 8px 0; margin: -4px 0 10px; }
.f100c-timer { font-weight: 800; font-size: 1.15em; font-variant-numeric: tabular-nums; }
.f100c-timer.f100c-low { color: var(--c-bad); }
.f100c-save, .f100c-prog { color: var(--c-muted); font-size: .9em; }
.f100c-bar .f100c-submit { margin-right: auto; padding: 6px 16px; min-height: 38px; }
.f100c-warnbox:not(:empty) { background: #fef0c7; color: #7a2e0e; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.f100c-q { border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; position: relative; background: var(--c-bg); }
.f100c-qn { display: inline-block; background: var(--c-brand); color: var(--c-brand-ink); border-radius: 8px; padding: 0 10px; font-weight: 700; margin-bottom: 6px; }
.f100c-stem p { margin: .3em 0; }
.f100c-pts { color: var(--c-muted); display: block; }
.f100c-opts { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: o; }
.f100c-opts li { counter-increment: o; margin: 6px 0; }
.f100c-opts label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--c-line); border-radius: 10px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.f100c-opts label::before { content: counter(o, persian) ")"; font-weight: 700; color: var(--c-muted); }
.f100c-opts input { margin-top: .45em; }
.f100c-opts label:has(input:checked) { border-color: var(--c-brand); background: var(--c-soft); }
.f100c-clear { background: none; border: 0; color: var(--c-muted); font: inherit; font-size: .85em; cursor: pointer; padding: 4px 0; }
.f100c-q textarea, .f100c-hw textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--c-line); border-radius: 10px; padding: 10px; font: inherit; background: var(--c-bg); color: var(--c-fg); }
.f100c-next { width: 100%; }
body.f100c-lock .f100c-stem, body.f100c-lock .f100c-opts { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.f100c-wm { position: fixed; inset: 0; pointer-events: none; z-index: 20; display: flex; flex-wrap: wrap; gap: 70px 50px; padding: 30px; overflow: hidden; opacity: .07; transform: rotate(-24deg) scale(1.4); font-size: 15px; font-weight: 700; color: #000; }
html.dark .f100c-wm, [data-f100-theme="dark"] .f100c-wm { color: #fff; opacity: .08; }
.f100c-fs { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, .92); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
@media print { .f100c-exam, .f100c-wm { display: none !important; } }
/* review */
.f100c-review .f100c-right { border-right: 4px solid var(--c-ok); }
.f100c-review .f100c-wrong { border-right: 4px solid var(--c-bad); }
.f100c-review .is-right { color: var(--c-ok); font-weight: 700; }
.f100c-review .is-mine::after { content: " ← پاسخ شما"; color: var(--c-muted); font-weight: 400; }
.f100c-explain { background: var(--c-soft); border-radius: 8px; padding: 6px 10px; }
/* tables */
.f100c-table { width: 100%; border-collapse: collapse; }
.f100c-table th, .f100c-table td { border-bottom: 1px solid var(--c-line); padding: 8px; text-align: right; }
.f100c-tag { background: var(--c-soft); border-radius: 999px; padding: 0 10px; font-size: .85em; }
.f100c-item { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.f100c-due { color: var(--c-warn); font-weight: 700; }
@media (min-width: 720px) { .f100c-exam { padding: 22px 26px; } }
/* v1.1: locked exams and join form */
.f100c-locked { border-right: 4px solid var(--c-brand); }
.f100c-locked .f100c-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.f100c-paynote { background: var(--c-bg); border: 1px dashed var(--c-line); border-radius: 10px; padding: 8px 12px; font-size: .92em; }
.f100c-hw input[type="text"] { width: 100%; box-sizing: border-box; border: 1px solid var(--c-line); border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--c-bg); color: var(--c-fg); }
/* v1.3: gold page */
.f100c-gold { border: 1px solid var(--c-line); border-radius: 14px; padding: 16px; background: var(--c-bg); }
.f100c-gold h3 { margin-top: 0; }
.f100c-gold-list { margin: 0 0 10px; padding-right: 20px; }
.f100c-gold-list li { margin: 4px 0; }
.f100c-gold-meta { background: var(--c-soft); border-radius: 10px; padding: 8px 12px; }
