/* ==========================================================================
   שופיאל (Shofiel AI AMIRNET Tutor) — מערכת העיצוב והכרטיסיות האינטראקטיביות
   מבוסס באופן מלא על שפת העיצוב של דף הנחיתה (landing-page-v2.php):
   - פלטת נייר אקדמית וטקטילית: --paper, --paper2, --ink, --mark
   - צלליות אופסט שטוחות (-10px 10px 0 var(--paper2)), ללא טשטוש רך
   - כרטיסי שאלת אמירנ"ט במבנה .hq עם טיפוגרפיה חדה והדגשת קווים
   - בועות שיחה: משתמש בדיו עמוק (--ink), שופיאל על גבי נייר מגוון (--paper2)
   ========================================================================== */

:root {
	--paper: #FFFFFF;
	--paper2: #F0EAE3;
	--ink: #1F1914;
	--ink2: #62564B;
	--ink3: #7B6D60;
	--rule: #B6A89A;
	--mark: #E07818;
	--mark-ui: #BE6313;
	--mark-d: #964F13;
	--ok: #33734D;
	--ok-bg: #DCEDE2;
	--ok-ink: #1B3D29;
	--no: #A33328;
	--no-bg: #F7DEDB;
	--no-ink: #571A14;

	/* תאימות לרכיבי המערכת הקיימים */
	--primary: var(--mark);
	--primary-hover: var(--mark-ui);
	--surface: #FFFFFF;
	--surface-subtle: var(--paper2);
	--line: var(--rule);
	--line-soft: var(--rule);
	--text: var(--ink);
	--muted: var(--ink2);
	--color-bg: #FFFFFF;
}

/* כפיית רקע לבן צח ונקי ואיפוס מלא של מעטפת העמוד למניעת חיתוך וגלישה */
html:has(.shufiel),
body:has(.shufiel),
body.page-id-262,
html:has(body.page-id-262) {
	height: 100vh !important;
	height: 100dvh !important;
	max-height: 100vh !important;
	max-height: 100dvh !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	position: fixed !important;
	width: 100% !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: #FFFFFF !important;
	background-color: #FFFFFF !important;
}

body.page-id-262 #page,
body.page-id-262 #content,
body.page-id-262 .ast-container,
body.page-id-262 #primary,
body.page-id-262 #main,
body.page-id-262 article,
body.page-id-262 .entry-content,
body:has(.shufiel) #page,
body:has(.shufiel) #content,
body:has(.shufiel) .ast-container,
body:has(.shufiel) #primary,
body:has(.shufiel) #main,
body:has(.shufiel) article,
body:has(.shufiel) .entry-content {
	height: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	overflow: hidden !important;
	background: #FFFFFF !important;
	background-color: #FFFFFF !important;
}

body.page-id-262 .entry-header,
body:has(.shufiel) .entry-header,
body.page-id-262 #masthead,
body:has(.shufiel) #masthead,
body.page-id-262 #colophon,
body:has(.shufiel) #colophon {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

@media (prefers-color-scheme: dark) {
	body.page-id-262,
	body:has(.shufiel),
	.hay.shufiel,
	.shufiel,
	.shufiel-content,
	main.shufiel-content,
	.site-content,
	#content,
	#primary {
		background: #FFFFFF !important;
		background-color: #FFFFFF !important;
		color: #1F1914 !important;
	}
}

