/* ==========================================================================
   Znach Academy Teacher Portal — Core Styles
   Brand: Navy #0B1F3A / Gold #C49A4A / White #FFFFFF
   Design language: premium, academic, minimal, clean cards, subtle borders.
   ========================================================================== */

:root {
	--znach-navy: #0B1F3A;
	--znach-navy-light: #142B4F;
	--znach-navy-lighter: #1E3A63;
	--znach-gold: #C49A4A;
	--znach-gold-light: #D9B872;
	--znach-white: #FFFFFF;

	--znach-ink: #1A2332;
	--znach-text-muted: #5B6472;
	--znach-border: #E4E7EC;
	--znach-bg: #F6F7F9;
	--znach-surface: #FFFFFF;

	--znach-success: #1A7F37;
	--znach-success-bg: #E9F7EF;
	--znach-danger: #B3261E;
	--znach-danger-bg: #FBE9E8;
	--znach-warning: #92600B;
	--znach-warning-bg: #FBF1DC;
	--znach-info: #1D5C9E;
	--znach-info-bg: #E8F1FB;
	--znach-neutral: #5B6472;
	--znach-neutral-bg: #EEF0F3;

	--znach-radius-sm: 6px;
	--znach-radius-md: 10px;
	--znach-radius-lg: 16px;
	--znach-shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
	--znach-shadow-md: 0 4px 16px rgba(11, 31, 58, 0.08);
	--znach-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--znach-sidebar-width: 264px;
}

/* ---------- Reset-ish basics ---------- */
.znach-portal, .znach-login, .znach-basic-header, .znach-basic-main, .znach-basic-footer {
	font-family: var(--znach-font);
	color: var(--znach-ink);
	box-sizing: border-box;
}
.znach-portal *, .znach-login *, .znach-basic-header *, .znach-basic-main *, .znach-basic-footer * {
	box-sizing: border-box;
}
body.znach-portal-body, body.znach-login-body {
	margin: 0;
	background: var(--znach-bg);
}
.znach-icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- Basic fallback pages (non-portal) ---------- */
.znach-basic-header {
	display: flex; justify-content: space-between; align-items: center;
	padding: 20px 32px; background: var(--znach-navy); color: var(--znach-white);
}
.znach-basic-header a { color: var(--znach-white); text-decoration: none; font-weight: 600; }
.znach-basic-header__cta { background: var(--znach-gold); color: var(--znach-navy) !important; padding: 8px 18px; border-radius: var(--znach-radius-sm); }
.znach-basic-content { max-width: 780px; margin: 48px auto; padding: 0 24px; }
.znach-basic-footer { text-align: center; padding: 24px; color: var(--znach-text-muted); font-size: 13px; }

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.znach-login {
	min-height: 100vh; display: flex;
}
.znach-login__panel {
	flex: 1 1 480px; max-width: 480px;
	display: flex; flex-direction: column; justify-content: center;
	padding: 48px; background: var(--znach-white);
}
.znach-login__side {
	flex: 1; background: linear-gradient(160deg, var(--znach-navy) 0%, var(--znach-navy-lighter) 100%);
	display: flex; align-items: center; justify-content: center; padding: 48px;
	position: relative; overflow: hidden;
}
.znach-login__side::before {
	content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
	border: 1px solid rgba(196,154,74,0.25); top: -120px; right: -140px;
}
.znach-login__side::after {
	content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
	border: 1px solid rgba(196,154,74,0.18); bottom: -100px; left: -80px;
}
.znach-login__side-content { position: relative; max-width: 380px; color: var(--znach-white); }
.znach-login__side-content h2 { font-size: 30px; margin: 0 0 16px; color: var(--znach-gold-light); }
.znach-login__side-content p { line-height: 1.7; color: rgba(255,255,255,0.85); font-size: 15px; }

.znach-login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.znach-login__logo-mark, .znach-sidebar__logo-mark {
	width: 42px; height: 42px; border-radius: var(--znach-radius-sm);
	background: var(--znach-navy); color: var(--znach-gold-light);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
}
.znach-login__logo-img { height: 42px; width: auto; }
.znach-login__brand div { display: flex; flex-direction: column; line-height: 1.3; }
.znach-login__brand strong { font-size: 15px; color: var(--znach-navy); }
.znach-login__brand span { font-size: 12px; color: var(--znach-gold); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }

