/* ===========================================================
   Online Exam Test Manager — Frontend Styles
   Token system: Navy + Gold (institute / certificate identity)
   =========================================================== */

#oetm-app, #oetm-app * {
	box-sizing: border-box;
}

#oetm-app {
	--oetm-navy: #0b2545;
	--oetm-navy-light: #13315c;
	--oetm-navy-dark: #071a33;
	--oetm-gold: #c9a227;
	--oetm-gold-light: #e6c659;
	--oetm-bg: #f3f5f9;
	--oetm-white: #ffffff;
	--oetm-text: #1c1f26;
	--oetm-muted: #65707f;
	--oetm-green: #1f9d55;
	--oetm-green-bg: #e7f7ed;
	--oetm-red: #d64545;
	--oetm-red-bg: #fdeaea;
	--oetm-amber: #c97a12;
	--oetm-amber-bg: #fdf1de;
	--oetm-radius: 16px;
	--oetm-shadow: 0 2px 4px rgba(11,37,69,0.06), 0 12px 24px rgba(11,37,69,0.10), 0 32px 64px rgba(11,37,69,0.16);

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--oetm-text);
	background: var(--oetm-bg);
	max-width: 1040px;
	margin: 0 auto;
	border-radius: 22px;
	overflow: hidden;
	position: relative;
	box-shadow: var(--oetm-shadow);
	min-height: 480px;
}
#oetm-app::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
	z-index: 5;
	pointer-events: none;
}

#oetm-app h1, #oetm-app h2, #oetm-app h3 {
	font-family: 'Fraunces', Georgia, serif;
	margin: 0;
}

/* ---------------- Screens ---------------- */
.oetm-screen {
	display: none;
	padding: 48px 32px;
	min-height: 480px;
}
.oetm-screen--active {
	display: block;
}

/* ---------------- Emblem (kept for exam-screen possible reuse, currently unused) ---------------- */
.oetm-emblem--small {
	width: 38px;
	height: 38px;
	font-size: 15px;
	margin: 0;
	flex-shrink: 0;
}

/* ---------------- Login screen ---------------- */
#oetm-screen-login {
	padding: 0;
}
.oetm-login-card {
	display: grid;
	grid-template-columns: 1.18fr 1fr;
	min-height: 620px;
}

/* ---- Letterhead aside (navy) ---- */
.oetm-login-aside {
	background:
		repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 14px),
		radial-gradient(circle at 15% 12%, rgba(201,162,39,0.18), transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(201,162,39,0.10), transparent 50%),
		linear-gradient(155deg, var(--oetm-navy) 0%, var(--oetm-navy-dark) 100%);
	color: #fff;
	padding: 56px 38px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	box-shadow: inset -1px 0 0 rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
	animation: oetm-fade-up 0.5s ease both;
}
.oetm-login-aside::before {
	content: '';
	position: absolute;
	inset: 18px;
	border: 1px solid rgba(201, 162, 39, 0.35);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
	pointer-events: none;
}
.oetm-eyebrow {
	font-size: 11.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--oetm-gold-light);
	font-weight: 700;
	margin-bottom: 18px;
	display: block;
}
.oetm-login-aside .oetm-institute-name {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 17.5px;
	line-height: 1.3;
	color: #fff;
	letter-spacing: 0.015em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	text-shadow: 0 1px 0 rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.25);
}
.oetm-aside-rule {
	width: 70px;
	height: 0;
	margin: 22px 0 18px;
	border-top: 2px solid var(--oetm-gold);
	position: relative;
}
.oetm-aside-rule::after {
	content: '';
	position: absolute;
	left: 50%;
	top: -4px;
	width: 7px;
	height: 7px;
	background: var(--oetm-gold);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 0 0 0 3px var(--oetm-navy-dark);
}
.oetm-login-aside .oetm-slogan {
	font-family: 'Fraunces', serif;
	font-style: italic;
	font-size: 16.5px;
	color: var(--oetm-gold-light);
	margin: 0 0 30px;
}
.oetm-badge-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.oetm-badge-list li {
	font-size: 12.5px;
	color: #d6deeb;
	padding-left: 18px;
	position: relative;
	letter-spacing: 0.01em;
}
.oetm-badge-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 7px;
	height: 7px;
	border: 1.5px solid var(--oetm-gold);
	border-radius: 50%;
	box-shadow: 0 0 4px rgba(201,162,39,0.5);
}
.oetm-aside-address {
	font-size: 12px;
	color: #93a1b8;
	line-height: 1.6;
	margin: 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,0.12);
}

