.smsz-directory, .smsz-profile-wrap{ --smsz-primary:#0B1F3A; --smsz-accent:#3B5BDB; --smsz-border:#E3E7F0; --smsz-muted:#6B7385; --smsz-text:#1B2537; max-width:1100px; margin:0 auto; }
.smsz-directory *, .smsz-profile-wrap *{ box-sizing:border-box; }

.smsz-directory-filters{ display:flex; flex-wrap:nowrap; align-items:center; gap:10px; margin-bottom:24px; overflow-x:auto; padding-bottom:3px; }
.smsz-directory-filters input, .smsz-directory-filters select{
	box-sizing:border-box; height:44px; line-height:normal;
	border:1px solid var(--smsz-border); border-radius:10px; padding:0 14px; font-size:14px; background:#fff; color:var(--smsz-text);
	font-family:inherit;
}
.smsz-directory-filters select{
	-webkit-appearance:none; -moz-appearance:none; appearance:none;
	padding-right:34px;
	background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath fill='%236B7385' d='M0 0l5 6 5-6z'/%3e%3c/svg%3e");
	background-repeat:no-repeat;
	background-position:right 14px center;
	min-width:150px;
}
.smsz-directory-filters input:focus, .smsz-directory-filters select:focus{ outline:none; border-color:var(--smsz-accent); box-shadow:0 0 0 3px rgba(59,91,219,.12); }
.smsz-dir-search{ flex:1; min-width:220px; }
.smsz-directory-filters > *{ flex:0 0 auto; }
@media (max-width:760px){ .smsz-directory-filters{ flex-wrap:wrap; overflow:visible; } .smsz-directory-filters > *{ flex:1 1 150px; } }

.smsz-directory-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; }
.smsz-directory-grid-compact{ grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:12px; }
.smsz-directory-grid-compact .smsz-student-card{ padding:16px 12px; border-radius:12px; }
.smsz-directory-grid-compact .smsz-avatar{ width:62px; height:62px; margin-bottom:10px; }
.smsz-directory-grid-compact .smsz-student-card-actions{ margin-top:10px; }
.smsz-directory-list{ display:flex; flex-direction:column; gap:12px; }

.smsz-student-card{ display:flex; flex-direction:column; align-items:center; text-align:center; text-decoration:none; background:#fff; border:1px solid var(--smsz-border); border-radius:16px; padding:24px 16px; transition:transform .15s ease, box-shadow .15s ease; }
.smsz-student-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(20,30,60,.08); }
.smsz-directory-list .smsz-student-card{ flex-direction:row; text-align:left; align-items:center; gap:16px; padding:14px 18px; }