.znach-login h1 { font-size: 26px; margin: 0 0 8px; color: var(--znach-navy); }
.znach-login__subtitle { color: var(--znach-text-muted); margin: 0 0 28px; font-size: 14.5px; }

.znach-login__form { display: flex; flex-direction: column; gap: 6px; }
.znach-login__form label { font-size: 13px; font-weight: 600; color: var(--znach-ink); margin-top: 12px; }
.znach-login__form input[type="text"], .znach-login__form input[type="password"] {
	padding: 12px 14px; border: 1px solid var(--znach-border); border-radius: var(--znach-radius-sm);
	font-size: 14.5px; font-family: var(--znach-font); transition: border-color .15s;
}
.znach-login__form input:focus { outline: none; border-color: var(--znach-navy); box-shadow: 0 0 0 3px rgba(11,31,58,0.08); }
.znach-password-wrap { position: relative; display: flex; }
.znach-password-wrap input { flex: 1; padding-right: 42px !important; }
.znach-toggle-pass {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border: 0; background: none; padding: 0;
	color: var(--znach-text-muted); cursor: pointer; border-radius: 6px;
}
.znach-toggle-pass:hover { color: var(--znach-navy); background: rgba(11,31,58,0.06); }
.znach-toggle-pass svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.znach-login__row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 20px; font-size: 13.5px; }
.znach-login__forgot { color: var(--znach-navy); text-decoration: none; font-weight: 600; }
.znach-login__forgot:hover { text-decoration: underline; }
.znach-checkbox { display: flex; align-items: center; gap: 8px; color: var(--znach-text-muted); }
.znach-login__back { margin-top: 28px; color: var(--znach-text-muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.znach-login__back:hover { color: var(--znach-navy); }

@media (max-width: 900px) {
	.znach-login__side { display: none; }
	.znach-login__panel { max-width: none; margin: 0 auto; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.znach-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--znach-font); font-weight: 600; font-size: 14px;
	padding: 11px 20px; border-radius: var(--znach-radius-sm); border: 1px solid transparent;
	cursor: pointer; text-decoration: none; transition: all .15s; line-height: 1.2;
}
.znach-btn--primary { background: var(--znach-navy); color: var(--znach-white); }
.znach-btn--primary:hover { background: var(--znach-navy-light); }
.znach-btn--outline { background: var(--znach-white); color: var(--znach-navy); border-color: var(--znach-border); }
.znach-btn--outline:hover { border-color: var(--znach-navy); }
.znach-btn--block { width: 100%; margin-top: 22px; padding: 13px; font-size: 15px; }
.znach-btn--sm { padding: 7px 14px; font-size: 13px; }
.znach-btn[disabled] { opacity: .5; cursor: not-allowed; }
.znach-link { color: var(--znach-navy); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.znach-link:hover { text-decoration: underline; }
.znach-link--disabled { color: var(--znach-text-muted); cursor: default; }
.znach-back-link { color: var(--znach-text-muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.znach-back-link:hover { color: var(--znach-navy); }

/* ==========================================================================
   PORTAL SHELL
   ========================================================================== */
.znach-portal { display: flex; min-height: 100vh; }

.znach-sidebar {
	width: var(--znach-sidebar-width); flex-shrink: 0; background: var(--znach-navy);
	color: var(--znach-white); display: flex; flex-direction: column;
	position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
}
.znach-sidebar__brand { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.znach-sidebar__brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--znach-white); }
.znach-sidebar__logo-mark { background: rgba(196,154,74,0.15); color: var(--znach-gold-light); }
.znach-sidebar__logo-img { height: 36px; width: auto; }
.znach-sidebar__brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.znach-sidebar__brand-text strong { font-size: 14px; }
.znach-sidebar__brand-text small { font-size: 11px; color: var(--znach-gold-light); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.znach-sidebar__close { display: none; background: none; border: none; color: var(--znach-white); cursor: pointer; padding: 4px; }

.znach-sidebar__nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.znach-sidebar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.znach-sidebar__nav a {
	display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--znach-radius-sm);
	color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500;
	border-left: 3px solid transparent; transition: all .15s;
}
.znach-sidebar__nav a:hover { background: rgba(255,255,255,0.06); color: var(--znach-white); }
.znach-sidebar__nav a.is-active { background: rgba(196,154,74,0.12); color: var(--znach-white); border-left-color: var(--znach-gold); font-weight: 600; }
.znach-sidebar__footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.znach-sidebar__logout { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 600; }
.znach-sidebar__logout:hover { color: var(--znach-gold-light); }
.znach-sidebar-overlay { display: none; }

.znach-portal__main { flex: 1; margin-left: var(--znach-sidebar-width); display: flex; flex-direction: column; min-width: 0; }

.znach-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--znach-surface); border-bottom: 1px solid var(--znach-border);
	padding: 14px 28px; position: sticky; top: 0; z-index: 20;
}
.znach-topbar__menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--znach-navy); padding: 6px; }
.znach-topbar__title { font-weight: 700; font-size: 15px; color: var(--znach-navy); }
.znach-topbar__right { display: flex; align-items: center; gap: 18px; }
.znach-topbar__icon-btn { background: none; border: none; cursor: pointer; color: var(--znach-text-muted); padding: 6px; }
.znach-topbar__profile { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--znach-ink); }
.znach-topbar__name { font-size: 13.5px; font-weight: 600; }