/* ---- Form panel (white) ---- */
.oetm-login-form-panel {
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	animation: oetm-fade-up 0.5s ease 0.08s both;
}
@keyframes oetm-fade-up {
	from { opacity: 0; }
	to { opacity: 1; }
}
.oetm-form-title {
	font-size: 24px;
	color: var(--oetm-navy);
	margin: 0 0 6px;
}
.oetm-form-subtitle {
	font-size: 13.5px;
	color: var(--oetm-muted);
	margin: 0 0 28px;
}

.oetm-form {
	text-align: left;
}
.oetm-field {
	margin-bottom: 17px;
}
.oetm-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--oetm-navy);
	margin-bottom: 6px;
	letter-spacing: 0.01em;
}
.oetm-field input {
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid #e3e7ee;
	border-radius: 9px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--oetm-text);
	background: #fafbfd;
	box-shadow: inset 0 1px 3px rgba(11,37,69,0.05);
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.oetm-field input:hover {
	border-color: #c7d0de;
}
.oetm-field input:focus {
	outline: none;
	border-color: var(--oetm-navy);
	background: var(--oetm-white);
	box-shadow: inset 0 1px 3px rgba(11,37,69,0.05), 0 0 0 3.5px rgba(11, 37, 69, 0.1);
}
.oetm-field input::placeholder {
	color: #aab2c0;
}

/* Custom-built dropdown (replaces native <select> to avoid browser
   rendering quirks that clip option text) */
.oetm-select-wrap {
	position: relative;
}
.oetm-select-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 15px;
	border: 1.5px solid #e3e7ee;
	border-radius: 9px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--oetm-text);
	background: #fafbfd;
	box-shadow: inset 0 1px 3px rgba(11,37,69,0.05);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.oetm-select-trigger span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.oetm-select-trigger::after {
	content: '';
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--oetm-navy);
	border-bottom: 2px solid var(--oetm-navy);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.15s;
}
.oetm-select-trigger[aria-expanded="true"]::after {
	transform: translateY(2px) rotate(-135deg);
}
.oetm-select-trigger:hover {
	border-color: #c7d0de;
}
.oetm-select-trigger:focus {
	outline: none;
	border-color: var(--oetm-navy);
	background: var(--oetm-white);
	box-shadow: 0 0 0 3.5px rgba(11, 37, 69, 0.1);
}
.oetm-select-trigger--placeholder span {
	color: #aab2c0;
}

.oetm-select-options {
	position: fixed;
	background: #fff;
	border: 1.5px solid #e3e7ee;
	border-radius: 10px;
	box-shadow: 0 18px 36px rgba(11, 37, 69, 0.22);
	max-height: 260px;
	overflow-y: auto;
	z-index: 99999;
	list-style: none;
	margin: 0;
	padding: 6px;
}
.oetm-select-options[hidden] {
	display: none;
}
.oetm-select-option {
	padding: 10px 12px;
	border-radius: 7px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	color: var(--oetm-text);
	white-space: normal;
	word-break: break-word;
}
.oetm-select-option:hover,
.oetm-select-option.is-active {
	background: var(--oetm-bg);
}
.oetm-select-option.is-selected {
	background: #e9eef7;
	color: var(--oetm-navy);
	font-weight: 700;
}
.oetm-select-empty {
	padding: 10px 12px;
	font-size: 13px;
	color: var(--oetm-muted);
}

.oetm-error-text {
	color: var(--oetm-red);
	font-size: 13px;
	background: var(--oetm-red-bg);
	padding: 10px 12px;
	border-radius: 8px;
	margin: 0 0 14px;
}

