.srm-wrap {
    --srm-accent: #1264d8;
    --srm-text: #172033;
    --srm-muted: #667085;
    --srm-border: #d6dde5;
    --srm-soft: #f7f9fc;
    width: 100%;
    color: var(--srm-text);
    font-family: Arial, Helvetica, sans-serif;
}
.srm-search-card {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--srm-border);
    border-radius: 18px;
    box-shadow: 0 14px 45px rgba(16, 24, 40, 0.08);
    padding: 44px;
    text-align: center;
}
.srm-logo-wrap { margin-bottom: 12px; }
.srm-search-logo { width: 92px; height: 92px; object-fit: contain; }
.srm-board-name { color: var(--srm-accent); font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; }
.srm-title { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: var(--srm-text); }
.srm-subtitle { max-width: 680px; margin: 12px auto 30px; color: var(--srm-muted); font-size: 17px; }
.srm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; text-align: left; }
.srm-form-grid > .srm-field:only-child { grid-column: 1 / -1; }
.srm-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.srm-field input,
.srm-field select { width: 100%; height: 52px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 15px; background: #fff; color: var(--srm-text); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.srm-field input:focus, .srm-field select:focus { border-color: var(--srm-accent); box-shadow: 0 0 0 4px rgba(18,100,216,0.12); }
.srm-submit, .srm-print-button, .srm-download-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--srm-accent); color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 14px; cursor: pointer; }
.srm-submit { margin-top: 24px; min-width: 190px; }
.srm-submit:hover,.srm-print-button:hover,.srm-download-button:hover { opacity: .92; }
.srm-submit:disabled { cursor: wait; opacity: .7; }
.srm-form-message { margin-top: 14px; min-height: 22px; font-weight: 600; }
.srm-form-message.is-error { color: #b42318; }
.srm-result-area { scroll-margin-top: 30px; }
.srm-loading { display: flex; justify-content: center; padding: 45px; }
.srm-loading span { width: 38px; height: 38px; border: 4px solid #e4e7ec; border-top-color: var(--srm-accent); border-radius: 50%; animation: srm-spin .8s linear infinite; }
@keyframes srm-spin { to { transform: rotate(360deg); } }

.srm-result-card.srm-classic-result {
    max-width: 980px;
    margin: 28px auto 0;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: none;
    padding: 24px 26px;
}
.srm-classic-board { font-size: 14px; font-weight: 700; color: #444; margin-bottom: 14px; }
.srm-classic-banner {
    background: linear-gradient(90deg, #1564c0 0%, #18c8d2 100%);
    color: #27323b;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 3px;
    margin-bottom: 22px;
}
.srm-classic-content { display: flex; align-items: flex-start; gap: 26px; }
.srm-classic-table-wrap { flex: 1 1 auto; min-width: 0; }
.srm-classic-table { width: 100%; border-collapse: collapse; }
.srm-classic-table th, .srm-classic-table td { padding: 10px 8px; text-align: left; vertical-align: top; border: 0; }
.srm-classic-table th { width: 190px; font-size: 18px; font-weight: 400; color: #555; }
.srm-classic-table td { font-size: 18px; font-weight: 700; color: #222; }
.srm-classic-photo-wrap { flex: 0 0 150px; }
.srm-classic-photo { width: 130px; height: 150px; border: 1px solid #cfd8dc; background: #f8f8f8; margin: 0 auto; overflow: hidden; }
.srm-classic-photo:empty::before { content: 'Photo'; display: grid; place-items: center; height: 100%; color: #999; font-size: 13px; }
.srm-classic-photo img { width: 100%; height: 100%; object-fit: cover; }
.srm-classic-subjects { margin-top: 24px; }
.srm-classic-subjects h4 { margin: 0 0 12px; font-size: 18px; }
.srm-table-wrap { overflow-x: auto; border: 1px solid #dfe3e8; }
.srm-marks-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.srm-marks-table th, .srm-marks-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #dfe3e8; font-size: 14px; }
.srm-marks-table th { background: #f2f7fb; font-weight: 700; }
.srm-marks-table tr:last-child td { border-bottom: 0; }
.srm-classic-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.srm-download-button.srm-secondary { background: #344054; }
@media (max-width: 767px) {
    .srm-search-card { padding: 28px 20px; border-radius: 14px; }
    .srm-form-grid { grid-template-columns: 1fr; }
    .srm-result-card.srm-classic-result { padding: 16px 14px; }
    .srm-classic-banner { font-size: 16px; padding: 10px; }
    .srm-classic-content { flex-direction: column-reverse; gap: 16px; }
    .srm-classic-photo-wrap { flex: none; width: 100%; }
    .srm-classic-photo { width: 120px; height: 138px; }
    .srm-classic-table th, .srm-classic-table td { display: block; width: 100%; padding: 6px 0; font-size: 16px; }
    .srm-classic-table th { padding-top: 10px; }
    .srm-classic-actions > * { width: 100%; }
}
@media print {
    body * { visibility: hidden !important; }
    #srm-printable-result, #srm-printable-result * { visibility: visible !important; }
    #srm-printable-result { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; border: 0; box-shadow: none; }
    .no-print { display: none !important; }
}