.hay.shufiel {
	height: 100% !important;
	max-height: 100% !important;
	min-height: 0;
	overflow: hidden;
	background: #FFFFFF !important;
	color: var(--ink, #1F1914);
	font-family: 'Heebo', 'Assistant', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	direction: rtl;
	position: relative;
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 100vw;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .shufiel,
body.admin-bar .shufiel-sidebar,
body.admin-bar .shufiel-content {
	height: calc(100vh - 32px) !important;
	height: calc(100dvh - 32px) !important;
	max-height: calc(100vh - 32px) !important;
	max-height: calc(100dvh - 32px) !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .shufiel,
	body.admin-bar .shufiel-sidebar,
	body.admin-bar .shufiel-content {
		height: calc(100vh - 46px) !important;
		height: calc(100dvh - 46px) !important;
		max-height: calc(100vh - 46px) !important;
		max-height: calc(100dvh - 46px) !important;
	}
}

.shufiel .hay-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ── סרגל צד ימין: שיחות אחרונות (Right Sidebar) ───────────────────── */
.shufiel-sidebar {
	width: 310px;
	min-width: 310px;
	flex-shrink: 0;
	background: #FBF9F6;
	border-left: 2px solid var(--ink, #1F1914);
	height: 100%;
	max-height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1000;
	box-sizing: border-box;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shufiel-sidebar-header {
	flex-shrink: 0;
	padding: 16px 16px 14px;
	border-bottom: 2px solid var(--ink, #1F1914);
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
}

/* כפתור חזרה למרכז הפיקוד בראש סרגל הצד הימני */
.sidebar-hub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 14px;
	background: #FFFFFF !important;
	border: 1.5px solid #E2D9CD !important;
	box-shadow: 2px 2px 0 #E2D9CD !important;
	border-radius: 10px !important;
	font-size: 0.84375rem;
	font-weight: 800;
	color: #1F1914 !important;
	text-decoration: none !important;
	cursor: pointer;
	box-sizing: border-box;
	transition: all 0.16s ease;
}

.sidebar-hub-btn:hover {
	background: #FFF4E5 !important;
	border-color: #E07818 !important;
	color: #E07818 !important;
	box-shadow: 2px 2px 0 #E07818 !important;
	transform: translateY(-1px);
}

.sidebar-hub-btn .hub-btn-icon {
	flex-shrink: 0;
	color: currentColor;
	transition: transform 0.15s ease;
}

.sidebar-hub-btn:hover .hub-btn-icon {
	transform: translateX(-3px);
}

.sidebar-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 6px;
}

.sidebar-heading {
	font-size: 1.0625rem;
	font-weight: 900;
	color: var(--ink, #1F1914);
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.btn-sidebar-new.shufiel-new {
	padding: 6px 14px;
	font-size: 0.8125rem;
	font-weight: 800;
	border-radius: 8px;
	background: var(--mark, #E07818) !important;
	border: 2px solid var(--ink, #1F1914);
	box-shadow: -2px 2px 0 var(--ink, #1F1914);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: #FFFFFF !important;
	text-decoration: none;
	transition: all 0.15s ease;
}

.btn-sidebar-new.shufiel-new:hover {
	background: var(--mark-ui, #BE6313) !important;
	transform: translateY(-1px);
	box-shadow: -3px 3px 0 var(--ink, #1F1914);
}

/* שורת חיפוש שיחות */
.sidebar-search-box {
	position: relative;
	margin: 12px 0 6px;
	width: 100%;
}

.sidebar-search-input {
	width: 100%;
	height: 38px;
	border: 2px solid var(--ink, #1F1914) !important;
	border-radius: 8px !important;
	background: #FFFFFF !important;
	padding: 0 12px 0 34px !important;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ink, #1F1914) !important;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sidebar-search-input:focus {
	box-shadow: -2px 2px 0 var(--mark, #E07818);
}

.sidebar-search-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink3, #7B6D60);
	pointer-events: none;
}

.shufiel-sidebar-list {
	flex: 1;
	overflow-y: auto;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--rule, #B6A89A) transparent;
}

.sidebar-session-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.session-group-title {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--ink3, #7B6D60);
	margin: 8px 4px 2px;
}

.sidebar-session-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	background: #FFFFFF;
	border: 1.5px solid var(--ink, #1F1914);
	box-shadow: 2px 2px 0 rgba(31, 25, 20, 0.08);
	border-radius: 8px;
	cursor: pointer;
	text-align: right;
	position: relative;
	transition: all 0.16s ease;
}

.sidebar-session-item:hover {
	border-color: var(--ink, #1F1914);
	box-shadow: 3px 3px 0 var(--ink, #1F1914);
	transform: translateY(-1px);
}

.sidebar-session-item.is-active {
	background: #FEE7C8 !important;
	border: 2px solid var(--ink, #1F1914) !important;
	box-shadow: 3px 3px 0 var(--ink, #1F1914) !important;
}

.sidebar-session-item.is-active .session-title {
	color: var(--ink, #1F1914);
	font-weight: 900;
}

.session-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.session-title {
	font-size: 0.84375rem;
	font-weight: 700;
	color: var(--ink, #1F1914);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
}

.session-del-btn {
	opacity: 0;
	background: transparent;
	border: none;
	color: var(--ink3, #7B6D60);
	cursor: pointer;
	padding: 2px;
	border-radius: 2px;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar-session-item:hover .session-del-btn {
	opacity: 0.7;
}

.session-del-btn:hover {
	opacity: 1 !important;
	color: var(--no, #A33328);
	background: var(--no-bg, #F7DEDB);
}

.session-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.session-active-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.6875rem;
	font-weight: 800;
	color: var(--mark, #E07818);
}

.session-active-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mark, #E07818);
	display: inline-block;
}

.session-date {
	font-size: 0.6875rem;
	color: var(--ink3, #7B6D60);
	font-weight: 600;
}

.shufiel-sidebar-footer {
	flex-shrink: 0;
	padding: 12px 14px 18px;
	background: #FFFFFF;
	border-top: 2px solid var(--ink, #1F1914);
	box-sizing: border-box;
}

.sidebar-user-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #FEE7C8 !important;
	border: 2px solid var(--ink, #1F1914) !important;
	border-radius: 12px !important;
	padding: 8px 12px;
	box-shadow: 3px 3px 0 var(--ink, #1F1914) !important;
	box-sizing: border-box;
	width: 100%;
}

.user-avatar-badge {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	background: #EAE5F8;
	border: 2px solid var(--ink, #1F1914);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9375rem;
	font-weight: 900;
	color: var(--ink, #1F1914);
	flex-shrink: 0;
	box-shadow: 1px 1px 0 var(--ink, #1F1914);
}

.sidebar-user-pill .user-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
	overflow: visible;
	text-align: right;
}

.sidebar-user-pill .user-name {
	font-size: 0.84375rem;
	font-weight: 900;
	color: var(--ink, #1F1914);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-user-pill .user-desc {
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--ink2, #62564B);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.badge-active {
	margin-inline-start: auto;
	margin-right: 0;
	background: #B7E4C7 !important;
	color: #1B3D29 !important;
	border: 1.5px solid var(--ink, #1F1914);
	border-radius: 4px;
	font-size: 0.625rem;
	font-weight: 900;
	padding: 3px 7px;
	flex-shrink: 0;
	letter-spacing: 0.04em;
	box-shadow: 1px 1px 0 var(--ink, #1F1914);
}

/* ── אזור הצ'אט הראשי (Main Content) — גובה מלא וגלילה פנימית בלבד ──────── */
.shufiel-content {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
	margin: 0;
	background: #FFFFFF !important;
	box-sizing: border-box;
	position: relative;
}

.shufiel-sidebar-toggle {
	display: none;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	background: var(--paper2, #F0EAE3);
	border: 1.5px solid var(--rule, #B6A89A);
	border-radius: 3px;
	color: var(--ink, #1F1914);
	cursor: pointer;
	margin-left: 6px;
}

/* ── כותרת שופיאל (Header) — מקובעת בראש ואינה נעלמת לעולם ─────────── */
.shufiel-head {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 28px;
	margin: 0;
	width: 100%;
	max-width: 100%;
	background: #FFFFFF !important;
	border-bottom: 2px solid var(--ink, #1F1914) !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	z-index: 10;
	box-sizing: border-box;
}

.shufiel-head-start {
	display: flex;
	align-items: center;
	gap: 16px;
}

.shufiel-avatar {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	flex: none;
	background: #FFF4E5 !important;
	border: 2px solid var(--ink, #1F1914) !important;
	box-shadow: 2.5px 2.5px 0 var(--ink, #1F1914) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 2px;
	box-sizing: border-box;
}

.shufiel-avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	image-rendering: pixelated;
	display: block;
	animation: shufielHeadFloat 3s ease-in-out infinite;
}

@keyframes shufielHeadFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px) scale(1.03); }
}

.msg-author-avatar {
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	background: #FFF4E5 !important;
	border: 1.5px solid var(--ink, #1F1914) !important;
	object-fit: contain !important;
	image-rendering: pixelated;
	flex-shrink: 0 !important;
	padding: 1px !important;
	display: inline-block !important;
	vertical-align: middle !important;
}

.shufiel-ai-chip {
	display: inline-flex !important;
	align-items: center !important;
	font-size: 0.6875rem !important;
	font-weight: 800 !important;
	padding: 1px 7px !important;
	border-radius: 6px !important;
	background: #FFF4E5 !important;
	color: #E07818 !important;
	border: 1px solid #E07818 !important;
	margin-right: 4px !important;
	vertical-align: middle !important;
}

.shufiel-id {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.shufiel-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.shufiel-name {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--ink, #1F1914);
	letter-spacing: -0.02em;
}

.shufiel-badge {
	font-size: 0.75rem;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: 20px;
	background: #EAE5F8;
	color: #5E43A5;
	border: 1.5px solid #8A70D6;
}

.shufiel-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--ink3, #7B6D60);
}

.shufiel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2EC4B6;
	display: block;
}

.shufiel-dot.is-active {
	background: #2EC4B6;
	box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25);
}

.shufiel-dot.is-standby {
	background: var(--mark, #E07818);
}

.shufiel-head-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.shufiel-streak-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	background: #FEE75C;
	border: 2px solid var(--ink, #1F1914);
	box-shadow: 3px 3px 0 var(--ink, #1F1914);
	color: var(--ink, #1F1914);
	font-size: 0.84375rem;
	font-weight: 900;
}

.btn-head-new {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 800;
	font-size: 0.84375rem;
	cursor: pointer;
	background: #FFFFFF;
	color: var(--ink, #1F1914);
	border: 2px solid var(--ink, #1F1914);
	box-shadow: 3px 3px 0 var(--ink, #1F1914);
	transition: all 0.16s ease;
}

.btn-head-new:hover {
	background: var(--paper2, #F0EAE3);
	transform: translateY(-1px);
	box-shadow: 4px 4px 0 var(--ink, #1F1914);
}

.btn-head-new .btn-new-plus {
	font-size: 1rem;
	font-weight: 900;
	line-height: 1;
}

/* ── יומן השיחה (Chat Surface & Messages) — קנבס מנוקד טקטילי ──── */

.shufiel-log {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 28px 32px 14px;
	background-color: #FBF9F6 !important;
	background-image: none !important;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--rule, #B6A89A) transparent;
	box-sizing: border-box;
}

.shufiel-log::-webkit-scrollbar {
	width: 6px;
}

.shufiel-log::-webkit-scrollbar-thumb {
	background: var(--rule, #B6A89A);
	border-radius: 4px;
}

.shufiel-log .chat-message {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 960px;
	box-sizing: border-box;
	transition: all 0.15s ease;
}

.shufiel-log .chat-message.bot-message {
	border-radius: 18px !important;
	border: 1.5px solid var(--ink, #1F1914) !important;
	padding: 22px 26px !important;
	background: #FFFFFF !important;
	box-shadow: 3px 3px 0 var(--ink, #1F1914) !important;
}

/* הודעת המשתמש: בועה מעוגלת ורכה בגוון אספרסו עמוק */
.shufiel-log .chat-message.user-message {
	align-self: flex-start !important;
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: 65% !important;
	width: auto !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.user-bubble-wrapper {
	display: inline-flex;
	align-items: flex-end;
	gap: 10px;
	direction: rtl;
}

.user-bubble-box {
	background: #EFE8DF !important;
	color: #1F1914 !important;
	border: 1.5px solid #D8CFC4 !important;
	border-radius: 18px 18px 4px 18px !important;
	padding: 12px 20px !important;
	box-shadow: 2px 2px 0 rgba(31, 25, 20, 0.06) !important;
}

.user-bubble-box .bubble-content,
.user-bubble-box .bubble-content * {
	color: #1F1914 !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.55 !important;
}

.user-bubble-time {
	font-size: 0.71875rem;
	font-weight: 700;
	color: var(--ink3, #7B6D60);
	padding-bottom: 4px;
	white-space: nowrap;
}

.shufiel-log .thinking-bubble {
	width: 100%;
	max-width: 960px;
}

/* כותרת כרטיס ההודעה — שיוך דמות ושעה */
.msg-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 1.5px solid var(--rule, #B6A89A);
}

.user-message .msg-card-head {
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

.msg-card-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.84375rem;
	font-weight: 800;
	color: var(--ink, #1F1914);
}

.user-message .msg-card-author {
	color: #FFFFFF !important;
}

.msg-author-icon {
	font-size: 1rem;
	line-height: 1;
}

.msg-author-tag {
	font-size: 0.65625rem;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 2px;
	background: var(--paper2, #F0EAE3);
	color: var(--mark-d, #964F13);
	border: 1px solid var(--rule, #B6A89A);
}

.msg-card-time {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--ink3, #7B6D60);
}

.user-message .msg-card-time {
	color: rgba(255, 255, 255, 0.7) !important;
}

/* גוף ההודעה */
.shufiel-log .chat-message .bubble-content {
	font-size: 0.96875rem;
	line-height: 1.7;
	color: var(--ink, #1F1914);
}

.shufiel-log .chat-message.user-message .bubble-content {
	color: #1F1914 !important;
}

html.dark .shufiel-log .chat-message.user-message .bubble-content,
html.dark .user-bubble-box .bubble-content * {
	color: #F5F0EB !important;
}

.shufiel-log .chat-message .bubble-content p {
	margin: 0 0 10px;
}

.shufiel-log .chat-message .bubble-content p:last-child {
	margin-bottom: 0;
}

.shufiel-log .chat-message strong {
	font-weight: 800;
}

/* בועת מחשבה / טעינה */
.thinking-bubble {
	display: none;
}

.thinking-bubble[style*="flex"],
.thinking-bubble[style*="block"],
.thinking-bubble.is-active {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 8px 0;
}

.shufiel-typing-bubble {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-radius: 14px 14px 14px 4px;
	background: var(--paper2, #F0EAE3);
	border: 1px solid var(--rule, #B6A89A);
	box-shadow: -3px 3px 0 rgba(31, 25, 20, 0.04);
}

.shufiel-typing-bubble .typing-text {
	font-size: 0.84375rem;
	color: var(--ink2, #62564B);
	font-weight: 600;
}

.shufiel-typing-bubble .typing {
	display: inline-flex;
	gap: 5px;
}

.shufiel-typing-bubble .typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mark, #E07818);
	display: block;
	animation: typingBounce 1.4s infinite ease-in-out both;
}

.shufiel-typing-bubble .typing i:nth-child(1) { animation-delay: -0.32s; }
.shufiel-typing-bubble .typing i:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
	0%, 80%, 100% { transform: scale(0.4); opacity: 0.5; }
	40% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════
   כרטיס תרגול אינטראקטיבי לאמירנ"ט (.hq — The Hero Question Aesthetic)
   אומץ 1:1 מדף הנחיתה: בלוק אופסט שטוח, הדגשת קו עבה, פריסה מוקפדת
   ══════════════════════════════════════════════════════════════════ */

.hq,
.shufiel-exercise-card {
	width: 100%;
	max-width: 960px;
	background: var(--paper, #FBF9F6);
	border: 2px solid var(--ink, #1F1914);
	padding: 28px 28px 24px;
	position: relative;
	box-shadow: -6px 6px 0 var(--paper2, #F0EAE3);
	border-radius: 8px;
	margin: 10px 0 18px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.hq-lab {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--mark-d, #964F13);
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule, #B6A89A);
	margin-bottom: 20px;
}

.hq-lab em {
	font-style: normal;
	color: var(--ink3, #7B6D60);
	font-weight: 700;
	font-size: 0.78125rem;
}

/* קטע קריאה באנגלית (Reading Comprehension) */
.reading-passage {
	background: var(--paper2, #F0EAE3);
	border-right: 4px solid var(--mark-ui, #BE6313);
	border-top: 1px solid var(--rule, #B6A89A);
	border-left: 1px solid var(--rule, #B6A89A);
	border-bottom: 1px solid var(--rule, #B6A89A);
	padding: 16px 20px;
	font-size: 0.96875rem;
	line-height: 1.8;
	direction: ltr;
	text-align: left;
	color: var(--ink, #1F1914);
	margin-bottom: 20px;
	border-radius: 2px;
	max-height: 250px;
	overflow-y: auto;
}

/* גזע השאלה באנגלית (.hq-q) */
.hq-q,
.question-stem {
	direction: ltr;
	text-align: left;
	font-size: 1.4375rem;
	line-height: 1.48;
	font-weight: 800;
	margin: 0 0 22px;
	color: var(--ink, #1F1914);
	letter-spacing: -0.01em;
}

.hq-q u,
.question-stem u,
.blank-space {
	text-decoration: none;
	border-bottom: 3.5px solid var(--mark-ui, #BE6313);
	padding: 0 20px;
	font-weight: 800;
	display: inline-block;
}

/* רשימת 4 האפשרויות (.hq-opts) */
.hq-opts,
.shufiel-options-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	direction: ltr;
}

.hq-opt,
.shufiel-option-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	padding: 13px 18px;
	border: 2px solid var(--ink3, #7B6D60);
	background: var(--paper, #FBF9F6);
	font-family: inherit;
	font-size: 1.03125rem;
	font-weight: 600;
	text-align: left;
	color: var(--ink, #1F1914);
	width: 100%;
	box-sizing: border-box;
	border-radius: 2px;
	transition: border-color .18s, background .18s, transform .16s;
}

.hq-opt:hover:not(:disabled),
.shufiel-option-btn:hover:not(:disabled) {
	border-color: var(--ink, #1F1914);
	background: var(--paper2, #F0EAE3);
	transform: translateX(4px);
}

.hq-key,
.opt-badge {
	width: 32px;
	height: 32px;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.875rem;
	background: #E6DED5;
	color: var(--ink2, #62564B);
	border-radius: 2px;
	transition: all .16s ease;
}

.hq-txt,
.opt-text {
	flex: 1;
	min-width: 0;
	font-size: 1.03125rem;
	font-weight: 600;
	line-height: 1.4;
}

.hq-mark,
.opt-result-icon {
	font-size: 1.0625rem;
	font-weight: 800;
	flex: none;
	opacity: 0;
	margin-left: auto;
}

/* מצבי הצלחה וכישלון בכפתורי התשובות (בהתאם ל-landing-page-v2 #hq-b:checked) */
.hq-opt.is-correct,
.shufiel-option-btn.is-correct {
	border-color: var(--ok, #33734D) !important;
	background: var(--ok-bg, #DCEDE2) !important;
	color: var(--ok-ink, #1B3D29) !important;
	font-weight: 700;
}

.hq-opt.is-correct .hq-key,
.shufiel-option-btn.is-correct .opt-badge {
	background: var(--ok, #33734D) !important;
	color: var(--paper, #FBF9F6) !important;
}

.hq-opt.is-correct .hq-mark,
.shufiel-option-btn.is-correct .opt-result-icon {
	opacity: 1;
	color: var(--ok-ink, #1B3D29);
}

.hq-opt.is-wrong,
.shufiel-option-btn.is-wrong {
	border-color: var(--no, #A33328) !important;
	background: var(--no-bg, #F7DEDB) !important;
	color: var(--no-ink, #571A14) !important;
	font-weight: 600;
}

.hq-opt.is-wrong .hq-key,
.shufiel-option-btn.is-wrong .opt-badge {
	background: var(--no, #A33328) !important;
	color: var(--paper, #FBF9F6) !important;
}

.hq-opt.is-wrong .hq-mark,
.shufiel-option-btn.is-wrong .opt-result-icon {
	opacity: 1;
	color: var(--no-ink, #571A14);
}

.hq-opt:disabled,
.shufiel-option-btn:disabled {
	cursor: default;
}

/* מערכת רמזים מדורגת */
.shufiel-hints-wrapper {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--rule, #B6A89A);
}

.shufiel-hints-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.shufiel-hints-label {
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--ink2, #62564B);
}

.shufiel-hint-btn {
	background: var(--paper, #FBF9F6);
	border: 1.5px solid var(--rule, #B6A89A);
	color: var(--ink, #1F1914);
	font-weight: 800;
	font-size: 0.78125rem;
	padding: 5px 12px;
	border-radius: 2px;
	cursor: pointer;
	transition: all .16s ease;
}

.shufiel-hint-btn:hover {
	border-color: var(--ink, #1F1914);
	background: var(--paper2, #F0EAE3);
}

.shufiel-hint-btn.is-revealed {
	background: var(--paper2, #F0EAE3);
	border-color: var(--mark-ui, #BE6313);
	color: var(--mark-d, #964F13);
}

.shufiel-hint-content-box {
	display: none;
	margin-top: 10px;
	background: var(--paper2, #F0EAE3);
	border: 1px solid var(--rule, #B6A89A);
	padding: 12px 16px;
	font-size: 0.875rem;
	color: var(--ink, #1F1914);
	line-height: 1.65;
	border-radius: 2px;
}

/* תיבת הסבר וניתוח מסיחים (.hq-why) */
.hq-why,
.shufiel-explanation-card {
	display: none;
	margin-top: 20px;
	border-top: 2px solid var(--mark-ui, #BE6313);
	padding-top: 20px;
	direction: rtl;
	text-align: right;
}

.hq-why.is-visible,
.shufiel-explanation-card.is-visible {
	display: block;
}

.expl-summary {
	font-size: 1.03125rem;
	line-height: 1.65;
	color: var(--ink, #1F1914);
	margin-bottom: 14px;
}

.expl-summary.is-wrong-title {
	color: var(--no-ink, #571A14);
}

.expl-strategy {
	background: var(--paper2, #F0EAE3);
	border-right: 4px solid var(--mark-ui, #BE6313);
	border-top: 1px solid var(--rule, #B6A89A);
	border-left: 1px solid var(--rule, #B6A89A);
	border-bottom: 1px solid var(--rule, #B6A89A);
	padding: 12px 16px;
	font-size: 0.875rem;
	color: var(--ink, #1F1914);
	margin-bottom: 14px;
	line-height: 1.65;
	border-radius: 2px;
}

.expl-distractors-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.expl-distractor-item {
	font-size: 0.84375rem;
	line-height: 1.6;
	padding: 8px 12px;
	background: var(--paper, #FBF9F6);
	border: 1px solid var(--rule, #B6A89A);
	border-radius: 2px;
	color: var(--ink2, #62564B);
}

.expl-distractor-item strong {
	color: var(--mark-d, #964F13);
	font-weight: 800;
}

.expl-next-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

/* כפתורי הנעה לפעולה (.btn-ed) */
.btn-ed {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: 2px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 800;
	cursor: pointer;
	transition: transform .16s, background .16s, box-shadow .16s;
}

.btn-ed--mark {
	background: var(--mark, #E07818);
	color: #1F1914;
	box-shadow: -3px 3px 0 var(--ink, #1F1914);
}

.btn-ed--mark:hover {
	background: var(--mark-ui, #BE6313);
	transform: translateY(-2px);
	box-shadow: -4px 4px 0 var(--ink, #1F1914);
}

/* ── כרטיס אוצר מילים (Vocabulary Card) ──────────────────────────── */

/* ── כרטיס אוצר מילים (Vocabulary Card) — תואם מוקאפ 1:1 ──────────────── */

.shufiel-vocab-card {
	width: 100%;
	max-width: 960px;
	background: #FAF8F5 !important;
	border: 1.5px solid #E5DFD7 !important;
	border-radius: 16px !important;
	padding: 0 !important;
	box-shadow: none !important;
	margin: 16px 0 8px !important;
	display: flex;
	flex-direction: column;
	gap: 0 !important;
	box-sizing: border-box;
	text-align: right;
	overflow: hidden !important;
}

/* שורת כותרת עליונה מעודנת */
.vocab-card-header {
	background: #FFF7ED !important;
	padding: 12px 20px !important;
	border-bottom: 1.5px solid #EFE8DE !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.vocab-badge-personal {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #FFFFFF !important;
	color: #E07818 !important;
	border: 1.5px solid #E07818 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 800;
}

.vocab-badges-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.vbadge-level {
	background: #1F1914 !important;
	color: #FFFFFF !important;
	border: 1px solid #1F1914 !important;
	border-radius: 6px !important;
	font-size: 0.6875rem;
	font-weight: 900;
	padding: 3px 8px;
}

.vbadge-pos {
	background: #FFFFFF !important;
	color: #7B6D60 !important;
	border: 1px solid #E5DFD7 !important;
	border-radius: 6px !important;
	font-size: 0.6875rem;
	font-weight: 800;
	padding: 3px 8px;
	letter-spacing: 0.04em;
}

.vbadge-cefr {
	background: #256F46 !important;
	color: #FFFFFF !important;
	border: 1px solid #256F46 !important;
	border-radius: 6px !important;
	font-size: 0.6875rem;
	font-weight: 900;
	padding: 3px 8px;
}

.vocab-card-body {
	padding: 22px 24px 20px !important;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

/* שורת המילה המרכזית והתרגום */
.vocab-hero-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
	padding-bottom: 6px;
	border-bottom: 1px solid #EBE4DA;
}

.vocab-word-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	direction: ltr;
}

.vocab-word-sound-row {
	display: inline-flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.vocab-main-word {
	font-size: 2.875rem;
	font-weight: 900;
	color: var(--ink, #1F1914);
	letter-spacing: -0.02em;
	line-height: 1;
	font-family: inherit;
}

.vocab-sound-btn {
	width: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1.5px solid var(--ink, #1F1914) !important;
	background: #FFFFFF !important;
	color: #E07818 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	box-shadow: 2px 2px 0 var(--ink, #1F1914) !important;
	flex-shrink: 0 !important;
	box-sizing: border-box !important;
	line-height: 1 !important;
	transition: all 0.15s ease !important;
}

.vocab-sound-btn svg {
	width: 18px !important;
	height: 18px !important;
	display: block !important;
	margin: auto !important;
	pointer-events: none;
}

.vocab-sound-btn:hover {
	background: #FFF4E5 !important;
	transform: scale(1.08) !important;
	box-shadow: 3px 3px 0 var(--ink, #1F1914) !important;
}

.vocab-phonetic {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink3, #7B6D60);
	font-family: -apple-system, BlinkMacSystemFont, "Courier New", monospace;
	margin-top: 8px;
}

.vocab-trans-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.vocab-section-label {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--ink3, #7B6D60);
	margin-bottom: 4px;
	display: block;
}

.vocab-trans-text {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--ink, #1F1914);
	line-height: 1.3;
}

/* כרטיסיית הקשר בבחינה */
.vocab-context-card {
	background: #FFFFFF !important;
	border: 1px solid #E5DFD7 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	padding: 14px 18px !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: right;
	box-sizing: border-box;
}

.vocab-sentence-en {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ink, #1F1914);
	direction: ltr;
	text-align: left;
	line-height: 1.6;
}

.vocab-marker {
	background: #FEF3C7 !important;
	color: #92400E !important;
	border: 1px solid #F59E0B !important;
	border-radius: 4px;
	padding: 1px 7px;
	font-weight: 900;
	display: inline-block;
	box-shadow: none !important;
}

.vocab-sentence-he {
	font-size: 0.90625rem;
	font-weight: 600;
	color: var(--ink2, #62564B);
	line-height: 1.5;
	text-align: right;
}

/* כרטיסיית טיפ לזיכרון (Mnemonic) */
.vocab-mnemonic-card {
	background: #FFFDF5 !important;
	border: 1.5px solid #FCD34D !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	padding: 14px 18px !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: right;
	box-sizing: border-box;
}

.mnemonic-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mnemonic-bulb-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #FEF3C7 !important;
	border: 1px solid #F59E0B !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	flex-shrink: 0;
	box-shadow: none !important;
}

.mnemonic-title {
	font-size: 0.8125rem !important;
	font-weight: 900;
	color: #B45309 !important;
}

.mnemonic-text {
	font-size: 0.875rem !important;
	font-weight: 600;
	color: #78350F !important;
	line-height: 1.5;
}

/* קו מפריד מקווקו */
.vocab-card-divider {
	border-top: 1px solid #E5DFD7 !important;
	margin: 4px 0 8px;
	width: 100%;
}

/* שורת כפתורי פעולה בתחתית כרטיס המילה */
.vocab-actions-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.btn-vocab-act {
	height: 44px;
	border: 2px solid var(--ink, #1F1914);
	border-radius: 8px;
	font-size: 0.84375rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 3px 3px 0 var(--ink, #1F1914);
	transition: all 0.15s ease;
	text-decoration: none;
	padding: 0 16px;
}

.btn-vocab-act:hover {
	transform: translateY(-1px);
	box-shadow: 4px 4px 0 var(--ink, #1F1914);
}

.btn-vocab-practice {
	flex: 1.4;
	background: var(--mark, #E07818);
	color: #FFFFFF;
}

.btn-vocab-practice:hover {
	background: var(--mark-ui, #BE6313);
	color: #FFFFFF;
}

.btn-vocab-save {
	flex: 1;
	background: #FFFFFF;
	color: var(--ink, #1F1914);
}

.btn-vocab-save.is-saved {
	background: #B7E4C7;
	color: #1B3D29;
}

.btn-vocab-next {
	flex: 1;
	background: #FFFFFF;
	color: var(--ink, #1F1914);
}

/* ── תצוגה מקדימה של קובץ ──────────────────────────────────────────── */

.shufiel-preview:empty {
	display: none;
}

.shufiel-preview .file-preview img {
	max-height: 110px;
	border-radius: 4px;
	border: 2px solid var(--ink, #1F1914);
	box-shadow: 3px 3px 0 var(--ink, #1F1914);
}

/* ── תחתית קבועה ומלחין הפרומפט — מרחף מעל קנבס הנקודות ── */

.shufiel-sticky-footer {
	flex-shrink: 0;
	position: relative;
	width: 100%;
	z-index: 20;
	background: transparent !important;
	border-top: none !important;
	padding: 8px 28px 22px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
}

.shufiel-quick-actions {
	width: 100%;
	max-width: 960px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 2px;
}

/* צ'יפים מהירים אלגנטיים ואחידים בשפת המותג */
.shufiel-quick-actions .action-chip {
	display: inline-flex !important;
	direction: rtl !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 9px 18px !important;
	border-radius: 9999px !important;
	border: 1.5px solid var(--ink, #1F1914) !important;
	box-shadow: 2px 2px 0 var(--ink, #1F1914) !important;
	font-size: 0.84375rem !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	flex: 1 !important;
	background: #FFFFFF !important;
	color: var(--ink, #1F1914) !important;
	transition: all 0.16s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.shufiel-quick-actions .action-chip:hover {
	transform: translateY(-2px) !important;
	border-color: #E07818 !important;
	background: #FFF4E5 !important;
	color: #E07818 !important;
	box-shadow: 3px 3px 0 #E07818 !important;
}

.shufiel-quick-actions .action-chip:active {
	transform: translateY(1px) !important;
	box-shadow: 1px 1px 0 var(--ink, #1F1914) !important;
}

.action-chip.btn-action-practice,
.action-chip.btn-action-weak-words,
.action-chip.btn-action-last-error,
.action-chip.btn-action-exam-tip {
	background: #FFFFFF !important;
	color: var(--ink, #1F1914) !important;
}

.shufiel-quick-actions .action-chip .chip-icon {
	font-size: 1rem !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)) !important;
}

/* ── שורת הפרומפט / המלחין — תיבה מרחפת עם צללית אופסט ── */
.shufiel-composer,
.hay .shufiel-composer,
.hay.shufiel .shufiel-composer {
	width: 100%;
	max-width: 960px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #FFFFFF !important;
	border: 2px solid var(--ink, #1F1914) !important;
	border-radius: 16px !important;
	padding: 8px 14px 8px 18px;
	box-shadow: 4px 4px 0 var(--ink, #1F1914) !important;
	transition: all 0.18s ease;
	box-sizing: border-box;
}

.shufiel-composer:focus-within,
.hay .shufiel-composer:focus-within {
	box-shadow: 4px 4px 0 var(--mark, #E07818) !important;
}

/* שדה הקלדת הפרומפט */
.shufiel-input,
.hay .shufiel-input,
.hay.shufiel .shufiel-input {
	border: none !important;
	background: transparent !important;
	min-height: 44px;
	flex: 1;
	min-width: 0;
	font-size: 0.96875rem !important;
	padding: 0 8px !important;
	color: var(--ink, #1F1914) !important;
	outline: none !important;
	box-shadow: none !important;
	font-family: inherit;
	line-height: 1.5;
	direction: rtl;
}

.shufiel-input::placeholder {
	color: var(--ink3, #7B6D60) !important;
	font-size: 0.90625rem;
	font-weight: 500;
}

.shufiel-composer-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* כפתורי אייקונים משניים (תמונה / קול) */
.shufiel-ghost-btn,
.ghost-btn {
	width: 38px;
	height: 38px;
	border-radius: 8px !important;
	background: #FAF7F2 !important;
	border: 1.5px solid var(--ink, #1F1914) !important;
	color: var(--ink, #1F1914) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	flex: none;
	box-shadow: 2px 2px 0 var(--ink, #1F1914) !important;
	transition: all 0.16s ease;
}

.shufiel-ghost-btn:hover,
.ghost-btn:hover {
	background: var(--paper2, #F0EAE3) !important;
	transform: translateY(-1px);
	box-shadow: 2.5px 2.5px 0 var(--ink, #1F1914) !important;
}

/* כפתור שליחה כתום בולט עם אייקון וטקסט שלח */
.shufiel-send {
	height: 42px;
	min-height: 42px;
	padding: 0 18px !important;
	border-radius: 10px !important;
	flex: none;
	background: var(--mark, #E07818) !important;
	border: 2px solid var(--ink, #1F1914) !important;
	color: #FFFFFF !important;
	box-shadow: 2.5px 2.5px 0 var(--ink, #1F1914) !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 800;
	transition: all 0.16s ease;
}

.shufiel-send:hover {
	background: var(--mark-ui, #BE6313) !important;
	color: #FFFFFF !important;
	transform: translateY(-1px);
	box-shadow: 3.5px 3.5px 0 var(--ink, #1F1914) !important;
}

.shufiel-send:active {
	transform: translateY(1px);
	box-shadow: 1px 1px 0 var(--ink, #1F1914) !important;
}

.shufiel-send .send-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: block;
	transform: scaleX(-1); /* היפוך כיוון החץ עבור עברית RTL */
}

.shufiel-send .send-text {
	font-size: 0.875rem;
	font-weight: 900;
	color: #FFFFFF;
}
/* ── התאמה רספונסיבית (Mobile / Tablet) ───────────────────────────── */

@media (max-width: 991px) {
	.hay.shufiel {
		flex-direction: column;
		height: 100vh;
		overflow: hidden;
	}

	.shufiel-sidebar {
		position: fixed;
		top: 0;
		right: -310px;
		width: 290px;
		height: 100vh;
		z-index: 10000;
		box-shadow: -10px 0 25px rgba(31, 25, 20, 0.25);
	}

	.shufiel-sidebar.is-open {
		transform: translateX(-310px);
	}

	.shufiel-sidebar-toggle {
		display: inline-flex;
	}

	.shufiel-content {
		height: 100vh;
		overflow: hidden;
	}

	.shufiel-head {
		margin: 10px 12px 0 12px;
		width: auto;
		padding: 10px 14px;
	}

	.shufiel-log {
		padding: 12px 14px;
	}

	.shufiel-sticky-footer {
		padding: 10px 14px 14px 14px;
	}
}

@media (max-width: 768px) {
	.shufiel-head {
		padding: 12px 14px;
	}

	.shufiel-avatar {
		width: 46px;
		height: 46px;
	}

	.shufiel-avatar img {
		width: 38px;
		height: 38px;
	}

	.shufiel-name {
		font-size: 1.125rem;
	}

	.shufiel-badge {
		font-size: 0.625rem;
	}

	.shufiel-new span {
		display: none;
	}

	.shufiel-new {
		padding: 8px 10px;
	}

	.hq,
	.shufiel-exercise-card {
		padding: 18px 16px;
		box-shadow: -6px 6px 0 var(--paper2, #F0EAE3);
	}

	.hq-q {
		font-size: 1.15625rem;
	}

	.hq-opt,
	.shufiel-option-btn {
		padding: 10px 12px;
		font-size: 0.90625rem;
	}

	.hq-key,
	.shufiel-option-btn .opt-badge {
		width: 26px;
		height: 26px;
		font-size: 0.75rem;
		margin-right: 8px;
	}
}
/* The shared appearance setting also applies to the tutor's separate shell. */
html.dark .shufiel {
	--paper: #17120E;
	--paper2: #2A221B;
	--ink: #F5F0EB;
	--ink2: #B6A89A;
	--ink3: #978778;
	--rule: #4C4039;
	--surface: #211A15;
	--surface-subtle: #2A221B;
	--text: #F5F0EB;
	--muted: #B6A89A;
}

html.dark body:has(.shufiel),
html.dark body:has(.shufiel) :is(#page, #content, .ast-container, #primary, #main, article, .entry-content),
html.dark .shufiel,
html.dark .shufiel-content,
html.dark .shufiel-log {
	background: #17120E !important;
	color: #F5F0EB !important;
}

html.dark .shufiel-sidebar {
	background: #211A15 !important;
	color: #F5F0EB !important;
}

html.dark .shufiel :is(
	.shufiel-sidebar-header, .shufiel-sidebar-footer, .shufiel-head,
	.sidebar-hub-btn, .sidebar-search-input, .sidebar-session-item,
	.btn-head-new, .shufiel-composer, .shufiel-ghost-btn,
	.chat-message.bot-message, .shufiel-vocab-card, .vocab-card-header,
	.vocab-context-card, .vocab-mnemonic-card, .vocab-badge-personal,
	.vbadge-pos, .vocab-sound-btn, .btn-vocab-save, .btn-vocab-next,
	.action-chip
) {
	background: #211A15 !important;
	color: #F5F0EB !important;
}

html.dark .shufiel .sidebar-session-item.is-active,
html.dark .shufiel .sidebar-user-pill {
	background: #4C3020 !important;
	color: #F5F0EB !important;
}

html.dark .shufiel .user-bubble-box {
	background: #352D27 !important;
	color: #F5F0EB !important;
}

html.dark .shufiel :is(
	.sidebar-heading, .session-title, .user-name, .shufiel-name,
	.msg-card-author strong, .vocab-main-word, .vocab-trans-text,
	.vocab-sentence-en, .vocab-sentence-he, .vocab-phonetic,
	.vocab-section-label, .sidebar-search-icon, .session-group-title,
	.shufiel-status, .user-desc, .msg-card-time, .shufiel-composer input,
	.shufiel-composer textarea
) {
	color: #F5F0EB !important;
}

html.dark .shufiel .sidebar-search-input::placeholder,
html.dark .shufiel .shufiel-composer input::placeholder,
html.dark .shufiel .shufiel-composer textarea::placeholder {
	color: #B6A89A !important;
}

html.dark .shufiel :is(.mnemonic-title, .mnemonic-text) {
	color: #F6C27A !important;
}

html.dark .shufiel .shufiel-streak-pill .streak-num {
	color: #1F1914 !important;
}

@media (max-width: 600px) {
	.shufiel-head {
		gap: 6px;
		padding: 8px !important;
	}
	.shufiel-head-start {
		gap: 6px;
		min-width: 0;
		flex: 1;
	}
	.shufiel-head-actions { display: none; }
	.shufiel-streak-pill, .shufiel-badge { display: none; }
	.shufiel-title-row { min-width: 0; }
	.shufiel-name { font-size: 1rem; }
	.shufiel-avatar { width: 40px; height: 40px; }
	.shufiel-avatar img { width: 34px; height: 34px; }
	.vocab-card-header { flex-wrap: wrap; padding: 10px !important; }
	.vocab-badges-left { flex-wrap: wrap; }
	.vocab-card-body { padding: 14px !important; }
	.vocab-hero-row { flex-wrap: wrap; gap: 12px; }
	.vocab-word-col, .vocab-trans-col {
		width: 100%;
		min-width: 0;
		align-items: flex-start;
		text-align: right;
	}
	.vocab-word-sound-row { max-width: 100%; }
	.vocab-main-word { font-size: clamp(1.8rem, 8vw, 2.875rem); overflow-wrap: anywhere; }
	.shufiel-quick-actions {
		overflow-x: auto;
		justify-content: flex-start;
		scroll-snap-type: x proximity;
		padding: 2px 0 8px;
	}
	.shufiel-quick-actions .action-chip {
		flex: 0 0 auto !important;
		scroll-snap-align: start;
	}
}