/* ---------------- Buttons ---------------- */
.oetm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 9px;
	padding: 14px 22px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
	letter-spacing: 0.01em;
}
.oetm-btn:active {
	transform: translateY(1px);
}
.oetm-btn--full {
	width: 100%;
	margin-top: 6px;
}
.oetm-btn--primary {
	background: linear-gradient(160deg, var(--oetm-navy-light) 0%, var(--oetm-navy-dark) 100%);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 24px rgba(11, 37, 69, 0.32), 0 2px 4px rgba(11,37,69,0.2);
	position: relative;
	overflow: hidden;
}
.oetm-btn--primary::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 50%;
	background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent);
	pointer-events: none;
}
.oetm-btn--primary:hover {
	box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 30px rgba(11, 37, 69, 0.4), 0 3px 6px rgba(11,37,69,0.25);
	transform: translateY(-1px);
}
.oetm-btn--gold {
	background: linear-gradient(135deg, var(--oetm-gold-light), var(--oetm-gold));
	color: var(--oetm-navy-dark);
	box-shadow: 0 8px 20px rgba(201, 162, 39, 0.32);
	margin-bottom: 10px;
}
.oetm-btn--ghost {
	background: transparent;
	color: var(--oetm-muted);
	border: 1.5px solid #dde2ea;
}
.oetm-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------------- Exam screen ---------------- */
#oetm-screen-exam {
	padding: 0;
}
.oetm-exam-topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: linear-gradient(135deg, var(--oetm-navy), var(--oetm-navy-dark));
	color: #fff;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.oetm-exam-course {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.oetm-exam-course-name {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}