.znach-avatar {
	width: 34px; height: 34px; border-radius: 50%; background: var(--znach-navy); color: var(--znach-gold-light);
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.znach-avatar--lg { width: 72px; height: 72px; font-size: 24px; margin: 0 auto 16px; }

.znach-portal__content { padding: 28px; max-width: 1240px; width: 100%; margin: 0 auto; }

@media (min-width: 769px) {
	.znach-topbar__menu-toggle { display: none !important; }
}

/* ==========================================================================
   PAGE HEAD / TYPOGRAPHY
   ========================================================================== */
.znach-page-head { margin-bottom: 24px; }
.znach-page-head h1 { font-size: 24px; margin: 0 0 4px; color: var(--znach-navy); }
.znach-page-head p { margin: 0; color: var(--znach-text-muted); font-size: 14.5px; }
.znach-page-head--with-action { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   STAT CARDS
   ========================================================================== */
.znach-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.znach-stat-grid--compact { margin-bottom: 0; }
.znach-stat-card {
	background: var(--znach-surface); border: 1px solid var(--znach-border); border-radius: var(--znach-radius-lg);
	padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--znach-shadow-sm);
}
.znach-stat-card__icon { color: var(--znach-navy); margin-bottom: 4px; }
.znach-stat-card__icon .znach-icon { width: 22px; height: 22px; }
.znach-stat-card__value { font-size: 28px; font-weight: 700; color: var(--znach-navy); line-height: 1; }
.znach-stat-card__label { font-size: 13px; color: var(--znach-text-muted); font-weight: 500; }
.znach-stat-card--gold { border-color: rgba(196,154,74,0.4); background: linear-gradient(180deg, #fff 0%, #FBF6EC 100%); }

/* ==========================================================================
   PANELS / CARDS / GRIDS
   ========================================================================== */
.znach-two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.znach-panel {
	background: var(--znach-surface); border: 1px solid var(--znach-border); border-radius: var(--znach-radius-lg);
	padding: 22px; box-shadow: var(--znach-shadow-sm); margin-bottom: 20px;
}
.znach-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.znach-panel__head--wrap { flex-wrap: wrap; }
.znach-panel__head h2 { font-size: 16px; margin: 0; color: var(--znach-navy); }
.znach-panel--collapsible[hidden] { display: none; }

.znach-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.znach-course-card {
	background: var(--znach-surface); border: 1px solid var(--znach-border); border-radius: var(--znach-radius-lg);
	padding: 22px; box-shadow: var(--znach-shadow-sm);
}
.znach-course-card__icon { color: var(--znach-gold); margin-bottom: 12px; }
.znach-course-card__icon .znach-icon { width: 26px; height: 26px; }
.znach-course-card h3 { margin: 0 0 14px; font-size: 16px; color: var(--znach-navy); }
.znach-course-card__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.znach-course-card__stats li { font-size: 13.5px; color: var(--znach-text-muted); }
.znach-course-card__stats strong { color: var(--znach-ink); }

/* ==========================================================================
   TABS
   ========================================================================== */
.znach-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--znach-border); margin-bottom: 20px; overflow-x: auto; }
.znach-tabs__item {
	padding: 12px 16px; font-size: 13.5px; font-weight: 600; color: var(--znach-text-muted);
	text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.znach-tabs__item:hover { color: var(--znach-navy); }
.znach-tabs__item.is-active { color: var(--znach-navy); border-bottom-color: var(--znach-gold); }

/* ==========================================================================
   TABLES
   ========================================================================== */
.znach-table-wrap { overflow-x: auto; background: var(--znach-surface); border: 1px solid var(--znach-border); border-radius: var(--znach-radius-lg); box-shadow: var(--znach-shadow-sm); }
.znach-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.znach-table th {
	text-align: left; padding: 14px 18px; background: var(--znach-bg); color: var(--znach-text-muted);
	font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid var(--znach-border);
}
.znach-table td { padding: 14px 18px; border-bottom: 1px solid var(--znach-border); color: var(--znach-ink); }
.znach-table tbody tr:last-child td { border-bottom: none; }
.znach-table tbody tr:hover { background: #FAFBFC; }

/* ==========================================================================
   BADGES
   ========================================================================== */
.znach-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.2px; }
.znach-badge--success { background: var(--znach-success-bg); color: var(--znach-success); }
.znach-badge--danger { background: var(--znach-danger-bg); color: var(--znach-danger); }
.znach-badge--warning { background: var(--znach-warning-bg); color: var(--znach-warning); }
.znach-badge--info { background: var(--znach-info-bg); color: var(--znach-info); }
.znach-badge--neutral { background: var(--znach-neutral-bg); color: var(--znach-neutral); }
.znach-badge--gold { background: rgba(196,154,74,0.15); color: #8A6420; }

/* ==========================================================================
   CLASS CARDS
   ========================================================================== */
.znach-class-list { display: flex; flex-direction: column; gap: 12px; }
.znach-class-card {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border: 1px solid var(--znach-border); border-radius: var(--znach-radius-md); padding: 16px 18px;
}
.znach-class-card__course { font-size: 12px; font-weight: 700; color: var(--znach-gold); text-transform: uppercase; letter-spacing: 0.3px; }
.znach-class-card__batch { font-size: 12.5px; color: var(--znach-text-muted); margin: 2px 0 6px; }
.znach-class-card__topic { font-size: 15px; font-weight: 600; color: var(--znach-navy); margin-bottom: 8px; }
.znach-class-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--znach-text-muted); }
.znach-class-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   ACTIVITY LIST
   ========================================================================== */
.znach-activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.znach-activity-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.znach-activity-list__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--znach-navy); }
.znach-activity-list__dot--assessment { background: var(--znach-info); }
.znach-activity-list__dot--attendance { background: var(--znach-success); }
.znach-activity-list__dot--result { background: var(--znach-gold); }
.znach-activity-list__dot--announcement { background: var(--znach-neutral); }
.znach-activity-list__text { flex: 1; color: var(--znach-ink); }
.znach-activity-list__time { color: var(--znach-text-muted); font-size: 12px; white-space: nowrap; }

