/* ======================================================================
   پورتال دانش‌آموز / صفحه ورود کادر مدرسه — نسل نوین پارسی
   هم‌راستا با سیستم طراحی داشبورد مدیریت (admin.css): برند EF5A3C + وزیرمتن
   ====================================================================== */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
	/* توکن‌های طراحی پورتال — منطبق با سند طراحی رابط (سیستم رنگی نارنجی/زغالی گرم) */
	--amz-brand:       #EF5A3C;
	--amz-brand-dark:  #D9431F;
	--amz-brand-light: #FEEDE8;
	--amz-brand-line:  #F6D9CD;
	--amz-amber:       #F2A65A;
	--amz-brand-grad:  linear-gradient(135deg, #FF8A6B 0%, #EF5A3C 100%);

	--amz-ink:         #2B2320;
	--amz-ink-soft:    #7C716C;
	--amz-ink-faint:   #9C918C;

	--amz-canvas:      #FAF7F5;
	--amz-surface:     #FFFFFF;
	--amz-line:        #F0E9E5;
	--amz-border:      var(--amz-line);
	--amz-shadow-hover: 0 10px 28px rgba(239, 90, 60, .16);
	--amz-table-head:  #FBF6F3;

	--amz-green:    #10B981; --amz-green-bg:  #E6F7F0;
	--amz-red:      #DC2626; --amz-red-bg:    #FDE8E8;
	--amz-yellow:   #B4790A; --amz-yellow-bg: #FFF4DB;
	--amz-blue:     #6366F1; --amz-blue-bg:   #EEEFFD;

	--amz-radius-lg: 16px;
	--amz-radius-md: 10px;
	--amz-radius-sm: 8px;
	--amz-radius-pill: 999px;

	/* هم‌راستا با admin.css: همان توکن‌های تازه، تا پورتال دقیقاً همان زبان بصری کیوسک را داشته باشد */
	--amz-purple:    #6366F1; --amz-purple-bg: #EEEFFD;
	--amz-teal:      #0EA5E9; --amz-teal-bg:   #E5F5FD;
	--amz-shadow-sm: 0 2px 12px rgba(43, 35, 32, .05);
	--amz-shadow-md: 0 8px 24px rgba(239, 90, 60, .14);
	--amz-shadow-lg: 0 18px 44px rgba(43, 35, 32, .16);
}

/* حالت تیره: پیرو حالت خودِ سایت — از همان کلاسی که خودِ دکمه‌ی تم قالب (Company) روی
   <html> می‌گذارد (theme-dark) پیروی می‌کنیم، نه یک کلاس اختصاصی؛ این‌طوری اگر کاربر
   دقیقاً همین دکمه را روی صفحه‌ی پورتال هم بزند (بدون رفرش صفحه)، بی‌درنگ هماهنگ می‌شود.
   رنگ برند عمداً ثابت می‌ماند. */
html.theme-dark {
	/* عیناً همان پالت تاریک بازتنظیم‌شده‌ی admin.css — تا کیوسک و پورتال در حالت
	   تاریک هم دقیقاً یک‌شکل باشند. (کلاس اینجا theme-dark است چون پورتال از حالت
	   تاریک خودِ قالب سایت پیروی می‌کند، نه از کلاس amz-dark کیوسک.) */
	--amz-brand:       #FF7A5E;
	--amz-brand-dark:  #EF5A3C;
	--amz-brand-light: #3B221B;
	--amz-brand-line:  #6A3B2A;
	--amz-brand-grad:  linear-gradient(135deg, #FF8A6B 0%, #EF5A3C 100%);

	--amz-ink:         #F5EEEA;
	--amz-ink-soft:    #C9BFB9;
	--amz-ink-faint:   #A89C96;

	--amz-canvas:      #1B1615;
	--amz-surface:     #241D1B;
	--amz-line:        #33292A;
	--amz-table-head:  #241D1B;

	--amz-green:    #4FCB88; --amz-green-bg:  #16301F;
	--amz-red:      #F0695C; --amz-red-bg:    #3A1D1A;
	--amz-yellow:   #E4B451; --amz-yellow-bg: #3A2E12;
	--amz-blue:     #9698F5; --amz-blue-bg:   #22214A;

	--amz-purple: #9698F5; --amz-purple-bg: #22214A;
	--amz-teal:   #4FDDD4; --amz-teal-bg:   #103330;
	--amz-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--amz-shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
	--amz-shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);
	color-scheme: dark;
}

/* کنترل‌های فرم پورتال هم مثل کیوسک توکنی می‌شوند — وگرنه قالب سایت در حالت تاریک
   می‌تواند متن تیره روی فیلد تیره بگذارد. */
.amz-portal-scope input[type=text],
.amz-portal-scope input[type=search],
.amz-portal-scope input[type=tel],
.amz-portal-scope input[type=number],
.amz-portal-scope input[type=password],
.amz-portal-scope select,
.amz-portal-scope textarea {
	color: var(--amz-ink) !important;
	background-color: var(--amz-canvas) !important;
	border: 1px solid var(--amz-line) !important;
	border-radius: var(--amz-radius-sm) !important;
	font-family: inherit !important;
}
.amz-portal-scope input::placeholder,
.amz-portal-scope textarea::placeholder { color: var(--amz-ink-faint) !important; opacity: 1; }
.amz-portal-scope select option { color: var(--amz-ink); background-color: var(--amz-surface); }
.amz-portal-scope input[type=checkbox],
.amz-portal-scope input[type=radio] { accent-color: var(--amz-brand); }

/* ---------------------------------------------------------------------
   ظرف اصلی پورتال — از این به بعد پورتال داخل هدر واقعی سایت رندر می‌شود
   (نه یک سند کاملاً مجزا)، پس رنگ/فونت/جهت پایه را خودمان روی یک wrapper
   اختصاصی اعمال می‌کنیم تا مستقل از استایل قالب باقی بماند.
   --------------------------------------------------------------------- */
/* ---------------------------------------------------------------------
   ظرف اصلی پورتال — این صفحه از هدر/فوتر واقعی سایت عبور می‌کند، پس رنگ/فونت/
   جهت پایه را روی یک wrapper اختصاصی اعمال می‌کنیم تا مستقل از استایل قالب بماند.
   --------------------------------------------------------------------- */