.oetm-exam-student-name {
	font-size: 12px;
	color: #c7d2e3;
}
.oetm-exam-progress {
	font-size: 13px;
	color: #c7d2e3;
	font-weight: 600;
	background: rgba(255,255,255,0.08);
	padding: 6px 12px;
	border-radius: 20px;
}
.oetm-timer {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,0.08);
	padding: 8px 16px;
	border-radius: 12px;
	border: 1px solid rgba(201,162,39,0.4);
}
.oetm-timer-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #c7d2e3;
}
.oetm-timer-value {
	font-family: 'Space Mono', monospace;
	font-size: 24px;
	font-weight: 700;
	color: var(--oetm-gold-light);
	min-width: 76px;
	text-align: right;
}
.oetm-timer--warning .oetm-timer-value { color: var(--oetm-amber); }
.oetm-timer--danger .oetm-timer-value {
	color: #ff7a7a;
	animation: oetm-pulse 1s infinite;
}
@keyframes oetm-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.oetm-timer-warning {
	background: var(--oetm-amber-bg);
	color: var(--oetm-amber);
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	padding: 10px;
	animation: oetm-slidedown 0.3s ease;
}
.oetm-timer-warning--danger {
	background: var(--oetm-red-bg);
	color: var(--oetm-red);
}
@keyframes oetm-slidedown {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.oetm-questions-wrap {
	padding: 24px 22px 10px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.oetm-q-card {
	background: var(--oetm-white);
	border-radius: var(--oetm-radius);
	padding: 20px;
	box-shadow: 0 4px 16px rgba(11,37,69,0.06);
	border: 1px solid #ecf0f5;
}
.oetm-q-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--oetm-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	margin-right: 10px;
	flex-shrink: 0;
}
.oetm-q-text {
	display: flex;
	align-items: flex-start;
	font-weight: 600;
	font-size: 15.5px;
	margin-bottom: 16px;
	line-height: 1.5;
}
.oetm-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.oetm-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid #dde2ea;
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
	font-size: 14.5px;
	font-family: 'Inter', -apple-system, sans-serif !important;
	color: #1c1f26 !important;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}
.oetm-option > span:last-child {
	color: #1c1f26 !important;
	font-size: 14.5px !important;
	line-height: 1.4 !important;
	flex: 1;
}
.oetm-option:hover:not(.oetm-option--locked) {
	border-color: #13315c;
	background: #f5f7fb;
	transform: translateY(-1px);
}
.oetm-option-letter {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #eef1f7;
	color: #0b2545 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700 !important;
	flex-shrink: 0;
	line-height: 1 !important;
}
.oetm-option--locked {
	cursor: not-allowed;
}
.oetm-option--correct {
	background: #e7f7ed !important;
	border-color: #1f9d55 !important;
}
.oetm-option--correct > span:last-child { color: #145c33 !important; }
.oetm-option--correct .oetm-option-letter {
	background: #1f9d55 !important;
	color: #fff !important;
}
.oetm-option--wrong {
	background: #fdeaea !important;
	border-color: #d64545 !important;
}
.oetm-option--wrong > span:last-child { color: #8c2424 !important; }
.oetm-option--wrong .oetm-option-letter {
	background: #d64545 !important;
	color: #fff !important;
}
.oetm-option--dim {
	opacity: 0.55;
}

.oetm-submit-bar {
	position: sticky;
	bottom: 0;
	background: linear-gradient(180deg, rgba(243,245,249,0), var(--oetm-bg) 35%);
	padding: 22px;
	text-align: center;
}
#oetm-submit-btn {
	min-width: 220px;
}

/* ---------------- Loading overlay ---------------- */
.oetm-loading {
	position: absolute;
	inset: 0;
	background: rgba(11,37,69,0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: #fff;
	z-index: 50;
	border-radius: 22px;
}
.oetm-loading[hidden] {
	display: none !important;
}
.oetm-spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 4px solid rgba(255,255,255,0.25);
	border-top-color: var(--oetm-gold);
	animation: oetm-spin 0.8s linear infinite;
}
@keyframes oetm-spin {
	to { transform: rotate(360deg); }
}

/* ---------------- Result popup ---------------- */
.oetm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7,26,51,0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
}
.oetm-overlay[hidden] {
	display: none !important;
}
.oetm-result-card {
	background: #fff;
	border-radius: 20px;
	max-width: 480px;
	width: 100%;
	padding: 32px 28px;
	text-align: center;
	box-shadow: 0 30px 60px rgba(0,0,0,0.3);
	animation: oetm-pop 0.25s ease;
	max-height: 90vh;
	overflow-y: auto;
}
@keyframes oetm-pop {
	from { transform: scale(0.92); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

/* ---------------- Activity report in result popup ---------------- */
.oetm-activity-section {
	background: #f8faff;
	border: 1px solid #e1e6ee;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 12px;
	text-align: left;
}
.oetm-activity-title {
	font-size: 13px;
	font-weight: 700;
	color: #0b2545;
	margin-bottom: 10px;
	letter-spacing: 0.02em;
}
.oetm-activity-stats {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
	margin-bottom: 10px;
}
.oetm-activity-stat {
	background: #fff;
	border-radius: 8px;
	padding: 8px 6px;
	text-align: center;
	border: 1px solid #e8ecf4;
}
.oetm-activity-stat-num { display: block; font-size: 20px; font-weight: 800; color: #0b2545; }
.oetm-activity-stat-num--warn  { color: #c97a12; }
.oetm-activity-stat-num--alert { color: #d64545; }
.oetm-activity-stat-label {
	display: block;
	font-size: 10px;
	color: #65707f;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.oetm-activity-log {
	max-height: 140px;
	overflow-y: auto;
	font-size: 11.5px;
	color: #4a5568;
	line-height: 1.6;
}
.oetm-activity-log-item {
	display: flex;
	gap: 8px;
	padding: 4px 0;
	border-bottom: 1px solid #f0f3f8;
}
.oetm-activity-log-item:last-child { border-bottom: none; }
.oetm-activity-log-time { color: #93a1b8; font-size: 11px; white-space: nowrap; flex-shrink: 0; padding-top: 1px; }
.oetm-activity-log-event { flex: 1; }
.oetm-activity-log-event--warn  { color: #c97a12; font-weight: 600; }
.oetm-activity-log-event--alert { color: #d64545; font-weight: 600; }
.oetm-activity-empty { color: #93a1b8; font-size: 12px; text-align: center; padding: 8px 0; }
.oetm-result-status {
	display: inline-block;
	padding: 6px 18px;
	border-radius: 20px;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.06em;
	margin-bottom: 14px;
}
.oetm-result-status--pass {
	background: var(--oetm-green-bg);
	color: var(--oetm-green);
}
.oetm-result-status--fail {
	background: var(--oetm-red-bg);
	color: var(--oetm-red);
}
.oetm-result-percentage {
	font-family: 'Fraunces', serif;
	font-size: 52px;
	font-weight: 700;
	color: var(--oetm-navy);
	line-height: 1;
}
.oetm-result-message {
	color: var(--oetm-muted);
	font-size: 14.5px;
	margin: 10px 0 22px;
	line-height: 1.5;
}
.oetm-result-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 24px;
}
.oetm-result-stat {
	background: var(--oetm-bg);
	border-radius: 12px;
	padding: 14px 8px;
}
.oetm-result-stat-num {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: var(--oetm-navy);
}
.oetm-result-stat--correct .oetm-result-stat-num { color: var(--oetm-green); }
.oetm-result-stat--wrong .oetm-result-stat-num { color: var(--oetm-red); }
.oetm-result-stat-label {
	display: block;
	font-size: 11px;
	color: var(--oetm-muted);
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---------------- Certificate modal ---------------- */
.oetm-certificate-modal {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	max-width: 760px;
	width: 100%;
	position: relative;
	text-align: center;
}
.oetm-certificate-modal canvas {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin-bottom: 16px;
}
.oetm-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	color: var(--oetm-muted);
	cursor: pointer;
	line-height: 1;
}

/* ---------------- Camera monitoring ---------------- */
.oetm-camera-denied {
	background: #fff3cd;
	color: #856404;
	font-weight: 600;
	font-size: 13.5px;
	padding: 12px 18px;
	text-align: center;
	border-bottom: 1px solid #ffc107;
}

.oetm-camera-box {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 200px;
	background: #0b2545;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(0,0,0,0.45);
	z-index: 999;
	border: 2px solid #c9a227;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}
.oetm-camera-box-header {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	font-size: 11.5px;
	font-weight: 700;
	color: #e6c659;
	background: #071a33;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: grab;
}
.oetm-camera-box-header:active { cursor: grabbing; }
.oetm-camera-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e74c3c;
	animation: oetm-blink 1.2s infinite;
	flex-shrink: 0;
}
@keyframes oetm-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}
.oetm-camera-video {
	width: 100%;
	display: block;
	aspect-ratio: 4/3;
	object-fit: cover;
	background: #000;
}

/* ---------------- Toggle switch (admin) ---------------- */
.oetm-camera-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}
.oetm-toggle {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex-shrink: 0;
}
.oetm-toggle input { opacity: 0; width: 0; height: 0; }
.oetm-toggle-slider {
	position: absolute;
	inset: 0;
	background: #dde2ea;
	border-radius: 26px;
	transition: background 0.2s;
	cursor: pointer;
}
.oetm-toggle-slider::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.oetm-toggle input:checked + .oetm-toggle-slider { background: #1f9d55; }
.oetm-toggle input:checked + .oetm-toggle-slider::before { transform: translateX(20px); }
.oetm-toggle-label {
	font-size: 13.5px;
	color: var(--oetm-text, #1c1f26);
}
@media (max-width: 860px) {
	.oetm-login-card {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.oetm-login-aside {
		padding: 38px 32px;
	}
	.oetm-login-aside .oetm-institute-name {
		font-size: 24px;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}
	.oetm-badge-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px 18px;
		margin-bottom: 24px;
	}
	.oetm-login-form-panel {
		padding: 38px 32px 44px;
	}
}
@media (max-width: 720px) {
	#oetm-app { border-radius: 0; max-width: 100%; }
	.oetm-screen { padding: 30px 18px; }
	.oetm-options { grid-template-columns: 1fr; }
	.oetm-exam-topbar { padding: 12px 14px; gap: 10px; }
	.oetm-exam-course-name { max-width: 140px; }
	.oetm-timer-value { font-size: 19px; min-width: 60px; }
	.oetm-result-percentage { font-size: 42px; }
}
@media (max-width: 480px) {
	.oetm-login-aside, .oetm-login-form-panel {
		padding: 30px 22px;
	}
	.oetm-login-aside .oetm-institute-name {
		font-size: 20px;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}
}
@media (max-width: 420px) {
	.oetm-exam-progress { display: none; }
}

/* Section headers in exam */
.oetm-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 10px 0 4px;
}
.oetm-section-header::before,
.oetm-section-header::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, #c9a227, transparent);
}
.oetm-section-header::after { background: linear-gradient(90deg, transparent, #c9a227); }
.oetm-section-header span {
	background: var(--oetm-navy, #0b2545);
	color: #e6c659;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 20px;
	white-space: nowrap;
}