/* ==========================================================================
   EMPTY / ERROR STATES
   ========================================================================== */
.znach-empty-state {
	text-align: center; padding: 48px 20px; color: var(--znach-text-muted);
}
.znach-empty-state__icon { color: var(--znach-border); margin-bottom: 12px; display: flex; justify-content: center; }
.znach-empty-state__icon .znach-icon { width: 40px; height: 40px; }
.znach-empty-state p { margin: 0; font-size: 14px; }
.znach-empty-state--error .znach-empty-state__icon { color: var(--znach-danger); font-size: 28px; font-weight: 700; }

/* ==========================================================================
   ALERTS
   ========================================================================== */
.znach-alert { padding: 13px 16px; border-radius: var(--znach-radius-sm); font-size: 13.5px; margin-bottom: 18px; font-weight: 500; }
.znach-alert--error { background: var(--znach-danger-bg); color: var(--znach-danger); }
.znach-alert--success { background: var(--znach-success-bg); color: var(--znach-success); }
.znach-alert--hidden { display: none; }

/* ==========================================================================
   FILTER BAR / FORMS
   ========================================================================== */
.znach-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.znach-filter-bar__search { position: relative; flex: 1; min-width: 220px; }
.znach-filter-bar__search .znach-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--znach-text-muted); width: 16px; height: 16px; }
.znach-filter-bar__search input { width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--znach-border); border-radius: var(--znach-radius-sm); font-size: 13.5px; }
.znach-filter-bar select, .znach-filter-bar input[type="date"] {
	padding: 10px 12px; border: 1px solid var(--znach-border); border-radius: var(--znach-radius-sm); font-size: 13.5px; background: var(--znach-white);
}