.amz-portal-scope {
	margin: 0; padding: 0; min-height: 60vh;
	max-width: 100%; overflow-x: hidden;
	background: var(--amz-canvas);
	font-family: 'Vazirmatn', Tahoma, sans-serif !important;
	color: var(--amz-ink);
	direction: rtl;
	line-height: 1.65;
	font-size: 14px !important;
}
.amz-portal-scope, .amz-portal-scope * { box-sizing: border-box; }
.amz-portal-scope select, .amz-portal-scope input, .amz-portal-scope textarea, .amz-portal-scope button { max-width: 100%; }
.amz-portal-scope h1, .amz-portal-scope h2, .amz-portal-scope h3,
.amz-portal-scope p, .amz-portal-scope ul, .amz-portal-scope li { margin: 0; padding: 0; list-style: none; }
.amz-portal-scope button, .amz-portal-scope input {
	font-family: inherit !important; font-size: inherit !important; color: inherit; line-height: inherit;
}
.amz-portal-scope a { text-decoration: none; }
.amz-portal-scope img { max-width: none; }

/* ---------------------------------------------------------------------
   نوار بالای پورتال — همان زبان بصری هدر کیوسک کادر (کارت سفید، آواتار حرفی)
   تا دانش‌آموز و کادر داخل یک «برنامه»ی یکسان باشند.
   --------------------------------------------------------------------- */
.amz-kiosk-topbar {
	/* عمداً دیگه sticky نیست: هر z-indexـی هم می‌ذاشتیم (حتی عدد کوچیک)، گاهی به‌خاطر
	   stacking context صفحه، منوی موبایل هدر واقعی سایت (بالای همین نوار) زیرش گم می‌شد.
	   ساده‌ترین و مطمئن‌ترین راه: این نوار در جریان عادی صفحه باشه، نه sticky. */
	display: flex; align-items: center; gap: 12px;
	max-width: 100%; margin: 20px 20px 0; padding: 11px 18px;
	background: var(--amz-surface); color: var(--amz-ink);
	border: 1px solid var(--amz-line); border-radius: var(--amz-radius-lg);
	box-shadow: var(--amz-shadow-sm);
	font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
.amz-kiosk-brand { display: flex; align-items: center; gap: 10px; font-weight: 800 !important; font-size: 15px !important; white-space: nowrap; }
.amz-kiosk-brand .dashicons {
	font-size: 20px !important; width: 38px; height: 38px; line-height: 38px; text-align: center;
	border-radius: 11px; color: #fff; flex: none;
	background: linear-gradient(140deg, var(--amz-brand) 0%, var(--amz-brand-dark) 100%);
}
.amz-kiosk-brand-sub { font-weight: 500 !important; color: var(--amz-ink-soft); font-size: 12.5px !important; }
.amz-kiosk-nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; }
.amz-kiosk-user { display: flex; align-items: center; gap: 12px; white-space: nowrap; margin-inline-start: auto; }
.amz-kiosk-user-info { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; }
.amz-kiosk-user-info strong { font-size: 13px !important; color: var(--amz-ink); }
.amz-kiosk-user-info span { font-size: 11.5px !important; color: var(--amz-ink-soft); }
.amz-kiosk-logout {
	display: flex; align-items: center; gap: 5px; background: var(--amz-canvas);
	color: var(--amz-ink-soft); text-decoration: none; border: 1px solid var(--amz-line); cursor: pointer;
	font-family: inherit !important; font-size: 12.5px !important; font-weight: 600 !important;
	padding: 8px 13px; border-radius: 10px; transition: .15s;
}
.amz-kiosk-logout:hover { background: var(--amz-red-bg); border-color: var(--amz-red-bg); color: var(--amz-red); }
.amz-kiosk-logout .dashicons { font-size: 15px !important; width: 15px; height: 15px; }

/* ---------------------------------------------------------------------
   پروفایل/داشبورد — دقیقاً همان کلاس‌ها و مقادیر admin.css
   (همان چیزی که مدیر هنگام کلیک روی نام یک دانش‌آموز می‌بیند)
   --------------------------------------------------------------------- */
.amz-page-body { max-width: 100%; margin: 0; padding: 24px 20px 60px; }

@media (max-width: 560px) {
	.amz-page-body { padding: 16px 12px 50px; }
	.amz-kiosk-user-info { display: none; }
	.amz-kiosk-brand-sub { display: none; }
	.amz-kiosk-logout-label { display: none; }
	.amz-kiosk-topbar { margin: 12px 12px 0; padding: 10px 12px; gap: 8px; }
	.amz-kiosk-logout { padding: 9px; }
}

.amz-profile-hero {
	display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
	background: var(--amz-surface); border: 1px solid var(--amz-line);
	border-radius: var(--amz-radius-lg); padding: 22px 26px; margin-bottom: 12px;
	box-shadow: var(--amz-shadow-sm);
}
.amz-profile-identity { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; flex: 1; min-width: 0; }
.amz-profile-avatar {
	flex: none; width: 56px; height: 56px; border-radius: 50%;
	background: var(--amz-brand-light); color: var(--amz-brand);
	display: flex; align-items: center; justify-content: center;
}
.amz-profile-avatar .dashicons { font-size: 28px !important; width: 28px; height: 28px; }
.amz-profile-main { flex: 1; min-width: 0; }
.amz-profile-main h1 { margin: 0 0 6px; font-size: 22px !important; font-weight: 700 !important; overflow-wrap: break-word; }
.amz-profile-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px !important; color: var(--amz-ink-soft); }
.amz-profile-att-rate { display: flex; flex-direction: column; text-align: center; min-width: 120px; }
.amz-profile-att-breakdown { margin-bottom: 20px; }

@media (max-width: 460px) {
	.amz-profile-avatar { width: 46px; height: 46px; }
	.amz-profile-avatar .dashicons { font-size: 22px !important; width: 22px; height: 22px; }
	.amz-profile-main h1 { font-size: 17px !important; }
	.amz-profile-att-rate { width: 100%; align-items: flex-start; text-align: right; }
}

.amz-hero-label { font-size: 12.5px !important; color: var(--amz-ink-soft); font-weight: 600 !important; margin-bottom: 6px; display: block; }
.amz-hero-number { font-size: 32px !important; font-weight: 800 !important; color: var(--amz-brand); line-height: 1; }
.amz-hero-number small { font-size: 20px !important; font-weight: 600 !important; margin-inline-start: 2px; }
.amz-hero-number-empty { color: var(--amz-ink-faint); }
.amz-hero-sub { font-size: 12.5px !important; color: var(--amz-ink-soft); margin-top: 8px; max-width: 260px; display: block; }

