.cl { color: #f2f2f2; max-width: 100%; overflow-wrap: anywhere; color-scheme: dark; }
.cl[data-step="1"] [data-panel="2"],
.cl[data-step="1"] #clOut,
.cl[data-step="2"] [data-panel="1"],
.cl[data-step="2"] #clOut,
.cl[data-step="3"] .cl-form { display: none; }
.cl-steps-nav .on { background: #d9ff00; color: #050505; border-color: #d9ff00; }
.cl * { box-sizing: border-box; }
.cl button, .cl input, .cl textarea, .cl select { font-family: inherit; color: inherit; }
.cl-lead { margin: 0 0 18px; line-height: 1.8; color: #d4d4d4; max-width: 68ch; }
.cl-grid { display: grid; gap: 16px; }
@media (min-width: 860px) {
	.cl-grid-2 { grid-template-columns: 1fr 1fr; }
}
.cl-box {
	background: #141414;
	border: 1px solid rgba(242, 242, 242, 0.12);
	border-radius: 14px;
	padding: 16px;
	min-width: 0;
}
.cl-aims { display: grid; gap: 8px; }
@media (min-width: 720px) {
	.cl-aims { grid-template-columns: 1fr 1fr 1fr; }
}
.cl-aim {
	background: #0c0c0c;
	color: #f2f2f2;
	border: 1px solid rgba(242, 242, 242, 0.35);
	border-radius: 10px;
	padding: 12px;
	min-height: 44px;
	text-align: right;
	cursor: pointer;
	font-weight: 700;
}
.cl-aim.on { background: #d9ff00; color: #050505; border-color: #d9ff00; }
body.light-mode .cl-aim { background: #fff; color: #1a1214; border-color: rgba(5, 5, 5, 0.22); }
body.light-mode .cl-aim.on { background: #d9ff00; color: #050505; }
.cl-help { margin: 0 0 12px; color: #c8c8c8; line-height: 1.7; font-size: 0.95rem; }
.cl label { display: block; margin: 10px 0 6px; font-weight: 700; }
.cl input[type="text"], .cl input[type="search"], .cl select, .cl textarea, .cl input[type="file"] {
	width: 100%;
	max-width: 100%;
	background: #0c0c0c;
	color: #f2f2f2;
	-webkit-text-fill-color: #f2f2f2;
	border: 1px solid rgba(242, 242, 242, 0.28);
	border-radius: 10px;
	padding: 12px;
	line-height: 1.6;
	font-size: 16px;
	min-height: 44px;
	-webkit-appearance: none;
	appearance: none;
}
.cl input[type="search"]::-webkit-search-decoration,
.cl input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.cl input::placeholder, .cl textarea::placeholder { color: #9ca3af; opacity: 1; }
.cl textarea { min-height: 140px; resize: vertical; }
.cl-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.cl-btn {
	background: #d9ff00;
	color: #050505;
	border: 0;
	border-radius: 10px;
	padding: 12px 16px;
	min-height: 44px;
	font-weight: 800;
	cursor: pointer;
}
.cl-btn:focus-visible, .cl select:focus-visible, .cl textarea:focus-visible, .cl input:focus-visible, .cl-pills button:focus-visible, .cl-links a:focus-visible {
	outline: 2px solid #d9ff00;
	outline-offset: 2px;
}
.cl-btn.ghost {
	background: #141414;
	color: #f2f2f2;
	border: 1px solid rgba(242, 242, 242, 0.45);
	font-weight: 700;
}
.cl-note {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(138, 9, 23, 0.28);
	line-height: 1.7;
}
.cl-chain { margin: 8px 0 0; padding-right: 1.2em; line-height: 1.8; }
.cl-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cl-count {
	background: #1c1c1c;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 0.95rem;
}
.cl-item, .cl-course, .cl-step {
	border-top: 1px solid rgba(242, 242, 242, 0.1);
	padding: 12px 0;
	min-width: 0;
}
.cl-item h3, .cl-step h3, .cl-course h3 {
	display: block;
	margin: 0 0 4px;
	font-size: 1.05rem;
	line-height: 1.6;
	font-weight: 800;
	overflow-wrap: anywhere;
}
.cl-meta { color: #d0d0d0; line-height: 1.7; margin: 0 0 8px; }
.cl-quote {
	margin: 0 0 8px;
	padding: 8px 12px;
	border-inline-start: 3px solid #d9ff00;
	color: #f2f2f2;
	line-height: 1.7;
	background: #101010;
	overflow-wrap: anywhere;
}
.cl-split { display: grid; gap: 12px; }
@media (min-width: 800px) {
	.cl-split { grid-template-columns: 1fr 1fr; }
}
.cl-split h3 { margin: 0 0 6px; font-size: 1rem; }
.cl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-pills button {
	background: #0c0c0c;
	border: 1px solid rgba(242, 242, 242, 0.35);
	border-radius: 999px;
	padding: 10px 14px;
	min-height: 44px;
	cursor: pointer;
}
.cl-pills button.on { border-color: #d9ff00; color: #d9ff00; }
.cl-badge {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	color: #d9ff00;
}
.cl-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px;
	margin-top: 8px;
}
.cl a:not(.cl-seat) {
	color: #D9FF00;
	-webkit-text-fill-color: #D9FF00;
	font-weight: 700;
	text-decoration: none;
}
.cl a:not(.cl-seat):visited {
	color: #D9FF00;
	-webkit-text-fill-color: #D9FF00;
}
.cl-links a:not(.cl-seat) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid rgba(217, 255, 0, 0.55);
	border-radius: 10px;
	line-height: 1.4;
}
body.light-mode .cl a:not(.cl-seat),
body.light-mode .cl a:not(.cl-seat):visited {
	color: #8A0917;
	-webkit-text-fill-color: #8A0917;
}
body.light-mode .cl-links a:not(.cl-seat) {
	border-color: rgba(138, 9, 23, 0.45);
}
.cl a.cl-seat { background: #d9ff00; color: #050505; font-weight: 800; text-decoration: none; border-radius: 10px; padding: 12px 16px; min-height: 44px; }
.cl-error { color: #ffb4b4; line-height: 1.7; }
@media (max-width: 720px) {
	.cl-box { padding: 14px; }
	.cl-btn { flex: 1 1 calc(50% - 8px); }
	#clRun { flex-basis: 100%; }
	.cl-pills button { flex: 1 1 100%; }
}
@media print {
	header, footer, nav, .announce-bar, .tool-intro, .tool-section, .tool-about, .section-head, .hero { display: none !important; }
	.cl-form, .cl-row, .no-print { display: none !important; }
	.cl, .cl-box, .cl-quote, .cl-count, .cl-meta, .cl-help, .cl-note {
		color: #111;
		background: #fff;
	}
	.cl-links a, .cl-badge { color: #111; -webkit-text-fill-color: #111; border-color: #111; }
}

/* الوضع الفاتح. الألوان أعلاه للوحة الداكنة، وعلى العظمي تختفي. */
body.light-mode .cl { color: #1a1214; color-scheme: light; }
body.light-mode .cl-lead,
body.light-mode .cl-help,
body.light-mode .cl-meta { color: #3a3336; }
body.light-mode .cl-box {
	background: #ffffff;
	border-color: rgba(5, 5, 5, 0.12);
}
body.light-mode .cl input[type="text"],
body.light-mode .cl input[type="search"],
body.light-mode .cl select,
body.light-mode .cl textarea,
body.light-mode .cl input[type="file"] {
	background: #ffffff;
	color: #1a1214;
	-webkit-text-fill-color: #1a1214;
	border-color: rgba(5, 5, 5, 0.22);
}
body.light-mode .cl-btn {
	background: #D9FF00;
	color: #050505;
	-webkit-text-fill-color: #050505;
}
body.light-mode .cl-btn.ghost {
	background: #1a1214;
	color: #F2F2F2;
	-webkit-text-fill-color: #F2F2F2;
	border-color: #1a1214;
}
body.light-mode .cl-note {
	background: rgba(138, 9, 23, 0.08);
	color: #6E0712;
}
body.light-mode .cl-error { color: #8A0917; }
body.light-mode .cl-count { background: #f3ece8; color: #1a1214; }
body.light-mode .cl-quote {
	color: #1a1214;
	background: #f6f3f1;
	border-inline-start-color: #8A0917;
}
body.light-mode .cl-item,
body.light-mode .cl-course,
body.light-mode .cl-step { border-top-color: rgba(5, 5, 5, 0.1); }
body.light-mode .cl-pills button {
	background: #ffffff;
	color: #1a1214;
	border-color: rgba(5, 5, 5, 0.22);
}
body.light-mode .cl-pills button.on { color: #6E0712; border-color: #8A0917; }
body.light-mode .cl-badge { color: #6E0712; }