.znach-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.znach-field { display: flex; flex-direction: column; gap: 6px; }
.znach-field--full { grid-column: 1 / -1; }
.znach-field label { font-size: 13px; font-weight: 600; color: var(--znach-ink); }
.znach-field input, .znach-field select, .znach-field textarea {
	padding: 10px 12px; border: 1px solid var(--znach-border); border-radius: var(--znach-radius-sm); font-size: 13.5px; font-family: var(--znach-font);
}
.znach-field textarea { resize: vertical; }
.znach-form-note { font-size: 12.5px; color: var(--znach-text-muted); margin: 0; }

.znach-inline-edit summary { cursor: pointer; list-style: none; }
.znach-inline-edit summary::-webkit-details-marker { display: none; }
.znach-inline-edit__form { display: flex; gap: 6px; margin-top: 8px; }
.znach-inline-edit__form input { width: 90px; padding: 6px 8px; border: 1px solid var(--znach-border); border-radius: var(--znach-radius-sm); font-size: 13px; }

/* ==========================================================================
   DETAIL LIST / PROGRESS
   ========================================================================== */
.znach-detail-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.znach-detail-list > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--znach-border); padding-bottom: 10px; }
.znach-detail-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.znach-detail-list dt { color: var(--znach-text-muted); font-size: 13px; font-weight: 500; margin: 0; }
.znach-detail-list dd { margin: 0; font-weight: 600; font-size: 13.5px; color: var(--znach-ink); text-align: right; }

.znach-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; }
.znach-progress-row span:first-child { width: 120px; flex-shrink: 0; color: var(--znach-text-muted); }
.znach-progress-bar { flex: 1; height: 8px; background: var(--znach-bg); border-radius: 999px; overflow: hidden; }
.znach-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--znach-navy), var(--znach-gold)); border-radius: 999px; }

.znach-profile-card { text-align: center; }
.znach-profile-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--znach-navy); }
.znach-profile-card__id { color: var(--znach-gold); font-weight: 700; font-size: 13px; margin: 0 0 20px; letter-spacing: 0.3px; }
.znach-profile-card .znach-detail-list { text-align: left; margin-top: 20px; }

/* ==========================================================================
   ATTENDANCE
   ========================================================================== */
.znach-attendance-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.znach-attendance-list { display: flex; flex-direction: column; gap: 8px; }
.znach-attendance-row {
	display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--znach-border);
	border-radius: var(--znach-radius-md); flex-wrap: wrap;
}
.znach-attendance-row__number { color: var(--znach-text-muted); font-weight: 700; font-size: 12.5px; width: 24px; }
.znach-attendance-row__name { font-weight: 600; font-size: 14px; flex: 1; min-width: 140px; }
.znach-attendance-row__options { display: flex; gap: 6px; flex-wrap: wrap; }
.znach-att-btn {
	padding: 7px 14px; border-radius: 999px; border: 1px solid var(--znach-border); background: var(--znach-white);
	font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--znach-text-muted); transition: all .12s;
}
.znach-att-btn:hover { border-color: var(--znach-navy); }
.znach-att-btn--present.is-selected { background: var(--znach-success-bg); border-color: var(--znach-success); color: var(--znach-success); }
.znach-att-btn--absent.is-selected { background: var(--znach-danger-bg); border-color: var(--znach-danger); color: var(--znach-danger); }
.znach-att-btn--late.is-selected { background: var(--znach-warning-bg); border-color: var(--znach-warning); color: var(--znach-warning); }
.znach-att-btn--excused.is-selected { background: var(--znach-info-bg); border-color: var(--znach-info); color: var(--znach-info); }