.amz-hero-breakdown { display: flex; gap: 10px; flex-wrap: wrap; }
.amz-hero-stat {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	min-width: 68px; padding: 10px 6px; border-radius: var(--amz-radius-md); font-size: 12px !important; color: var(--amz-ink-soft);
	transition: box-shadow .15s ease, transform .15s ease;
}
.amz-hero-stat:hover { box-shadow: var(--amz-shadow-sm); transform: translateY(-1px); }
.amz-hero-stat strong { font-size: 18px !important; line-height: 1.1; color: var(--amz-ink); }
.amz-hero-stat.amz-tone-green strong, .amz-hero-stat.amz-tone-red strong,
.amz-hero-stat.amz-tone-yellow strong, .amz-hero-stat.amz-tone-blue strong { color: inherit; }
.amz-hero-stat.amz-tone-green  { background: var(--amz-green-bg);  color: var(--amz-green); }
.amz-hero-stat.amz-tone-red    { background: var(--amz-red-bg);    color: var(--amz-red); }
.amz-hero-stat.amz-tone-yellow { background: var(--amz-yellow-bg); color: var(--amz-yellow); }
.amz-hero-stat.amz-tone-blue   { background: var(--amz-blue-bg);   color: var(--amz-blue); }

.amz-hero-cta {
	display: inline-flex; align-items: center; gap: 6px; background: var(--amz-brand-grad); color: #fff;
	text-decoration: none; border: none; cursor: pointer; font-family: inherit !important; font-weight: 600 !important; font-size: 13.5px !important;
	padding: 11px 18px; border-radius: var(--amz-radius-sm); white-space: nowrap; transition: background .15s;
}
.amz-hero-cta:hover { background: var(--amz-brand-dark); color: #fff; }
.amz-hero-cta .dashicons { font-size: 15px !important; width: 15px; height: 15px; }

.amz-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.amz-mini-card { background: var(--amz-surface); border: 1px solid var(--amz-line); border-radius: var(--amz-radius-lg); padding: 16px 18px; box-shadow: var(--amz-shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.amz-mini-card:hover { box-shadow: var(--amz-shadow-hover, var(--amz-shadow-md)); transform: translateY(-2px); }
.amz-mini-card h3 { margin: 0 0 6px; font-size: 16px !important; font-weight: 600 !important; color: var(--amz-ink); border-bottom: none; padding-bottom: 8px; }
.amz-mini-list { list-style: none; margin: 0; padding: 0; }
.amz-mini-list li { padding: 10px 0; border-bottom: 1px solid var(--amz-line); font-size: 13px !important; color: var(--amz-ink); overflow: hidden; }
.amz-mini-list li:last-child { border-bottom: none; }
.amz-mini-list li > .amz-muted,
.amz-mini-list li > .amz-badge { margin-inline-start: 8px; }
.amz-mini-group { margin-bottom: 14px; }
.amz-mini-group:last-child { margin-bottom: 0; }
.amz-mini-group-title { display: block; font-size: 12px !important; font-weight: 700 !important; color: var(--amz-brand-dark); background: var(--amz-brand-light); border-radius: var(--amz-radius-sm); padding: 4px 10px; margin-bottom: 6px; }
.amz-muted { color: var(--amz-ink-faint); }

@media (max-width: 900px) {
	.amz-profile-hero { padding: 18px; }
	.amz-profile-att-rate { align-items: center; width: 100%; }
	.amz-overview-grid { grid-template-columns: repeat(2, 1fr); }
	.amz-kiosk-brand-sub { display: none; }
}
@media (max-width: 560px) {
	.amz-overview-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   صفحه ورود دانش‌آموز
   --------------------------------------------------------------------- */
.amz-wrap-login { min-height: 100vh; min-height: 100dvh; display: flex; }
.amz-login-container { display: flex; width: 100%; min-height: 100vh; min-height: 100dvh; }

.amz-login-brand {
	position: relative;
	flex: 1 1 42%;
	min-width: 320px;
	background: linear-gradient(160deg, var(--amz-brand) 0%, var(--amz-brand-dark) 60%, #a8330f 100%);
	color: #fff;
	overflow: hidden;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 46px 42px;
}
.amz-glow, .amz-glow2 { position: absolute; border-radius: 50%; pointer-events: none; }
.amz-glow  { width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); bottom: -160px; left: -140px; }
.amz-glow2 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(242,166,90,.45), transparent 70%); top: -90px; right: -80px; }
.amz-brand-top, .amz-brand-bottom { position: relative; z-index: 2; }
.amz-brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 800 !important; font-size: 18px !important; }
.amz-mark {
	width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
	background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
	display: flex; align-items: center; justify-content: center;
}
.amz-mark .dashicons { font-size: 20px !important; width: 20px; height: 20px; }
.amz-brand-title { font-size: 32px !important; font-weight: 800 !important; line-height: 1.35; margin-top: 34px; max-width: 400px; }
.amz-brand-title span { color: #ffe2d6; }
.amz-brand-sub { margin-top: 14px; color: rgba(255,255,255,.85); font-size: 15px !important; line-height: 1.8; max-width: 400px; }
.amz-brand-note {
	display: flex; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
	padding: 13px 15px; border-radius: 14px; font-size: 13px !important; color: rgba(255,255,255,.92);
}
.amz-staff-link {
	display: flex; align-items: center; gap: 8px; margin-top: 14px; width: 100%;
	color: #fff; text-decoration: none; font-size: 13px !important; font-weight: 600 !important; font-family: inherit !important;
	background: rgba(0,0,0,.15); border: none; padding: 11px 15px; border-radius: 12px; cursor: pointer; transition: .15s;
}
.amz-staff-link:hover { background: rgba(0,0,0,.28); color: #fff; }
.amz-staff-link .dashicons { font-size: 17px !important; width: 17px; height: 17px; }

.amz-login-stage { flex: 1 1 58%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.amz-login-card { width: 100%; max-width: 420px; }
.amz-login-card h1 { font-size: 24px !important; font-weight: 800 !important; margin: 0; }
.amz-lead { color: var(--amz-ink-soft); font-size: 14px !important; margin: 8px 0 24px; }

.amz-alert { padding: 11px 14px; border-radius: var(--amz-radius-sm); margin-bottom: 14px; font-size: 13.5px !important; }
.amz-alert-error   { background: var(--amz-red-bg);   color: var(--amz-red); }
.amz-alert-success { background: var(--amz-green-bg); color: var(--amz-green); }

.amz-tabs2 { display: flex; background: var(--amz-brand-light); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.amz-tabs2 button {
	flex: 1; border: none; background: transparent; padding: 10px 6px; font-family: inherit !important;
	font-size: 13px !important; font-weight: 600 !important; color: var(--amz-ink-soft); border-radius: 9px; cursor: pointer; transition: .15s;
}
.amz-tabs2 button.is-active { background: var(--amz-surface); color: var(--amz-brand-dark); box-shadow: 0 2px 8px rgba(20,22,27,.08); }
/* حالت سه‌تبی (ورود / اولین ورود / فراموشی کد) روی موبایل جمع‌وجورتر باشه تا متن نشکنه */
.amz-tabs3 button { font-size: 12px !important; padding: 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) {
	.amz-tabs3 button { font-size: 11px !important; padding: 9px 3px; }
}

.amz-form2 select {
	width: 100%; padding: 13px 14px; border-radius: 11px; border: 1.5px solid var(--amz-brand-line);
	background: var(--amz-brand-light); font-family: inherit !important; font-size: 16px !important; color: var(--amz-ink); outline: none; transition: .15s;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767a85' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat; background-position: left 12px center; background-size: 16px;
}
.amz-form2 select:focus { border-color: var(--amz-brand); background-color: var(--amz-surface); box-shadow: 0 0 0 3px rgba(239,90,60,.12); }

.amz-form2 textarea {
	width: 100%; padding: 13px 14px; border-radius: 11px; border: 1.5px solid var(--amz-brand-line);
	background: var(--amz-brand-light); font-family: inherit !important; font-size: 16px !important; color: var(--amz-ink); outline: none; transition: .15s;
	resize: vertical; min-height: 70px; box-sizing: border-box;
}
.amz-form2 textarea:focus { border-color: var(--amz-brand); background: var(--amz-surface); box-shadow: 0 0 0 3px rgba(239,90,60,.12); }
.amz-form2 input[type="file"] {
	width: 100%; padding: 11px 12px; border-radius: 11px; border: 1.5px dashed var(--amz-brand-line);
	background: var(--amz-brand-light); font-size: 13px !important; color: var(--amz-ink-soft); box-sizing: border-box;
}

/* ---------------------------------------------------------------------
   تکالیف و گزارش‌کار (پنل دانش‌آموز)
   --------------------------------------------------------------------- */
.amz-homework-section { grid-column: 1 / -1; margin-top: 4px; }
.amz-section-title { font-size: 15px !important; font-weight: 700 !important; margin: 0 0 12px !important; color: var(--amz-ink); }
.amz-homework-upload-form { background: var(--amz-surface); border: 1px solid var(--amz-line); border-radius: var(--amz-radius-lg); padding: 16px; margin-bottom: 16px; box-shadow: var(--amz-shadow-sm); }
.amz-homework-history { display: flex; flex-direction: column; gap: 10px; }
.amz-homework-history-item { background: var(--amz-surface); border: 1px solid var(--amz-line); border-radius: var(--amz-radius-lg); padding: 14px 16px; box-shadow: var(--amz-shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.amz-homework-history-item:hover { box-shadow: var(--amz-shadow-md); transform: translateY(-1px); }
.amz-homework-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.amz-homework-head strong { font-size: 13.5px; }
.amz-homework-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.amz-homework-file {
	display: inline-flex; align-items: center; gap: 5px; font-size: 12px !important; text-decoration: none;
	background: var(--amz-brand-light); color: var(--amz-brand-dark); border-radius: var(--amz-radius-pill); padding: 6px 12px 6px 10px;
	border: 1px solid var(--amz-brand-line);
}
.amz-homework-file .dashicons { font-size: 13px; width: 13px; height: 13px; }
.amz-homework-response {
	margin-top: 14px; padding: 12px 14px; border-radius: var(--amz-radius-md);
	background: var(--amz-canvas); border: 1px solid var(--amz-line);
}
.amz-homework-response-label {
	display: flex; align-items: center; gap: 5px; font-size: 11.5px !important; font-weight: 700 !important;
	color: var(--amz-ink-soft); margin-bottom: 6px;
}
.amz-homework-response-label .dashicons { font-size: 13px; width: 13px; height: 13px; color: var(--amz-brand); }
.amz-homework-note { margin: 0; font-size: 12.5px !important; color: var(--amz-ink); line-height: 1.8; }

.amz-hidden { display: none !important; }
.amz-hw-type-toggle {
	display: flex; gap: 8px; background: var(--amz-brand-light); border-radius: 12px; padding: 4px; margin-bottom: 14px;
}
.amz-hw-type-toggle input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.amz-hw-type-toggle label {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
	text-align: center; padding: 10px 6px !important; border-radius: 9px; font-size: 12.5px !important; font-weight: 600 !important;
	color: var(--amz-ink-soft); cursor: pointer; transition: .15s; margin: 0 !important;
}
.amz-hw-type-toggle label .dashicons { font-size: 15px; width: 15px; height: 15px; }
.amz-hw-type-toggle input[type="radio"]:checked + label { background: var(--amz-surface); color: var(--amz-brand-dark); box-shadow: 0 2px 8px rgba(20,22,27,.08); }
.amz-hw-type-toggle input[type="radio"]:focus-visible + label { outline: 2px solid var(--amz-brand); }

.amz-homework-delete-form { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--amz-line); }
.amz-homework-delete-btn {
	display: inline-flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer;
	color: var(--amz-red); font-size: 11.5px !important; font-family: inherit; padding: 4px 2px;
}
.amz-homework-delete-btn:hover { text-decoration: underline; }
.amz-homework-delete-btn .dashicons { font-size: 13px; width: 13px; height: 13px; }

.amz-form2 label { display: block; font-size: 12.5px !important; font-weight: 600 !important; color: var(--amz-ink); margin: 14px 0 6px; }
.amz-form2 label:first-of-type { margin-top: 0; }
.amz-form2 input {
	width: 100%; padding: 13px 14px; border-radius: 11px; border: 1.5px solid var(--amz-brand-line);
	background: var(--amz-brand-light); font-family: inherit !important; font-size: 16px !important; color: var(--amz-ink); outline: none; transition: .15s;
}
.amz-form2 input:focus { border-color: var(--amz-brand); background: var(--amz-surface); box-shadow: 0 0 0 3px rgba(239,90,60,.12); }
.amz-hint { font-size: 11.5px !important; color: var(--amz-ink-faint); margin-top: 5px; }

.amz-btn-primary2 {
	width: 100%; margin-top: 18px; padding: 13px; border: none; border-radius: 12px;
	background: var(--amz-brand); color: #fff !important; font-family: inherit !important; font-size: 14.5px !important; font-weight: 700 !important; cursor: pointer; transition: .15s;
}
.amz-btn-primary2:hover,
.amz-btn-primary2:focus,
.amz-btn-primary2:active { background: var(--amz-brand-dark); color: #fff !important; }

.amz-link-row { text-align: center; margin-top: 14px; }
.amz-link-row button { background: none; border: none; font-family: inherit !important; color: var(--amz-ink-faint); font-size: 12.5px !important; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.amz-link-row button:hover { color: var(--amz-brand-dark); }

.amz-foot-note {
	display: flex; gap: 8px; margin-top: 24px; font-size: 11.5px !important; color: var(--amz-ink-soft);
	background: var(--amz-brand-light); padding: 12px 14px; border-radius: 11px;
}

.amz-idcard {
	position: relative; text-align: center; background: linear-gradient(135deg, var(--amz-brand), var(--amz-amber));
	border-radius: 20px; color: #fff; padding: 26px 22px 22px; box-shadow: 0 18px 34px -12px rgba(217,67,31,.45);
}
.amz-sms-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.amz-sms-icon .dashicons { font-size: 24px !important; width: 24px; height: 24px; }
.amz-idcard-eyebrow { font-size: 14px !important; font-weight: 700 !important; }
.amz-idcard-school { font-size: 13px !important; opacity: .7; margin-top: 4px; }
.amz-idcard-divider { border-top: 2px dashed rgba(255,255,255,.45); margin: 20px 0; }
.amz-idcard-label { font-size: 14px !important; line-height: 1.8; opacity: .95; }
.amz-idcard-warn { margin-top: 16px; font-size: 12.5px !important; color: var(--amz-ink); background: var(--amz-brand-light); padding: 12px 14px; border-radius: 11px; text-align: center; }
.amz-back-link { text-align: center; margin-top: 16px; }
.amz-back-link a { color: var(--amz-ink-faint); font-size: 13px !important; text-decoration: none; }

@media (max-width: 860px) {
	.amz-login-container { flex-direction: column; }
	.amz-login-brand { flex: 0 0 auto; min-width: 0; width: 100%; padding: 30px 24px 24px; }
	.amz-brand-title { margin-top: 20px; font-size: 22px !important; max-width: none; }
	.amz-brand-sub { max-width: none; }
	.amz-login-stage { flex: 1 1 auto; padding: 30px 20px 44px; }
}

/* ---------------------------------------------------------------------
   نشان‌ها و پیام‌های خالی (در تمام کارت‌های داشبورد استفاده می‌شوند)
   --------------------------------------------------------------------- */
.amz-badge { display: inline-block; padding: 3px 10px; border-radius: var(--amz-radius-pill); font-size: 11.5px !important; font-weight: 600 !important; }
.amz-badge-green { background: var(--amz-green-bg); color: var(--amz-green); }
.amz-badge-gray  { background: var(--amz-canvas); color: var(--amz-ink-soft); border: 1px solid var(--amz-line); }
.amz-badge-track { background: var(--amz-canvas); color: var(--amz-ink-soft); border: 1px solid var(--amz-line); }
.amz-badge-red    { background: var(--amz-red-bg);    color: var(--amz-red); }
.amz-badge-yellow { background: var(--amz-yellow-bg); color: var(--amz-yellow); }
.amz-badge-blue   { background: var(--amz-blue-bg);   color: var(--amz-blue); }
.amz-empty { color: var(--amz-ink-faint); font-size: 13px !important; }

/* ===================================================================
   حلقه‌ی گرافیکی نرخ حضور (جایگزین عدد ساده)
   =================================================================== */
.amz-att-ring { position: relative; width: 96px; height: 96px; margin: 4px auto 0; }
.amz-att-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.amz-att-ring-track { fill: none; stroke: var(--amz-canvas); stroke-width: 9; }
.amz-att-ring-fill { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.amz-att-ring-green  .amz-att-ring-fill { stroke: var(--amz-green); }
.amz-att-ring-yellow .amz-att-ring-fill { stroke: var(--amz-yellow); }
.amz-att-ring-red    .amz-att-ring-fill { stroke: var(--amz-red); }
.amz-att-ring-label {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.amz-att-ring-label .amz-hero-number { font-size: 22px !important; }
.amz-att-ring-label .amz-hero-number small { font-size: 12px !important; }
@media (max-width: 460px) { .amz-att-ring { width: 80px; height: 80px; } }

/* ===================================================================
   نوار گرافیکی درصد نتایج آزمون (جایگزین لیست متنی ساده)
   =================================================================== */
.amz-examres-list { display: flex; flex-direction: column; gap: 12px; }
.amz-examres-row { padding: 10px 12px; border: 1px solid var(--amz-border); border-radius: var(--amz-radius-sm); background: var(--amz-canvas); transition: box-shadow .15s ease, transform .15s ease; }
.amz-examres-row:hover { box-shadow: var(--amz-shadow-sm); transform: translateY(-1px); }
.amz-examres-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.amz-examres-top strong { font-size: 13.5px; color: var(--amz-ink); }
.amz-examres-pct { font-size: 13px; font-weight: 700; }
.amz-examres-pct.amz-tone-green  { color: var(--amz-green); }
.amz-examres-pct.amz-tone-yellow { color: var(--amz-yellow); }
.amz-examres-pct.amz-tone-red    { color: var(--amz-red); }
.amz-examres-bar { height: 6px; border-radius: 999px; background: var(--amz-border); overflow: hidden; margin-bottom: 8px; }
.amz-examres-bar-fill { display: block; height: 100%; border-radius: 999px; }
.amz-examres-bar-fill.amz-tone-green  { background: var(--amz-green); }
.amz-examres-bar-fill.amz-tone-yellow { background: var(--amz-yellow); }
.amz-examres-bar-fill.amz-tone-red    { background: var(--amz-red); }
.amz-examres-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--amz-ink-faint); }

/* ===== لیست نتایج آزمون + دروس دسته‌بندی‌شده (v1.35.0) ===== */
.amz-el-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.amz-el-toolbar input[type="search"] { flex: 1 1 200px; min-width: 0; }
.amz-el-toolbar select { flex: 0 1 150px; min-width: 0; max-width: 100%; }
.amz-el-count { font-size: 12px; color: var(--amz-ink-faint); margin-bottom: 8px; }
.amz-el-list { display: flex; flex-direction: column; gap: 8px; }
.amz-el-item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(90px, .7fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--amz-border); border-radius: var(--amz-radius-sm); background: var(--amz-canvas); }
.amz-el-item[hidden], .amz-sg [hidden], .amz-el-more[hidden], .amz-el-none[hidden], .amz-mini-list li[hidden] { display: none !important; }
.amz-el-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.amz-el-main strong { font-size: 13.5px; color: var(--amz-ink); }
.amz-el-topic, .amz-el-date { font-size: 11.5px; color: var(--amz-ink-faint); overflow: hidden; text-overflow: ellipsis; }
.amz-el-pct .amz-examres-bar { margin: 4px 0 0; }
.amz-el-stats { display: flex; gap: 14px; }
.amz-el-stats span { display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.amz-el-stats small { font-size: 10.5px; color: var(--amz-ink-faint); }
.amz-el-stats b { color: var(--amz-ink); font-size: 13px; }
.amz-el-more { display: block; width: 100%; margin-top: 10px; padding: 8px 12px; border: 1px dashed var(--amz-border); border-radius: var(--amz-radius-sm); background: transparent; color: var(--amz-ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.amz-el-more:hover { border-color: #EF5A3C; color: #C8431F; }
@media (max-width: 640px) {
	.amz-el-item { grid-template-columns: 1fr auto; }
	.amz-el-stats { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--amz-border); padding-top: 8px; }
	.amz-el-toolbar select { flex: 1 1 45%; }
}
.amz-sg-track-block { margin-bottom: 20px; }
.amz-sg-track-title { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-size: 14px; }
.amz-sg-grade-title { margin: 10px 0 6px; font-size: 12.5px; color: var(--amz-ink-faint); font-weight: 600; }

/* ===== کارنامه‌ی آزمون — طراحی مینیمال (v1.42.1) =====
   فقط خاکستری‌های خنثی + رنگ برند (EF5A3C) روی حلقه‌ی درصد و تراز. همه‌ی قواعد زیر .amz-el اسکوپ شده‌اند. */
.amz-el-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.amz-el-f { display: flex; flex-direction: column; gap: 3px; flex: 1 1 88px; min-width: 0; max-width: 150px; }
.amz-el-f span { font-size: 11px; color: var(--amz-ink-faint); }
.amz-el-f select { flex: none; width: 100%; min-width: 0; max-width: 100%; }
.amz-el-clear { flex: none; padding: 6px 12px; border: 1px solid var(--amz-border); border-radius: 8px; background: transparent; color: var(--amz-ink-soft); font: inherit; font-size: 12px; cursor: pointer; }
.amz-el-clear:hover { color: #C8431F; border-color: #EF5A3C; }
.amz-el-clear[hidden] { display: none; }
.amz-el-list { display: flex; flex-direction: column; gap: 12px; }
.amz-ex[hidden], .amz-table-scroll tr[hidden] { display: none !important; }
.amz-ex { border: 1px solid var(--amz-border); border-radius: 16px; background: var(--amz-surface, var(--amz-canvas)); overflow: hidden; }
.amz-ex-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.amz-ex-head::-webkit-details-marker { display: none; }
.amz-ex-head::marker { content: ''; }
.amz-ex-head:focus-visible { outline: 2px solid #EF5A3C; outline-offset: -2px; }
.amz-ex-stamp { flex: none; width: 58px; padding: 8px 4px 7px; border-radius: 12px; text-align: center; background: var(--amz-canvas); line-height: 1.15; }
.amz-ex-stamp b { display: block; font-size: 22px; font-weight: 800; color: var(--amz-ink); }
.amz-ex-stamp small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--amz-ink-faint); }
.amz-ex-headtext { flex: 1 1 auto; min-width: 0; }
.amz-ex-title { margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 800; color: var(--amz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amz-ex-meta { display: block; margin-top: 2px; font-size: 11.5px; color: var(--amz-ink-faint); }
.amz-ex-pcts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.amz-pchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--amz-border); border-radius: 999px; font-size: 11.5px; color: var(--amz-ink-soft); white-space: nowrap; }
.amz-pchip b { font-weight: 800; color: var(--amz-ink); }
.amz-pchip-more { font-weight: 700; }
.amz-ex-hero { display: flex; gap: 8px; flex: none; }
.amz-ex-tile { min-width: 72px; padding: 6px 10px; border-radius: 12px; background: var(--amz-canvas); display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.amz-ex-tile small { font-size: 10.5px; color: var(--amz-ink-faint); }
.amz-ex-tile b { font-size: 16px; font-weight: 800; color: var(--amz-ink); }
.amz-ex-tile-accent { background: rgba(239, 90, 60, .10); }
.amz-ex-tile-accent b { color: #EF5A3C; }
.amz-ex-chev { flex: none; width: 8px; height: 8px; border-inline-end: 2px solid var(--amz-ink-faint); border-bottom: 2px solid var(--amz-ink-faint); transform: rotate(45deg); transition: transform .18s ease; }
details.amz-ex[open] .amz-ex-chev { transform: rotate(-135deg); }
details.amz-ex[open] > .amz-ex-head { border-bottom: 1px solid var(--amz-border); }
.amz-ex-body { padding: 16px; }
.amz-ex-key { display: flex; margin-bottom: 12px; font-size: 11.5px; color: var(--amz-ink-faint); }
.amz-ex-key span { display: inline-flex; align-items: center; gap: 6px; }
.amz-ex-key i { width: 3px; height: 12px; border-radius: 2px; background: var(--amz-ink); }
.amz-ex-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.amz-ex-sub { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; text-align: center; min-width: 0; background: var(--amz-canvas); border-radius: 14px; }
.amz-ring { position: relative; width: 84px; height: 84px; color: #EF5A3C; }
.amz-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.amz-ring-track, .amz-ring-fill { fill: none; stroke-width: 6; }
.amz-ring-track { stroke: var(--amz-border); }
.amz-ring-fill { stroke: currentColor; stroke-linecap: round; animation: amz-ring-in .8s cubic-bezier(.22,.8,.3,1) both; }
.amz-ring-avg { stroke: var(--amz-ink); stroke-width: 2.4; stroke-linecap: round; }
.amz-ring-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; direction: ltr; }
.amz-ring-val b { font-size: 20px; font-weight: 800; line-height: 1; color: var(--amz-ink); }
.amz-ring-val small { font-size: 10px; color: var(--amz-ink-faint); align-self: center; margin-top: 2px; }
@keyframes amz-ring-in { from { stroke-dasharray: 0 100; } }
.amz-ex-subname { font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--amz-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.amz-ex-avg { font-size: 11px; color: var(--amz-ink-faint); }
.amz-ex-avg b { color: var(--amz-ink); }
.amz-ex-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.amz-ex-chips span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--amz-surface, #fff); color: var(--amz-ink-soft); }
.amz-ex-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-size: 11px; color: var(--amz-ink-faint); }
.amz-ex-legend b { color: var(--amz-ink); }
.amz-tbl-bar { margin-top: 8px; }
/* هدر کارنامه: همیشه wrap می‌شود تا در ستون باریک چیزی بریده نشود */
.amz-ex-head { flex-wrap: wrap; }
.amz-ex-headtext { flex: 1 1 140px; }
.amz-ex-chev { order: 2; }
.amz-ex-hero { order: 3; flex: 1 1 100%; flex-wrap: wrap; }
.amz-ex-tile { flex: 1 1 64px; min-width: 0; }
.amz-ex-title { white-space: normal; overflow-wrap: anywhere; }
.amz-ex-subjects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); }
.amz-pchip { white-space: normal; }
@media (max-width: 720px) {
	.amz-ex-head { padding: 12px; gap: 10px; }
	.amz-ex-body { padding: 12px; }
	.amz-ex-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 300px) { .amz-ex-subjects { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .amz-ring-fill { animation: none; } .amz-ex-chev { transition: none; } }

/* ===== کارت‌های خلاصه‌ی داشبورد پورتال — آیکون دایره‌ای پاستلی (سند طراحی، v1.39.0) ===== */
.amz-mini-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.amz-mini-head h3 { margin: 0; padding: 0; border: none; }
.amz-mini-icon {
	flex: none; width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.amz-mini-icon .dashicons { font-size: 19px !important; width: 19px; height: 19px; }
.amz-mini-icon-brand  { background: var(--amz-brand-light);  color: var(--amz-brand); }
.amz-mini-icon-green  { background: var(--amz-green-bg);     color: var(--amz-green); }
.amz-mini-icon-red    { background: var(--amz-red-bg);       color: var(--amz-red); }
.amz-mini-icon-blue   { background: var(--amz-blue-bg);      color: var(--amz-blue); }
.amz-mini-icon-purple { background: var(--amz-purple-bg);    color: var(--amz-purple); }
.amz-mini-icon-teal   { background: var(--amz-teal-bg);      color: var(--amz-teal); }
.amz-mini-card { position: relative; overflow: hidden; }
.amz-mini-card::before {
	content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
	background: var(--amz-brand-grad); opacity: 0; transition: opacity .15s ease;
}
.amz-mini-card:hover::before { opacity: 1; }

/* هیرو پروفایل: لمسِ ظریفِ برند بالای کارت، بدون شلوغ شدن */
.amz-profile-hero { position: relative; overflow: hidden; }
.amz-profile-hero::before {
	content: ''; position: absolute; inset-inline-start: 0; top: 0; height: 4px; width: 100%;
	background: var(--amz-brand-grad);
}
.amz-profile-avatar { background: var(--amz-brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(239, 90, 60, .25); }

@media (max-width: 460px) {
	.amz-mini-icon { width: 34px; height: 34px; }
	.amz-mini-icon .dashicons { font-size: 16px !important; width: 16px; height: 16px; }
}


/* ===================================================================
   v1.42.4 — ریسپانسیو کامل پورتال (آیفون و همه‌ی اندازه‌ها)
   =================================================================== */
.amz-mini-card, .amz-profile-hero, .amz-homework-history-item, .amz-homework-upload-form { min-width: 0; max-width: 100%; }
.amz-mini-card-wide { grid-column: 1 / -1; }
.amz-mini-list li, .amz-homework-note, .amz-homework-file { overflow-wrap: anywhere; }
.amz-homework-file { max-width: 100%; }
.amz-overview-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 900px) { .amz-overview-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); } }
@media (max-width: 640px) {
	.amz-hero-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amz-hero-stat { min-width: 0; }
	.amz-hero-cta { width: 100%; justify-content: center; }
	.amz-profile-identity { flex-wrap: wrap; }
	.amz-homework-upload-form { padding: 12px; }
	.amz-homework-head { align-items: flex-start; }
	.amz-mini-card { padding: 14px; }
	/* iOS: فونت زیر ۱۶px باعث zoom ناخواسته هنگام فوکوس می‌شود */
	.amz-form2 input, .amz-form2 select, .amz-form2 textarea { font-size: 16px !important; max-width: 100%; }
}
@media (max-width: 360px) {
	.amz-profile-hero { padding: 14px; }
	.amz-mini-icon { width: 34px; height: 34px; }
	.amz-hero-number { font-size: 26px !important; }
	.amz-hw-type-toggle label { font-size: 11.5px !important; padding: 9px 4px !important; }
}
@supports (padding: env(safe-area-inset-bottom)) {
	.amz-page-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------------
   منوی همبرگری پورتال دانش‌آموز — همان طراحی و مقادیر منوی کادر (kiosk_print_css در admin)،
   فقط به‌صورت کشوی کشویی در همه‌ی عرض‌ها (چون پورتال داخل هدر واقعی سایت است).
   --------------------------------------------------------------------- */
.amz-portal-scope .amz-kiosk-sidebar, .amz-portal-scope .amz-kiosk-sidebar *, .amz-portal-scope .amz-kiosk-overlay { box-sizing: border-box; }
.amz-portal-scope .amz-kiosk-sidebar {
	position: fixed; right: 0; top: 0; bottom: 0; z-index: 100001;
	width: 264px; max-width: 86vw;
	display: flex; flex-direction: column; align-items: stretch;
	background: var(--amz-surface); border-left: 1px solid var(--amz-line);
	padding: 20px 14px 16px; font-family: 'Vazirmatn', Tahoma, sans-serif;
	transform: translateX(100%); visibility: hidden;
	transition: transform .22s ease, visibility 0s linear .22s;
	box-shadow: -8px 0 30px rgba(35, 20, 10, .18);
	overflow-y: auto;
}
.amz-portal-scope .amz-kiosk-sidebar.is-open { transform: translateX(0); visibility: visible; transition: transform .22s ease, visibility 0s; }
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-brand {
	display: flex; align-items: center; gap: 10px; flex: none;
	padding: 0 6px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--amz-line);
}
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-brand-icon {
	flex: none; width: 38px; height: 38px; line-height: 38px; text-align: center;
	border-radius: 11px; color: #fff; font-size: 20px !important;
	background: linear-gradient(140deg, var(--amz-brand) 0%, var(--amz-brand-dark) 100%);
}
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-brand-text {
	font-weight: 800; font-size: 15.5px; color: var(--amz-ink);
	min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-nav {
	display: flex; flex-direction: column; align-items: stretch; gap: 2px;
	flex: 1 1 auto; min-height: 0; padding: 6px 0; overflow: visible;
}
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-nav a {
	display: flex; align-items: center; gap: 11px;
	color: var(--amz-ink-soft); text-decoration: none;
	font-size: 14px; font-weight: 600; padding: 12px 13px;
	border-radius: 11px; white-space: nowrap; transition: .15s;
}
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-nav a .dashicons { font-size: 18px !important; width: 18px; height: 18px; flex: none; }
.amz-portal-scope .amz-kiosk-nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-nav a:hover { background: var(--amz-canvas); color: var(--amz-ink); }
.amz-portal-scope .amz-kiosk-sidebar .amz-kiosk-nav a.is-active {
	background: linear-gradient(90deg, var(--amz-brand) 0%, var(--amz-brand-dark) 100%);
	color: #fff; box-shadow: 0 8px 18px -8px rgba(239, 90, 60, .75);
}
.amz-portal-scope .amz-kiosk-school {
	flex: none; display: flex; align-items: center; gap: 10px;
	background: var(--amz-canvas); border: 1px solid var(--amz-line);
	border-radius: 13px; padding: 11px 12px; margin-top: 10px;
}
.amz-portal-scope .amz-kiosk-school-icon {
	flex: none; width: 34px; height: 34px; line-height: 34px; text-align: center;
	border-radius: 10px; font-size: 17px !important;
	background: var(--amz-brand-light); color: var(--amz-brand);
}
.amz-portal-scope .amz-kiosk-school-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.amz-portal-scope .amz-kiosk-school-text strong { font-size: 12.5px; color: var(--amz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amz-portal-scope .amz-kiosk-school-text span { font-size: 11px; color: var(--amz-ink-soft); }
.amz-portal-scope .amz-kiosk-overlay { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; background: rgba(20, 15, 10, .4); }
.amz-portal-scope .amz-kiosk-overlay.is-open { display: block; }
body.amz-kiosk-nav-open { overflow: hidden; }
.amz-portal-scope .amz-kiosk-menu-toggle {
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; flex: none; border: none; border-radius: 10px; padding: 0;
	background: var(--amz-canvas); color: var(--amz-ink); cursor: pointer;
}
.amz-portal-scope .amz-kiosk-menu-toggle:hover { background: var(--amz-brand-light); color: var(--amz-brand-dark); }
.amz-portal-scope .amz-kiosk-menu-toggle .dashicons { font-size: 20px !important; width: 20px; height: 20px; }

/* مقصد منو: فاصله از بالا برای هدر چسبان سایت + چشمک کوتاه بعد از رسیدن */
.amz-portal-scope #amz-sec-top, .amz-portal-scope [id^="amz-sec-"], .amz-portal-scope #amz-notes { scroll-margin-top: 90px; }
.amz-portal-scope .amz-flash { animation: amzFlash 1.6s ease; }
@keyframes amzFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--amz-brand); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .amz-portal-scope .amz-kiosk-sidebar { transition: none; } .amz-portal-scope .amz-flash { animation: none; } html { scroll-behavior: auto; } }

/* دکمه‌ی داده‌ی آزمایشی داخل پورتال (فقط دانش‌آموز «مسعود جعفری») */
.amz-portal-scope .amz-td-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 18px; padding: 16px 18px; background: var(--amz-surface); border: 1px dashed var(--amz-brand-line); border-radius: var(--amz-radius-lg); }
.amz-portal-scope .amz-td-text { flex: 1 1 320px; min-width: 0; font-size: 13px; line-height: 1.9; color: var(--amz-ink-soft); }
.amz-portal-scope .amz-td-text strong { display: block; font-size: 14px; color: var(--amz-ink); margin-bottom: 2px; }
.amz-portal-scope .amz-td-text p { margin: 0; }
.amz-portal-scope .amz-td-warn { color: var(--amz-brand-dark); }
.amz-portal-scope .amz-td-btn { padding: 11px 18px; border: 1px solid var(--amz-brand); border-radius: var(--amz-radius-md); background: var(--amz-brand); color: #fff; font-family: inherit; font-size: 13px !important; font-weight: 700; cursor: pointer; }
.amz-portal-scope .amz-td-btn:hover { background: var(--amz-brand-dark); border-color: var(--amz-brand-dark); }
.amz-portal-scope .amz-td-btn.amz-td-danger { background: transparent; color: var(--amz-red, #D23B2E); border-color: var(--amz-red, #D23B2E); }
.amz-portal-scope .amz-td-btn.amz-td-danger:hover { background: var(--amz-red, #D23B2E); color: #fff; }

/* ===== 1.42.25: حلقه‌ی فوکوس صفحه‌کلید (WCAG 2.4.7) — فقط هنگام ناوبری با کیبورد ===== */
.amz-portal-scope a:focus-visible, .amz-portal-scope button:focus-visible, .amz-portal-scope input:focus-visible,
.amz-portal-scope select:focus-visible, .amz-portal-scope textarea:focus-visible, .amz-form2 input:focus-visible,
.amz-form2 select:focus-visible, .amz-form2 textarea:focus-visible, .amz-form2 button:focus-visible { outline: 2px solid #C8431F; outline-offset: 2px; }