.smsz-avatar{ width:84px; height:84px; border-radius:50%; object-fit:cover; margin-bottom:14px; background:#eef1f8; }
.smsz-directory-list .smsz-avatar{ width:56px; height:56px; margin:0; flex:none; }
.smsz-avatar-sm{ width:36px; height:36px; border-radius:50%; object-fit:cover; background:#eef1f8; }

.smsz-student-card h3{ margin:0 0 4px; font-size:16px; color:var(--smsz-text); }
.smsz-student-meta{ margin:0; font-size:12.5px; color:var(--smsz-muted); }
.smsz-muted{ opacity:.8; }
.smsz-badge{ display:inline-block; margin-top:8px; font-size:11px; font-weight:600; padding:3px 10px; border-radius:20px; background:rgba(59,91,219,.1); color:var(--smsz-accent); }

.smsz-directory-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--smsz-border); border-radius:12px; overflow:hidden; }
.smsz-directory-table th, .smsz-directory-table td{ padding:12px 14px; border-bottom:1px solid var(--smsz-border); font-size:13px; text-align:left; }
.smsz-directory-table tr{ cursor:pointer; }
.smsz-directory-table tr:hover{ background:#f7f9fd; }

.smsz-directory-loadmore-wrap{ text-align:center; margin-top:24px; }
.smsz-directory-empty{ text-align:center; color:var(--smsz-muted); padding:40px 0; grid-column:1/-1; }

.smsz-student-card-actions{ display:flex; gap:8px; margin-top:14px; justify-content:center; flex-wrap:wrap; }
.smsz-directory-list .smsz-student-card-actions{ margin-top:8px; justify-content:flex-start; }

/* Inquiry modal */
.smsz-modal-backdrop{ display:none; position:fixed; inset:0; background:rgba(11,31,58,.55); z-index:9999; align-items:center; justify-content:center; padding:20px; }
.smsz-modal-backdrop.smsz-modal-open{ display:flex; }
.smsz-modal{ background:#fff; border-radius:16px; padding:28px; max-width:440px; width:100%; position:relative; max-height:90vh; overflow-y:auto; }
.smsz-modal h2{ margin:0 0 18px; font-size:18px; }
.smsz-modal-close{ position:absolute; top:14px; right:16px; background:none; border:none; font-size:22px; line-height:1; color:var(--smsz-muted); cursor:pointer; }
.smsz-modal .smsz-form-row{ margin-bottom:12px; text-align:left; }
.smsz-modal .smsz-form-row label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:5px; color:var(--smsz-text); }
.smsz-modal .smsz-form-row input, .smsz-modal .smsz-form-row textarea{ width:100%; border:1px solid var(--smsz-border); border-radius:8px; padding:9px 12px; font-size:13.5px; font-family:inherit; }

.smsz-btn{ display:inline-flex; align-items:center; gap:6px; padding:10px 20px; border-radius:10px; font-weight:600; font-size:13px; border:1px solid var(--smsz-border); background:#fff; color:var(--smsz-text); cursor:pointer; text-decoration:none; }
.smsz-btn:hover{ background:#f0f2f8; }

/* Profile page */
.smsz-card{ background:#fff; border:1px solid var(--smsz-border); border-radius:16px; padding:24px; margin-bottom:18px; }
.smsz-profile-header{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.smsz-profile-photo{ width:110px; height:110px; border-radius:50%; object-fit:cover; background:#eef1f8; }
.smsz-profile-header h1{ margin:0 0 6px; font-size:26px; color:var(--smsz-text); }
.smsz-profile-tagline{ margin:0 0 10px; color:var(--smsz-muted); }
.smsz-profile-socials a{ margin-right:14px; font-size:13px; font-weight:600; color:var(--smsz-accent); text-decoration:none; }
.smsz-profile-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
.smsz-profile-section h2{ font-size:15px; margin:0 0 10px; color:var(--smsz-text); }
.smsz-skill-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.smsz-profile-details{ width:100%; border-collapse:collapse; }
.smsz-profile-details th{ text-align:left; color:var(--smsz-muted); font-weight:600; padding:8px 10px 8px 0; width:40%; font-size:13px; }
.smsz-profile-details td{ padding:8px 0; font-size:13px; color:var(--smsz-text); }
.smsz-empty-state{ text-align:center; padding:60px 20px; color:var(--smsz-muted); }

/* Search widgets (Result / Roll Slip) */
.smsz-search-widget{ max-width:640px; margin:0 auto; }
.smsz-search-form{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:16px; }
.smsz-search-form input{ flex:1; min-width:180px; box-sizing:border-box; height:44px; border:1px solid var(--smsz-border); border-radius:10px; padding:0 14px; font-size:14px; font-family:inherit; background:#fff; color:var(--smsz-text); }
.smsz-search-form input:focus{ outline:none; border-color:var(--smsz-accent); box-shadow:0 0 0 3px rgba(59,91,219,.12); }
.smsz-search-form .smsz-btn{ height:44px; box-sizing:border-box; }
.smsz-search-message{ color:#E03131; font-size:13px; margin-bottom:10px; min-height:18px; }
.smsz-search-result{ margin-top:10px; }

/* Result letter */
.smsz-result-letter, .smsz-online-cert{ background:#fff; border:1px solid var(--smsz-border); border-radius:16px; padding:32px; position:relative; overflow:hidden; }
.smsz-result-landscape{ max-width:1050px; }
.smsz-page-a4{ max-width:794px; margin:0 auto; }
.smsz-page-a5{ max-width:560px; margin:0 auto; }
.smsz-page-letter{ max-width:816px; margin:0 auto; }
.smsz-page-legal{ max-width:816px; margin:0 auto; }
.smsz-letter-header-block{ margin-bottom:18px; }
.smsz-letter-footer-block{ margin-top:24px; }
.smsz-letter-page-number{ text-align:center; font-size:11px; color:var(--smsz-muted); margin-top:16px; }
.smsz-letter-header{ text-align:center; margin-bottom:16px; }
.smsz-marks-table{ width:100%; border-collapse:collapse; margin:16px 0; }
.smsz-marks-table th, .smsz-marks-table td{ border:1px solid var(--smsz-border); padding:8px 10px; font-size:13px; text-align:left; }
.smsz-result-actions{ text-align:center; margin-top:20px; }

/* Roll slip */
.smsz-rollslip-card{ background:#fff; border:1px solid var(--smsz-border); border-radius:16px; padding:28px; }
.smsz-rollslip-header{ text-align:center; margin-bottom:18px; }
.smsz-rollslip-header p{ color:var(--smsz-muted); margin:2px 0 0; }
.smsz-rollslip-row{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed var(--smsz-border); font-size:14px; }
.smsz-rollslip-row span{ color:var(--smsz-muted); }
.smsz-rollslip-subjects ul{ margin:6px 0 0 18px; }
.smsz-rollslip-instructions{ margin-top:16px; }
.smsz-rollslip-logo{ max-height:48px; margin-bottom:8px; }
.smsz-letter-footer-text{ margin-top:20px; padding-top:14px; border-top:1px dashed var(--smsz-border); font-size:11.5px; color:var(--smsz-muted); text-align:center; }

/* Watermark (shared: result letter, roll slip, certificate) */
.smsz-letter-watermark, .smsz-verify-watermark{
	position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
	max-width:60%; max-height:60%; opacity:.06; pointer-events:none; z-index:0;
}
.smsz-rollslip-card{ position:relative; overflow:hidden; }
.smsz-letter-inner{ position:relative; z-index:1; }

/* Certificate verification (redesigned) */
.smsz-verify-card{ position:relative; overflow:hidden; background:#fff; border:2px solid var(--smsz-border); border-radius:16px; max-width:460px; margin:0 auto; text-align:center; padding:32px; }
.smsz-verify-valid{ border-color:rgba(47,158,68,.4); }
.smsz-verify-invalid{ border-color:rgba(224,49,49,.4); }
.smsz-verify-inner{ position:relative; z-index:1; }
.smsz-verify-logo{ max-height:56px; margin-bottom:14px; }
.smsz-verify-badge{ display:inline-block; font-weight:700; font-size:12px; padding:5px 16px; border-radius:20px; margin-bottom:14px; }
.smsz-verify-badge-valid{ background:rgba(47,158,68,.12); color:#2F9E44; }
.smsz-verify-badge-invalid{ background:rgba(224,49,49,.1); color:#E03131; }
.smsz-verify-title{ margin:0 0 18px; font-size:22px; font-weight:700; }
.smsz-verify-fields{ text-align:left; width:100%; border-top:1px solid var(--smsz-border); padding-top:14px; }
.smsz-verify-fields p{ display:flex; justify-content:space-between; margin:8px 0; font-size:14px; }
.smsz-verify-fields span{ color:var(--smsz-muted); }
.smsz-verify-id{ font-family:monospace; background:var(--smsz-bg, #F4F6FB); padding:2px 8px; border-radius:6px; }
.smsz-verify-qr-wrap{ margin-top:20px; padding:16px; background:var(--smsz-bg, #F4F6FB); border-radius:12px; display:inline-block; }
.smsz-verify-qr{ width:160px; height:160px; display:block; }
.smsz-verify-footer{ margin-top:20px; font-size:11px; color:var(--smsz-muted); }
.smsz-verify-muted{ color:var(--smsz-muted); }

/* PDF button state */
.smsz-download-pdf[disabled]{ opacity:.6; cursor:wait; }

/* Certificate verification: card sizing/coloring lives in the block above */

@media print{
	.smsz-directory-filters, .smsz-directory-loadmore-wrap, .smsz-search-form, .smsz-result-actions, header, footer, nav{ display:none !important; }
	.smsz-result-letter, .smsz-rollslip-card, .smsz-verify-card{ border:none; box-shadow:none; }
}
@page{ size:auto; margin:15mm; }
.smsz-page-a4 { }
.smsz-page-a5 { }
@media print{
	.smsz-page-a4{ width:210mm; }
	.smsz-page-a5{ width:148mm; }
	.smsz-page-letter{ width:216mm; }
	.smsz-page-legal{ width:216mm; }
}

/*
 * Print-only content (signatures, stamps, letterhead footers): hidden
 * on screen, shown when actually printing AND when the "Download PDF"
 * button snapshots the page (JS toggles .smsz-pdf-mode on the target
 * element right before capture), so PDF output always matches Print
 * exactly, and signatures never clutter the on-screen view.
 */
.smsz-print-only{ display:none; }
@media print{
	.smsz-print-only{ display:block !important; }
}
.smsz-pdf-mode .smsz-print-only{ display:block !important; }
.smsz-pdf-mode .smsz-result-actions,
.smsz-pdf-mode .smsz-no-pdf{ display:none !important; }