/* ==========================================================================
   MATERIALS / ANNOUNCEMENTS
   ========================================================================== */
.znach-material-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.znach-material-title .znach-icon { color: var(--znach-gold); width: 18px; height: 18px; }

.znach-announcement-list { display: flex; flex-direction: column; gap: 14px; }
.znach-announcement-card { border: 1px solid var(--znach-border); border-radius: var(--znach-radius-md); padding: 16px 18px; }
.znach-announcement-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.znach-announcement-card__head h3 { margin: 0; font-size: 14.5px; color: var(--znach-navy); }
.znach-announcement-card__head span { font-size: 12px; color: var(--znach-text-muted); white-space: nowrap; }
.znach-announcement-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--znach-ink); line-height: 1.5; }
.znach-announcement-card__batch { font-size: 11.5px; font-weight: 700; color: var(--znach-gold); text-transform: uppercase; letter-spacing: 0.3px; }

/* ==========================================================================
   ACCESSIBILITY: focus states
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--znach-gold); outline-offset: 2px;
}

/* Phase 1 portal action controls */
.znach-quick-action{display:inline-flex;align-items:center;border:1px solid #ccd4e0;border-radius:7px;padding:8px 12px;color:#0c2342;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}.znach-quick-action:hover,.znach-quick-action:focus-visible{background:#edf3fb}@media(max-width:600px){.znach-quick-action{padding:6px;font-size:12px}}

/* Znach emerald gradient refresh */
:root { --znach-navy:#0b4032; --znach-navy-light:#135d46; --znach-navy-lighter:#217653; --znach-gold:#46b981; --znach-gold-light:#a3e5c2; --znach-info:#16764d; --znach-info-bg:#e9f8f0; --znach-bg:#f3f8f5; }
.znach-sidebar {background:linear-gradient(165deg,#145d44 0%,#0b4033 53%,#06291f 100%)!important}
.znach-sidebar__nav a.is-active {background:linear-gradient(100deg,rgba(76,185,125,.30),rgba(39,137,96,.16))!important;border-color:#69d49c!important}
.znach-btn--primary {background:linear-gradient(115deg,#1b865c,#0c573f)!important;color:#fff!important}
.znach-btn--primary:hover {background:linear-gradient(115deg,#249c6a,#137550)!important;color:#fff!important}
.znach-learning-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 24px}
.znach-learning-stats>div {background:#eaf7ef;border:1px solid #c9e9d6;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:6px}
.znach-learning-stats strong {font-size:22px;color:#10563b}.znach-learning-stats span {font-size:13px;color:#416c57}
.znach-avatar img {width:100%;height:100%;object-fit:cover;border-radius:50%}
@media(max-width:640px){.znach-learning-stats{grid-template-columns:1fr}}

/* Batch-scoped content creation dialogs */
.znach-create-dialog{border:0;border-radius:18px;padding:28px;width:min(760px,calc(100vw - 32px));max-height:85vh;overflow:auto;box-shadow:0 20px 65px #001b1840;color:#102e2b;background:#fff}.znach-create-dialog::backdrop{background:#071f1bc2}.znach-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.znach-dialog-head h2{margin:0}.znach-dialog-head button{border:0;background:#f1f5f3;border-radius:8px;padding:8px 12px;cursor:pointer}.znach-create-dialog .znach-material-fields{display:grid;grid-template-columns:1fr;gap:12px}.znach-create-dialog .znach-material-fields label{display:grid;gap:6px}.znach-create-dialog input,.znach-create-dialog select,.znach-create-dialog textarea{max-width:100%;width:100%;box-sizing:border-box}.znach-create-dialog .znach-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.znach-create-dialog .znach-field--full{grid-column:1/-1}@media(max-width:600px){.znach-create-dialog .znach-form-grid{grid-template-columns:1fr}}

/* Center the study material modal in the viewport. */
dialog.znach-material-form[open]{position:fixed;inset:0;margin:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-sizing:border-box;}
