.ftlp-wrap, .ftlp-dashboard, .ftlp-fs-overlay { --ftlp-blue: #1e5aab; --ftlp-blue-dark: #163f79; --ftlp-bg: #f4f7fb; --ftlp-border: #e1e7f0; --ftlp-text: #1c2733; --ftlp-muted: #64748b; --ftlp-green: #1a9b5c; --ftlp-red: #d6412f; --ftlp-amber: #b8860b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ftlp-text);
	max-width: 1100px;
	margin: 0 auto;
}

.ftlp-box { background: #fff; border: 1px solid var(--ftlp-border); border-radius: 10px; padding: 24px; }

/* ---------- Login ---------- */
.ftlp-login-card { background: #fff; border: 1px solid var(--ftlp-border); border-radius: 14px; padding: 32px; max-width: 420px; margin: 40px auto; box-shadow: 0 6px 24px rgba(20,40,80,0.06); }
.ftlp-title { margin: 0 0 18px; font-size: 22px; font-weight: 700; color: var(--ftlp-blue-dark); text-align: center; }
.ftlp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; background: var(--ftlp-bg); padding: 5px; border-radius: 10px; }
.ftlp-tab { flex: 1 1 auto; border: none; background: transparent; padding: 8px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ftlp-muted); cursor: pointer; }
.ftlp-tab.active { background: var(--ftlp-blue); color: #fff; }
.ftlp-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--ftlp-muted); }
.ftlp-input, .ftlp-select, .ftlp-textarea, textarea.ftlp-input {
	width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--ftlp-border);
	border-radius: 8px; font-size: 14px; background: #fbfcfe;
}
.ftlp-input:focus, .ftlp-select:focus, .ftlp-textarea:focus { outline: none; border-color: var(--ftlp-blue); background: #fff; }
.ftlp-btn-primary {
	width: 100%; margin-top: 20px; background: var(--ftlp-blue); color: #fff; border: none;
	padding: 12px 16px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.ftlp-btn-primary:hover { background: var(--ftlp-blue-dark); }
.ftlp-btn-primary:disabled { opacity: .6; cursor: default; }
.ftlp-error { color: var(--ftlp-red); font-size: 13px; margin-top: 12px; text-align: center; }

/* ---------- Dashboard shell ---------- */
.ftlp-dashboard { padding: 10px 0 40px; }
.ftlp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ftlp-header h1 { font-size: 22px; margin: 0; color: var(--ftlp-blue-dark); }
.ftlp-header .ftlp-sub { color: var(--ftlp-muted); font-size: 13px; margin-top: 2px; }
.ftlp-logout-btn { background: #fff; border: 1px solid var(--ftlp-border); color: var(--ftlp-text); padding: 9px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px; display: inline-block; text-decoration: none; }
.ftlp-logout-btn:hover { background: var(--ftlp-bg); }

.ftlp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.ftlp-stat { background: #fff; border: 1px solid var(--ftlp-border); border-radius: 12px; padding: 18px; }
.ftlp-stat .num { font-size: 26px; font-weight: 800; color: var(--ftlp-blue-dark); }
.ftlp-stat .label { font-size: 12.5px; color: var(--ftlp-muted); margin-top: 4px; }

.ftlp-panel { background: #fff; border: 1px solid var(--ftlp-border); border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.ftlp-panel h2 { font-size: 16px; margin: 0 0 16px; color: var(--ftlp-blue-dark); }
.ftlp-panel h3 { font-size: 14px; margin: 0 0 10px; }

.ftlp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.ftlp-form-grid .ftlp-field-full { grid-column: 1 / -1; }
.ftlp-form-message { margin-top: 14px; padding: 10px 12px; border-radius: 7px; font-size: 13px; display: none; }
.ftlp-form-message.ok { background: #e8f7ef; color: var(--ftlp-green); }
.ftlp-form-message.error { background: #fdecea; color: var(--ftlp-red); }

.ftlp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ftlp-table th, .ftlp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ftlp-border); }
.ftlp-table th { color: var(--ftlp-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.ftlp-table-scroll { overflow-x: auto; }

.ftlp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.ftlp-badge-pending { background: #fff4e0; color: var(--ftlp-amber); }
.ftlp-badge-approved { background: #e8f7ef; color: var(--ftlp-green); }
.ftlp-badge-rejected { background: #fdecea; color: var(--ftlp-red); }
.ftlp-badge-paid { background: #e8f7ef; color: var(--ftlp-green); }

.ftlp-empty { color: var(--ftlp-muted); font-size: 13.5px; padding: 10px 0; }

.ftlp-lab-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--ftlp-bg); padding: 5px; border-radius: 10px; max-width: 420px; }
.ftlp-lab-tabs .ftlp-tab { flex: 1 1 auto; }
.ftlp-lab-frame { width: 100%; height: 78vh; min-height: 480px; border: 1px solid var(--ftlp-border); border-radius: 10px; background: #fff; }
.ftlp-lab-timer-badge { display: inline-block; background: var(--ftlp-bg); border-radius: 8px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; color: var(--ftlp-blue-dark); margin-bottom: 10px; }

.ftlp-menu-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; background: var(--ftlp-bg); padding: 5px; border-radius: 10px; }
.ftlp-menu-tabs button { border: none; background: transparent; padding: 10px 16px; border-radius: 7px; font-size: 13.5px; font-weight: 700; color: var(--ftlp-muted); cursor: pointer; }
.ftlp-menu-tabs button.active { background: #fff; color: var(--ftlp-blue-dark); box-shadow: 0 1px 3px rgba(20,40,80,0.08); }
.ftlp-doc-current { font-size: 12px; color: var(--ftlp-muted); margin: 4px 0 8px; }
.ftlp-doc-current a { color: var(--ftlp-blue); }

/* ---------- NEET paper exam ---------- */
.ftlp-exam-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.ftlp-exam-timer { font-size: 20px; font-weight: 800; color: var(--ftlp-red); background: #fdecea; padding: 6px 16px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.ftlp-exam-body { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.ftlp-exam-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; max-height: 460px; overflow-y: auto; padding: 10px; background: var(--ftlp-bg); border-radius: 10px; }
.ftlp-navbtn { border: 1px solid var(--ftlp-border); background: #fff; border-radius: 6px; padding: 7px 0; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--ftlp-text); }
.ftlp-navbtn.answered { background: #1a9b5c; color: #fff; border-color: #1a9b5c; }
.ftlp-navbtn.unanswered { background: #fdecea; color: var(--ftlp-red); border-color: #f3b3aa; }
.ftlp-navbtn.current { outline: 3px solid var(--ftlp-blue); outline-offset: 1px; }
.ftlp-exam-question { background: #fff; border: 1px solid var(--ftlp-border); border-radius: 10px; padding: 18px; }
.ftlp-exam-qtext { font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
.ftlp-exam-diagram { margin: -6px 0 16px; }
.ftlp-exam-diagram img { max-width: 100%; max-height: 320px; border: 1px solid var(--ftlp-border); border-radius: 8px; display: block; }

.ftlp-fs-overlay { position: fixed; inset: 0; background: rgba(20,30,50,0.85); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ftlp-fs-box { background: #fff; border-radius: 14px; padding: 32px; max-width: 380px; text-align: center; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ftlp-fs-box h3 { margin: 0 0 10px; color: #d6412f; font-size: 18px; }
.ftlp-fs-box p { color: #64748b; font-size: 13.5px; margin-bottom: 20px; }
.ftlp-fs-box .ftlp-btn-primary { background: #1e5aab; color: #fff; }
.ftlp-fs-box .ftlp-logout-btn { background: #fff; border: 1px solid #e1e7f0; color: #1c2733; }

.ftlp-view-attempts-btn { background: none; border: none; color: var(--ftlp-blue); font-size: 12px; font-weight: 700; cursor: pointer; margin-left: 6px; text-decoration: underline; padding: 0; }
.ftlp-attempts-modal-box { background: #fff; border-radius: 14px; padding: 28px; max-width: 640px; width: 92vw; max-height: 82vh; overflow-y: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ftlp-attempts-modal-box h3 { margin: 0 0 16px; color: #163f79; font-size: 17px; }
.ftlp-attempts-modal-box table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ftlp-attempts-modal-box th, .ftlp-attempts-modal-box td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e1e7f0; }
.ftlp-attempts-modal-box th { color: #64748b; font-weight: 600; font-size: 11.5px; text-transform: uppercase; }
.ftlp-attempts-modal-close { margin-top: 18px; background: #fff; border: 1px solid #e1e7f0; color: #1c2733; padding: 9px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px; }

.ftlp-quiz-paper-row { cursor: pointer; }
.ftlp-quiz-paper-row:hover { background: var(--ftlp-bg); }
.ftlp-quiz-modal-box { background: #fff; border-radius: 14px; padding: 28px; max-width: 480px; width: 92vw; max-height: 85vh; overflow-y: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ftlp-quiz-modal-box .ftlp-btn-primary { width: 100%; text-align: left; padding: 12px 18px; }
/* "View Solution" needs real reading width for multi-column Q&A and diagrams — the
   small 480px choice box isn't meant for that, so this widens the same modal instead
   of being a second, separate overlay. */
.ftlp-quiz-modal-box.ftlp-quiz-modal-wide { max-width: 1100px; width: 95vw; max-height: 92vh; }

/* ---------- Chat ---------- */
.ftlp-chat-wrap { display: flex; height: 72vh; min-height: 420px; border: 1px solid var(--ftlp-border); border-radius: 10px; overflow: hidden; background: #fff; }
.ftlp-chat-contacts-col { width: 300px; flex: 0 0 300px; border-right: 1px solid var(--ftlp-border); display: flex; flex-direction: column; overflow-y: auto; }
.ftlp-chat-contacts-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--ftlp-border); }
.ftlp-chat-contacts-header h3 { margin: 0; font-size: 15px; color: var(--ftlp-blue-dark); }
.ftlp-chat-request-card { padding: 10px 16px; border-bottom: 1px solid var(--ftlp-border); background: #fffbe6; }
.ftlp-chat-request-card .name { font-weight: 700; font-size: 13px; }
.ftlp-chat-request-card .email { font-size: 11.5px; color: var(--ftlp-muted); margin-bottom: 8px; }
.ftlp-chat-request-actions button { font-size: 12px; padding: 5px 10px; margin-right: 6px; border-radius: 6px; cursor: pointer; }
.ftlp-chat-request-accept { background: var(--ftlp-green); color: #fff; border: none; }
.ftlp-chat-request-decline { background: #fff; border: 1px solid var(--ftlp-border); color: var(--ftlp-text); }
.ftlp-chat-contact-item { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--ftlp-border); }
.ftlp-chat-contact-item:hover, .ftlp-chat-contact-item.active { background: var(--ftlp-bg); }
.ftlp-chat-contact-item .name { font-weight: 700; font-size: 13.5px; color: var(--ftlp-text); }
.ftlp-chat-contact-item .email { font-size: 11.5px; color: var(--ftlp-muted); }
.ftlp-chat-window-col { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.ftlp-chat-window-header { padding: 14px 18px; border-bottom: 1px solid var(--ftlp-border); font-weight: 700; color: var(--ftlp-blue-dark); }
#ftlp-chat-messages { flex: 1 1 auto; overflow-y: auto; padding: 16px; background: var(--ftlp-bg); }
.ftlp-chat-bubble-row { display: flex; margin-bottom: 10px; }
.ftlp-chat-bubble-row.mine { justify-content: flex-end; }
.ftlp-chat-bubble { max-width: 70%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; background: #fff; border: 1px solid var(--ftlp-border); }
.ftlp-chat-bubble-row.mine .ftlp-chat-bubble { background: var(--ftlp-blue); color: #fff; border-color: var(--ftlp-blue); }
.ftlp-chat-bubble .meta { font-size: 10px; opacity: .7; margin-top: 4px; }
.ftlp-chat-bubble img.ftlp-chat-img { max-width: 220px; border-radius: 8px; display: block; margin-bottom: 4px; }
.ftlp-chat-bubble a.ftlp-chat-file-link { color: inherit; font-weight: 700; text-decoration: underline; }
.ftlp-chat-input-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ftlp-border); }
.ftlp-chat-input-row input[type="text"] { flex: 1 1 auto; }
#ftlp-chat-attach-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.ftlp-chat-search-row { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--ftlp-border); }
.ftlp-chat-search-row .name { font-weight: 700; font-size: 13px; }
.ftlp-chat-search-row .email { font-size: 11.5px; color: var(--ftlp-muted); }
.ftlp-chat-search-row button { font-size: 12px; padding: 6px 12px; border-radius: 6px; cursor: pointer; background: var(--ftlp-blue); color: #fff; border: none; }
.ftlp-chat-search-row button:disabled { background: var(--ftlp-border); color: var(--ftlp-muted); cursor: default; }

/* ---------- Notifications ---------- */
.ftlp-notif-list { max-height: 70vh; overflow-y: auto; padding-right: 6px; }
.ftlp-notif-card { background: #fff; border: 1px solid var(--ftlp-border); border-left: 4px solid var(--ftlp-blue); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(20,40,80,0.06); }
.ftlp-notif-card:last-child { margin-bottom: 0; }
.ftlp-notif-date { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ftlp-muted); margin-bottom: 6px; }
.ftlp-notif-heading { margin: 0 0 6px; font-size: 15.5px; color: var(--ftlp-blue-dark); }
.ftlp-notif-desc { margin: 0 0 8px; font-size: 13.5px; color: var(--ftlp-text); line-height: 1.5; }
.ftlp-notif-link { font-size: 13px; font-weight: 700; color: var(--ftlp-blue); text-decoration: none; }
.ftlp-notif-link:hover { text-decoration: underline; }

.ftlp-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ftlp-video-card { cursor: pointer; border: 1px solid var(--ftlp-border); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s ease, transform .15s ease; }
.ftlp-video-card:hover { box-shadow: 0 6px 18px rgba(20,40,80,0.12); transform: translateY(-2px); }
.ftlp-video-card img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: var(--ftlp-bg); }
.ftlp-video-card-title { padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--ftlp-text); }
.ftlp-video-frame-wrap { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
#ftlp-video-player-target { position: absolute; inset: 0; width: 100%; height: 100%; }
#ftlp-video-player-target iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; pointer-events: none; }
#ftlp-video-click-catcher { position: absolute; inset: 0; bottom: 46px; cursor: pointer; z-index: 5; background: transparent; }
.ftlp-video-controls { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: rgba(0,0,0,0.78); display: flex; align-items: center; gap: 10px; padding: 0 12px; z-index: 10; }
.ftlp-video-ctrl-btn { background: none; border: none; color: #fff; font-size: 17px; cursor: pointer; padding: 4px 6px; line-height: 1; flex: 0 0 auto; }
.ftlp-video-ctrl-btn:hover { opacity: .8; }
.ftlp-video-seek { flex: 1 1 auto; cursor: pointer; accent-color: #1e5aab; min-width: 40px; }
.ftlp-video-volume { width: 70px; cursor: pointer; accent-color: #1e5aab; flex: 0 0 auto; }
.ftlp-video-time { color: #fff; font-size: 11px; white-space: nowrap; flex: 0 0 auto; min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.ftlp-exam-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ftlp-exam-option { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--ftlp-border); border-radius: 8px; cursor: pointer; font-size: 14px; }
.ftlp-exam-option:hover { background: var(--ftlp-bg); }
.ftlp-exam-option input { margin-top: 3px; }
.ftlp-exam-footer { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
	.ftlp-exam-body { grid-template-columns: 1fr; }
	.ftlp-exam-nav { max-height: 200px; }
}

.ftlp-review-item { padding: 14px 0; border-bottom: 1px solid var(--ftlp-border); font-size: 13.5px; }
.ftlp-review-item:last-child { border-bottom: none; }
.ftlp-review-answer { margin-top: 6px; font-weight: 700; font-size: 12.5px; }
.ftlp-review-correct .ftlp-review-answer { color: var(--ftlp-green); }
.ftlp-review-incorrect .ftlp-review-answer { color: var(--ftlp-red); }
.ftlp-review-unattempted .ftlp-review-answer { color: var(--ftlp-muted); }
.ftlp-review-solution { margin-top: 6px; color: var(--ftlp-muted); font-size: 12.5px; }

.ftlp-pyq-q { padding: 16px 0; border-bottom: 1px solid var(--ftlp-border); }
.ftlp-pyq-q:last-child { border-bottom: none; }
.ftlp-pyq-qtext { font-size: 14.5px; line-height: 1.5; margin-bottom: 10px; }
.ftlp-pyq-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; font-size: 13.5px; margin-bottom: 10px; color: var(--ftlp-text); }
.ftlp-pyq-toggle { background: var(--ftlp-bg); border: 1px solid var(--ftlp-border); color: var(--ftlp-blue-dark); padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ftlp-pyq-solution { margin-top: 10px; padding: 12px 14px; background: #e8f7ef; border-radius: 8px; font-size: 13px; }
.ftlp-pyq-solution p { margin: 6px 0 0; color: var(--ftlp-text); }

/* ---------- NCERT Book viewer ---------- */
.ftlp-ncert-viewer-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ftlp-ncert-viewer-header h3 { margin: 0; font-size: 16px; color: var(--ftlp-blue-dark); }
.ftlp-ncert-layout { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ftlp-ncert-pdf-col { flex: 1 1 520px; min-width: 300px; }
.ftlp-ncert-notes-col { flex: 0 0 300px; max-width: 100%; }
.ftlp-ncert-notes-col h3 { font-size: 14px; margin: 0 0 10px; color: var(--ftlp-blue-dark); }
.ftlp-ncert-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ftlp-ncert-toolbar button { font-size: 12.5px; padding: 7px 12px; }
.ftlp-ncert-toolbar button.active { background: var(--ftlp-blue); color: #fff; border-color: var(--ftlp-blue); }
#ftlp-ncert-pageinfo { font-size: 12.5px; color: var(--ftlp-muted); font-weight: 600; }

#ftlp-ncert-pdf-wrap { position: relative; overflow: auto; max-height: 78vh; border: 1px solid var(--ftlp-border); border-radius: 8px; background: #f4f4f4; }
#ftlp-ncert-canvas { display: block; }

/* PDF.js text layer — must overlay the canvas exactly; text is transparent but selectable. */
.ftlp-ncert-textlayer { position: absolute; left: 0; top: 0; overflow: hidden; line-height: 1; opacity: 1; }
.ftlp-ncert-textlayer > span { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.ftlp-ncert-textlayer ::selection { background: rgba(30,90,171,0.35); }
.ftlp-ncert-textlayer.ftlp-no-select { user-select: none; -webkit-user-select: none; pointer-events: none; }

#ftlp-ncert-crop-overlay { position: absolute; left: 0; top: 0; cursor: crosshair; z-index: 20; user-select: none; -webkit-user-select: none; }
.ftlp-ncert-crop-box { position: absolute; border: 2px dashed var(--ftlp-blue); background: rgba(30,90,171,0.15); }

.ftlp-ncert-add-note-btn {
	background: #1e5aab; color: #ffffff; border: none; border-radius: 8px;
	font-size: 13px; font-weight: 700; cursor: pointer; padding: 9px 16px;
	box-shadow: 0 4px 14px rgba(20,40,80,0.35); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ftlp-ncert-add-note-btn:hover { background: #163f79; }

.ftlp-ncert-note-card { position: relative; background: #fffbe6; border: 1px solid #f0e4a8; border-radius: 8px; padding: 12px 30px 12px 12px; margin-bottom: 10px; font-size: 13px; }
.ftlp-ncert-note-page { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--ftlp-muted); margin-bottom: 4px; }
.ftlp-ncert-note-text { outline: none; line-height: 1.45; word-break: break-word; }
.ftlp-ncert-note-img { max-width: 100%; border-radius: 6px; display: block; }
.ftlp-ncert-note-delete { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--ftlp-muted); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.ftlp-ncert-note-delete:hover { color: var(--ftlp-red); }

/* Full Mode: fullscreen just the PDF + notes, nothing else on the page. */
.ftlp-ncert-layout:fullscreen { background: #fff; padding: 20px; overflow: auto; }
.ftlp-ncert-layout:-webkit-full-screen { background: #fff; padding: 20px; overflow: auto; }
.ftlp-ncert-layout:fullscreen #ftlp-ncert-pdf-wrap,
.ftlp-ncert-layout:-webkit-full-screen #ftlp-ncert-pdf-wrap { max-height: 88vh; }
#ftlp-ncert-exit-fullmode { display: none; }
.ftlp-ncert-layout:fullscreen #ftlp-ncert-exit-fullmode,
.ftlp-ncert-layout:-webkit-full-screen #ftlp-ncert-exit-fullmode { display: inline-block; }

.ftlp-progress-label { font-size: 12.5px; font-weight: 700; color: var(--ftlp-text); margin-bottom: 6px; }
.ftlp-progress-track { background: var(--ftlp-bg); border-radius: 999px; height: 10px; overflow: hidden; }
.ftlp-progress-fill { background: linear-gradient(90deg, var(--ftlp-blue), #4f8fe0); height: 100%; border-radius: 999px; transition: width .3s ease; }
.ftlp-completed-topics { margin-top: 10px; font-size: 12.5px; }
.ftlp-completed-topics summary { cursor: pointer; color: var(--ftlp-blue); font-weight: 700; }
.ftlp-completed-topics ul { margin: 8px 0 0 18px; max-height: 220px; overflow-y: auto; color: var(--ftlp-muted); }

.ftlp-chart-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ftlp-chart-box { position: relative; width: 180px; height: 180px; flex: 0 0 auto; }
.ftlp-chart-box canvas { width: 100% !important; height: 100% !important; }

@media (max-width: 640px) {
	.ftlp-login-card { margin: 16px; padding: 22px; }
	.ftlp-tab { font-size: 12px; padding: 7px 6px; }
}

/* ==========================================================================
   v3.0.0 — Full-page NTA-style exam (full paper + subject quiz) and
   English / Hindi display. Hard-coded colours on purpose: the exam sits in
   full-screen, outside the dashboard wrapper that defines the --ftlp-* vars.
   ========================================================================== */
body.ftlp-exam-open { overflow: hidden; }

.ftlp-nta { position: fixed; inset: 0; z-index: 100000; background: #eef2f8; color: #1c2733; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Nirmala UI", Mangal, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; box-sizing: border-box; }
.ftlp-nta *, .ftlp-nta *::before, .ftlp-nta *::after { box-sizing: border-box; }

.ftlp-nta-top { background: #163f79; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; flex-wrap: wrap; }
.ftlp-nta-title { font-size: 16px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ftlp-nta-top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ftlp-nta-lang { font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.ftlp-nta-lang select { border: 0; border-radius: 6px; padding: 5px 8px; font-size: 13px; background: #fff; color: #163f79; font-weight: 600; }
.ftlp-nta-timer { background: #fff; color: #163f79; font-weight: 800; padding: 5px 14px; border-radius: 8px; font-variant-numeric: tabular-nums; font-size: 15px; }
.ftlp-nta-timer.low { background: #d6412f; color: #fff; animation: ftlp-nta-blink 1s steps(2, start) infinite; }
@keyframes ftlp-nta-blink { to { opacity: .65; } }
.ftlp-nta-palette-toggle { display: none; border: 0; background: #fff; color: #163f79; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; }

.ftlp-nta-sections { background: #fff; border-bottom: 1px solid #d9e2ef; padding: 8px 14px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ftlp-nta-sec { border: 1px solid #d9e2ef; border-bottom: 0; background: #f3f6fb; color: #1c2733; padding: 8px 18px; border-radius: 8px 8px 0 0; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.ftlp-nta-sec small { font-weight: 600; opacity: .75; }
.ftlp-nta-sec.active { background: #1e5aab; border-color: #1e5aab; color: #fff; }
span.ftlp-nta-sec { cursor: default; }

.ftlp-nta-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 310px; }
.ftlp-nta-left { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.ftlp-nta-qhead { padding: 12px 22px; border-bottom: 1px solid #e6ecf5; font-size: 15px; }
.ftlp-nta-qsub { color: #64748b; font-size: 12.5px; margin-left: 8px; }
.ftlp-nta-qbody { flex: 1; overflow-y: auto; padding: 18px 22px; -webkit-overflow-scrolling: touch; }
.ftlp-nta-qtext { font-size: 17px; margin-bottom: 16px; }
.ftlp-nta-note { background: #fff7e0; border: 1px solid #f0d98a; color: #7a5a00; padding: 6px 10px; border-radius: 6px; font-size: 12.5px; margin-bottom: 12px; }
.ftlp-nta-diagram { margin: 0 0 18px; }
.ftlp-nta-diagram img { max-width: 100%; max-height: 380px; border: 1px solid #d9e2ef; border-radius: 8px; display: block; background: #fff; }

.ftlp-l-hi { font-family: "Noto Sans Devanagari", "Nirmala UI", Mangal, "Segoe UI", sans-serif; }
.ftlp-l-hi + .ftlp-l-en { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d5dce8; color: #3a4a5e; }

.ftlp-nta-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ftlp-nta-opt { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border: 2px solid #d9e2ef; border-radius: 10px; cursor: pointer; background: #fff; user-select: none; -webkit-tap-highlight-color: transparent; }
.ftlp-nta-opt:hover { background: #f5f8fd; }
.ftlp-nta-opt:focus { outline: 2px solid #1e5aab; outline-offset: 1px; }
.ftlp-nta-opt.sel { border-color: #1e5aab; background: #eaf2fd; }
.ftlp-nta-optkey { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #9fb2cc; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #36506f; background: #fff; }
.ftlp-nta-opt.sel .ftlp-nta-optkey { background: #1e5aab; border-color: #1e5aab; color: #fff; }
.ftlp-nta-opttxt { flex: 1; min-width: 0; padding-top: 2px; }
.ftlp-nta-hint { font-size: 12px; color: #64748b; }

.ftlp-nta-actions { border-top: 1px solid #d9e2ef; background: #f6f8fc; padding: 10px 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ftlp-nta-actions-left, .ftlp-nta-actions-right { display: flex; gap: 8px; flex-wrap: wrap; }
.ftlp-nta-btn { border: 1px solid #b7c5da; background: #fff; color: #1c2733; border-radius: 8px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ftlp-nta-btn:hover { background: #eef3fa; }
.ftlp-nta-btn.primary { background: #1e5aab; border-color: #1e5aab; color: #fff; }
.ftlp-nta-btn.primary:hover { background: #174a8e; }
.ftlp-nta-btn.mark { background: #f1ebfb; border-color: #b9a2e6; color: #4b2a8a; }
.ftlp-nta-btn.submit { background: #0f9d58; border-color: #0f9d58; color: #fff; width: 100%; margin-top: 14px; padding: 11px; font-size: 15px; }
.ftlp-nta-btn.submit:hover { background: #0b7f46; }

.ftlp-nta-side { background: #f6f8fc; border-left: 1px solid #d9e2ef; padding: 14px; overflow-y: auto; min-height: 0; }
.ftlp-nta-cand { font-weight: 700; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid #e1e7f0; margin-bottom: 10px; min-height: 8px; }
.ftlp-nta-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; font-size: 12px; margin-bottom: 12px; }
.ftlp-nta-leg { display: flex; align-items: center; gap: 6px; }
.ftlp-nta-leg.wide { grid-column: 1 / -1; }
.ftlp-nta-palhead { background: #1e5aab; color: #fff; font-weight: 700; font-size: 13px; padding: 7px 10px; border-radius: 6px 6px 0 0; }
.ftlp-nta-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; padding: 12px 10px; background: #fff; border: 1px solid #d9e2ef; border-top: 0; border-radius: 0 0 6px 6px; max-height: 46vh; overflow-y: auto; }

/* Palette + legend swatches — NTA colour meanings */
.ftlp-nta-pal-i { position: relative; width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; border: 1.5px solid #b7c0cc; border-radius: 6px; background: #fff; color: #36404d; padding: 0; cursor: default; font-family: inherit; }
.ftlp-nta-pal button.ftlp-nta-pal-i, .ftlp-nta-pal .ftlp-nta-pal-i { cursor: pointer; width: 100%; max-width: 46px; }
.ftlp-nta-pal-i.nv  { background: #fff; color: #36404d; border-color: #b7c0cc; }                      /* Not Visited */
.ftlp-nta-pal-i.na  { background: #e53935; color: #fff; border-color: #c62828; border-radius: 6px 6px 16px 16px; } /* Not Answered */
.ftlp-nta-pal-i.ans { background: #2e9e4f; color: #fff; border-color: #237a3c; border-radius: 16px 16px 6px 6px; } /* Answered */
.ftlp-nta-pal-i.mr  { background: #6a3fb5; color: #fff; border-color: #55309a; border-radius: 50%; }   /* Marked for Review */
.ftlp-nta-pal-i.amr { background: #6a3fb5; color: #fff; border-color: #55309a; border-radius: 50%; }   /* Answered & Marked */
.ftlp-nta-pal-i.amr::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
.ftlp-nta-pal-i.cur { outline: 3px solid #1e5aab; outline-offset: 2px; }
.ftlp-nta-legend .ftlp-nta-pal-i { width: 30px; height: 28px; font-size: 12px; flex: 0 0 auto; }

.ftlp-nta-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: #1c2733; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; z-index: 7; max-width: 90%; text-align: center; }

.ftlp-nta-modal { position: absolute; inset: 0; background: rgba(15, 25, 45, 0.72); align-items: center; justify-content: center; padding: 16px; z-index: 8; }
.ftlp-nta-modal-box { background: #fff; border-radius: 14px; padding: 26px; max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; text-align: center; }
.ftlp-nta-modal-box.wide { max-width: 720px; text-align: left; }
.ftlp-nta-modal-box h3 { margin: 0 0 12px; color: #163f79; font-size: 18px; }
.ftlp-nta-modal-box p { color: #64748b; font-size: 13.5px; margin: 0 0 18px; }
.ftlp-nta-modal-box p.ftlp-nta-warn { color: #7a3a00; background: #fff4e5; border: 1px solid #f3cf9b; padding: 10px 12px; border-radius: 8px; margin: 14px 0; text-align: left; }
.ftlp-nta-modal-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ftlp-nta-table-wrap { overflow-x: auto; }
.ftlp-nta-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ftlp-nta-table th { background: #1e5aab; color: #fff; padding: 8px 10px; text-align: center; font-weight: 700; }
.ftlp-nta-table td { padding: 8px 10px; border: 1px solid #e1e7f0; text-align: center; }
.ftlp-nta-table td:first-child { text-align: left; font-weight: 700; }

.ftlp-nta-resultpage { align-items: center; justify-content: center; overflow-y: auto; padding: 20px; }
.ftlp-nta-result-inner { background: #fff; border-radius: 16px; padding: 30px; max-width: 760px; width: 100%; box-shadow: 0 10px 40px rgba(20, 40, 80, 0.18); max-height: 100%; overflow-y: auto; }
.ftlp-nta-result-inner h2 { margin: 0 0 16px; color: #163f79; }
.ftlp-nta-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ftlp-nta-stat { background: #f3f6fb; border-radius: 12px; padding: 14px; text-align: center; }
.ftlp-nta-stat.big { background: #e8f1fd; }
.ftlp-nta-stat .num { font-size: 22px; font-weight: 800; color: #163f79; }
.ftlp-nta-stat .label { font-size: 12px; color: #64748b; margin-top: 2px; }
.ftlp-nta-resultnote { font-size: 12.5px; color: #64748b; margin: 14px 0 18px; }

@media (max-width: 900px) {
	.ftlp-nta-palette-toggle { display: inline-block; }
	.ftlp-nta-main { grid-template-columns: 1fr; position: relative; }
	.ftlp-nta-side { position: absolute; top: 0; right: 0; bottom: 0; width: 86%; max-width: 330px; transform: translateX(105%); transition: transform .22s ease; z-index: 6; box-shadow: -6px 0 24px rgba(0, 0, 0, .25); }
	.ftlp-nta-side.open { transform: translateX(0); }
	.ftlp-nta-qbody { padding: 14px; }
	.ftlp-nta-qtext { font-size: 16px; }
	.ftlp-nta-actions { padding: 8px 10px; }
	.ftlp-nta-btn { padding: 9px 11px; font-size: 12.5px; }
	.ftlp-nta-title { font-size: 14px; flex: 1 1 100%; }
}

/* ---- English / Hindi switch for the solution pages (driven by data-ftlp-lang on the wrapper) ---- */
.ftlp-langbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; }
.ftlp-langbar button { border: 1px solid #b7c5da; background: #fff; color: #1c2733; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ftlp-langbar button.active { background: #1e5aab; border-color: #1e5aab; color: #fff; }
[data-ftlp-lang="en"] .ftlp-bl .ftlp-l-hi { display: none; }
[data-ftlp-lang="hi"] .ftlp-bl.has-hi .ftlp-l-en { display: none; }
.ftlp-bl .ftlp-l-hi + .ftlp-l-en { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #d5dce8; color: #3a4a5e; }
.ftlp-bl .ftlp-l-hi { font-size: 1.04em; }
.ftlp-pyq-qtext .ftlp-bl, .ftlp-pyq-opt .ftlp-bl { display: inline-block; vertical-align: top; max-width: calc(100% - 2.6em); }
.ftlp-pyq-opt { margin-bottom: 4px; }
.ftlp-pyq-soltext { margin-top: 6px; }
a.ftlp-ncert-download { text-decoration: none; display: inline-block; }
@keyframes ftlp-note-flash { from { box-shadow: 0 0 0 3px #1e5aab; background: #eaf2fd; } to { box-shadow: none; } }
.ftlp-note-new { animation: ftlp-note-flash 1.6s ease-out; }

/* ==========================================================================
   v3.1.0 — Referral links, Add-student options, Rewards panel, demo.
   ========================================================================== */

/* Add manually / Share referral link switch */
.ftlp-seg { display: inline-flex; gap: 0; border: 1px solid var(--ftlp-border); border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: var(--ftlp-bg); max-width: 100%; }
.ftlp-seg button { border: 0; background: transparent; padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: var(--ftlp-muted); cursor: pointer; font-family: inherit; }
.ftlp-seg button + button { border-left: 1px solid var(--ftlp-border); }
.ftlp-seg button:hover { color: var(--ftlp-blue-dark); }
.ftlp-seg button.active { background: var(--ftlp-blue); color: #fff; }
.ftlp-seg-help { font-size: 13px; color: var(--ftlp-muted); margin: 0 0 12px; line-height: 1.5; }

.ftlp-ref-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ftlp-ref-row .ftlp-input { flex: 1 1 280px; min-width: 0; margin: 0; }
.ftlp-ref-wa { background: #e8f7ef; border-color: #b6e3cb; color: #11703f; }
.ftlp-ref-wa:hover { background: #d7f0e3; }

/* Referral sign-up card (wider than the login card: it holds the full form) */
.ftlp-signup-card { max-width: 760px; }
.ftlp-signup-by { margin: 0 0 8px; color: var(--ftlp-muted); font-size: 14px; }
.ftlp-signup-by strong { color: var(--ftlp-blue-dark); }
.ftlp-signup-note { font-size: 13px; color: var(--ftlp-muted); background: var(--ftlp-bg); border-radius: 8px; padding: 10px 12px; line-height: 1.5; margin: 0 0 6px; }
.ftlp-signup-login { text-align: center; font-size: 13px; color: var(--ftlp-muted); margin: 14px 0 0; }
/* Spam trap: real people never see or reach this field */
.ftlp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Rewards */
.ftlp-reward-hero { background: linear-gradient(135deg, #1e5aab, #163f79); color: #fff; border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.ftlp-reward-total { font-size: 38px; font-weight: 800; line-height: 1.1; }
.ftlp-reward-sub { font-size: 13px; opacity: .85; margin-top: 6px; }
.ftlp-total-row td { font-weight: 800; border-top: 2px solid var(--ftlp-border); background: var(--ftlp-bg); }

@media (max-width: 640px) {
	.ftlp-signup-card { max-width: none; }
	.ftlp-seg { display: flex; width: 100%; }
	.ftlp-seg button { flex: 1; padding: 10px 6px; font-size: 12.5px; }
	.ftlp-reward-total { font-size: 30px; }
}

/* Fields the portal fills in itself (State on Add District, District on student forms) */
.ftlp-input-locked, .ftlp-input[readonly].ftlp-input-locked { background: #eef2f7; color: var(--ftlp-muted); cursor: not-allowed; }

/* v3.2.0 — Suggestion Box */
.ftlp-sug-item { border: 1px solid var(--ftlp-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.ftlp-sug-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ftlp-sug-badge { font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.ftlp-sug-pending { background: #fff4e0; color: #8a5a00; }
.ftlp-sug-approved { background: #e8f7ef; color: #11703f; }
.ftlp-sug-date { font-size: 12px; color: var(--ftlp-muted); }
.ftlp-sug-msg { font-size: 14px; line-height: 1.55; word-break: break-word; }
.ftlp-sug-reply { margin-top: 10px; padding: 10px 12px; background: var(--ftlp-bg); border-left: 3px solid var(--ftlp-blue); border-radius: 6px; font-size: 13.5px; line-height: 1.5; word-break: break-word; }

/* v3.2.1 — Chat layout fix (message window was laying header / messages / input side by side) + parent chat backup */
#ftlp-chat-window { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#ftlp-chat-window[style*="display: none"], #ftlp-chat-window[style*="display:none"] { display: none; }
#ftlp-chat-messages { min-height: 0; }
.ftlp-chat-window-col > .ftlp-empty { flex: 1 1 auto; }
.ftlp-chat-contact-item .count { font-size: 11px; color: var(--ftlp-muted); margin-top: 3px; }
.ftlp-chat-bubble .sender { font-size: 11px; font-weight: 700; margin-bottom: 3px; opacity: .85; }
.ftlp-chat-bubble .ftlp-chat-file-card { display: flex; flex-direction: column; gap: 4px; }
.ftlp-chat-bubble .ftlp-chat-file-actions a { font-size: 12px; font-weight: 700; margin-right: 12px; color: inherit; text-decoration: underline; }
.ftlp-chat-summary { padding: 10px 16px; border-bottom: 1px solid var(--ftlp-border); font-size: 12.5px; color: var(--ftlp-muted); background: #fff; }
.ftlp-chat-daysep { text-align: center; margin: 12px 0; font-size: 11px; color: var(--ftlp-muted); }
.ftlp-chat-daysep span { background: #fff; border: 1px solid var(--ftlp-border); border-radius: 999px; padding: 2px 12px; }
@media (max-width: 760px) {
	.ftlp-chat-wrap { flex-direction: column; height: auto; }
	.ftlp-chat-contacts-col { width: 100%; flex: 0 0 auto; max-height: 220px; border-right: 0; border-bottom: 1px solid var(--ftlp-border); }
	.ftlp-chat-window-col { min-height: 460px; }
}

/* v3.3.0 — "Try the live demo" box on the login page */
.ftlp-showcase-box { background: #fffaf0; border: 1px solid #f1d9a0; border-radius: 14px; padding: 20px 22px; max-width: 420px; margin: -14px auto 40px; font-size: 13.5px; line-height: 1.6; }
.ftlp-showcase-box h3 { margin: 0 0 6px; font-size: 16px; color: var(--ftlp-blue-dark); }
.ftlp-showcase-box p { margin: 0 0 12px; color: var(--ftlp-muted); }
.ftlp-showcase-cols { display: flex; flex-wrap: wrap; gap: 16px; }
.ftlp-showcase-cols > div { flex: 1 1 170px; background: #fff; border: 1px solid var(--ftlp-border); border-radius: 10px; padding: 12px; word-break: break-all; }
.ftlp-showcase-box code { background: var(--ftlp-bg); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.ftlp-btn-secondary { margin-top: 8px; background: #fff; color: var(--ftlp-blue); border: 1px solid var(--ftlp-blue); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ftlp-btn-secondary:hover { background: var(--ftlp-blue); color: #fff; }

/* ---- v3.4.0: attempts popup, View Submission, new paper/quiz rows ---- */
.ftlp-attempts-modal-box.ftlp-attempts-wide { max-width: 1100px; width: 96vw; }
.ftlp-attempts-table th small { font-weight: 500; text-transform: none; color: #94a3b8; }
.ftlp-attempts-table td { white-space: nowrap; }
.ftlp-attempts-table td.ftlp-wrapcell { white-space: normal; min-width: 110px; }
.ftlp-sub-btn { background: #1e5aab; color: #fff; border: 0; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ftlp-sub-btn:hover { background: #163f79; }
.ftlp-attempts-modal-box.ftlp-sub-box { max-width: 900px; width: 96vw; }
.ftlp-sub-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ftlp-sub-sec { margin-bottom: 18px; }
.ftlp-sub-sechead { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: #334155; }
.ftlp-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.ftlp-sub-chip { border-radius: 8px; padding: 6px 4px; text-align: center; font-size: 12px; border: 1px solid transparent; }
.ftlp-sub-chip b { display: block; font-size: 14px; }
.ftlp-sub-chip small { display: block; font-size: 10.5px; margin-top: 2px; }
.ftlp-sub-chip.correct { background: #e6f6ec; border-color: #9bd3b0; color: #14653a; }
.ftlp-sub-chip.wrong { background: #fdeaea; border-color: #f0b4b4; color: #a12626; }
.ftlp-sub-chip.blank { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
.ftlp-sub-legend .ftlp-sub-chip { padding: 4px 10px; font-weight: 700; }
.ftlp-sub-note { font-size: 12px; color: #64748b; }
.ftlp-sol-subject { margin: 18px 0 8px; color: #163f79; border-bottom: 2px solid #e1e7f0; padding-bottom: 4px; }
.ftlp-btn-row { background: var(--ftlp-bg); border: 1px solid var(--ftlp-border); color: var(--ftlp-blue-dark, #163f79); padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ftlp-btn-row:hover { background: #e8eef9; }
.ftlp-papers-table td, .ftlp-papers-table th { vertical-align: middle; }
.ftlp-papers-table .ftlp-start-cell { text-align: right; }
