/* All selectors are scholarship-specific. No global button, dialog, or body resets. */
.fjc-sl-email, .fjc-sl-email * { box-sizing: border-box; }
.fjc-sl-email { color: #3f2712; font-family: inherit; line-height: 1.5; }
.fjc-sl-email [hidden], .fjc-sl-email-admin [hidden] { display: none !important; }
.fjc-sl-email h1, .fjc-sl-email h2, .fjc-sl-email h3 { color: #004766; line-height: 1.2; }
.fjc-sl-email h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 20px; }
.fjc-sl-email h2 { margin: 0; font-size: 1.6rem; }
.fjc-sl-email h3 { font-size: 1.12rem; margin: 28px 0 12px; }
.fjc-sl-email p { margin: 0 0 18px; }
.fjc-sl-email label { display: block; font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.fjc-sl-email input:not([type="checkbox"]), .fjc-sl-email select, .fjc-sl-email textarea { display: block; width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #004766; border-radius: 0; background: #fff; color: #3f2712; font: inherit; box-shadow: none; }
.fjc-sl-email select { appearance: auto; }
.fjc-sl-email input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; accent-color: #004766; }
.fjc-sl-email textarea { resize: vertical; }
.fjc-sl-email :focus-visible, .fjc-sl-email-link:focus-visible { outline: 3px solid #004766; outline-offset: 3px; }
.fjc-sl-email .fjc-sl-email-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; padding: 12px 22px; border: 0 !important; border-radius: 0 !important; box-shadow: none; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; color: #fff !important; background: linear-gradient(to right, #00a99c 0%, #00a99c 50%, #ed125f 50%, #ed125f 100%); background-size: 205% 100%; background-position: left center; transition: background-position .25s ease; }
.fjc-sl-email .fjc-sl-email-button span { display: inline-block; transition: transform .25s ease; }
.fjc-sl-email .fjc-sl-email-button:hover { background-position: right center; }
.fjc-sl-email .fjc-sl-email-button:hover span { transform: scale(1.03); }
.fjc-sl-email .fjc-sl-email-button.is-secondary { background-image: linear-gradient(to right, #004766 0%, #004766 50%, #01afd8 50%, #01afd8 100%); }
.fjc-sl-email .fjc-sl-email-button:disabled { opacity: .6; cursor: wait; }
.fjc-sl-email-link { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: #004766 !important; text-decoration: underline; text-underline-offset: 3px; font: inherit; padding: 4px 0; cursor: pointer; }
.fjc-sl-email-launch { margin-top: 20px; font-size: .9rem; }
html.fjc-sl-email-open, html.fjc-sl-email-open body { height: 100% !important; overflow: hidden !important; }
html body dialog.fjc-sl-email-dialog { position: fixed !important; z-index: 100000; inset: 0; display: block; width: min(860px, calc(100vw - 40px)); max-width: none !important; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0 !important; margin: auto !important; border: 0 !important; border-top: 9px solid #cfdc29 !important; border-radius: 0 !important; background: #fff !important; box-shadow: 0 8px 0 #3f2712, 0 18px 70px #18121055; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
html body dialog.fjc-sl-email-dialog:not([open]) { display: none !important; }
.fjc-sl-email-dialog::backdrop { background: #004766e8; backdrop-filter: blur(3px); }
.fjc-sl-email-dialog-body { position: relative; padding: clamp(24px, 4vw, 40px); }
.fjc-sl-email-dialog .fjc-sl-email-eyebrow { margin: 0 56px 8px 0; color: #00a99c; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.fjc-sl-email-dialog h2#fjc-sl-email-title { margin: 0 56px 12px 0 !important; color: #004766 !important; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.12; text-transform: uppercase; }
.fjc-sl-email-dialog .fjc-sl-email-intro { max-width: 720px; margin: 0 0 22px; font-size: 15px; line-height: 1.55; }
.fjc-sl-email .fjc-sl-email-close { appearance: none; position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 2px solid #004766 !important; border-radius: 0 !important; background: #fff !important; color: #004766 !important; font: inherit; font-size: 29px; line-height: 1; cursor: pointer; }
.fjc-sl-email-dialog .fjc-sl-email-bulk-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 20px 0; padding: 18px; background: #D6F0FC; }
.fjc-sl-email-bulk-card strong { display: block; margin-bottom: 4px; color: #004766; }
.fjc-sl-email-bulk-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.fjc-sl-email-dialog .fjc-sl-email-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #004766; font-size: 12px; font-weight: 900; letter-spacing: .025em; white-space: nowrap; }
.fjc-sl-email-divider::before, .fjc-sl-email-divider::after { content: ''; flex: 1; height: 1px; background: #01afd8; }
.fjc-sl-email-dialog .fjc-sl-email-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fjc-sl-email-dialog input:not([type="checkbox"]), .fjc-sl-email-dialog select { min-height: 48px; margin: 0 0 18px; border: 2px solid #01afd8; border-radius: 0 !important; background: #fff; color: #3f2712; }
.fjc-sl-email-dialog input:focus, .fjc-sl-email-dialog select:focus { border-color: #004766; outline: 2px solid #004766; outline-offset: 2px; }
.fjc-sl-email-dialog label { color: #004766; font-size: 14px; }
.fjc-sl-email-dialog select { font-size: 1rem; }
.fjc-sl-email-dialog [data-fjc-sl-request-submit] { min-width: 220px; }
.fjc-sl-email .fjc-sl-email-help { font-size: .88rem; color: #413939; line-height: 1.5; }
.fjc-sl-email [data-fjc-sl-request-status] { margin: 16px 0 0; }
.fjc-sl-email [data-fjc-sl-request-status]:not(:empty) { padding: 12px 16px; border-left: 4px solid #00a99c; background: #D6F0FC; color: #004766; }
.fjc-sl-email [data-fjc-sl-request-status].is-error { border-left-color: #ed125f; }
.fjc-sl-email-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fjc-sl-email-page { margin: 0; color: #3f2712; background: #fff; font: 16px/1.5 Gotham, Arial, sans-serif; }
.fjc-sl-email-mast { background: #00a99c; color: #fff; padding: 22px max(24px, calc((100vw - 1480px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .78rem; font-weight: bold; letter-spacing: .05em; }
.fjc-sl-email-mast div > span { display: block; font-size: 1.6rem; margin-top: 5px; letter-spacing: 0; }
.fjc-sl-email-private { background: #cfdc29; color: #3f2712; padding: 8px 12px; white-space: nowrap; }
.fjc-sl-email-work { max-width: 1528px; margin: 0 auto; padding: 36px 24px 60px; }
.fjc-sl-email-notice { background: #D6F0FC; color: #004766; padding: 18px 22px; margin: 20px 0; overflow-wrap: anywhere; }
.fjc-sl-email-notice.is-error { border-left: 5px solid #ed125f; }
.fjc-sl-email-intro { overflow-wrap: anywhere; }
.fjc-sl-email-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 28px 0 18px; }
.fjc-sl-email-toolbar label { width: min(600px, 60%); margin: 0; }
.fjc-sl-email-toolbar input { margin-top: 8px; }
.fjc-sl-email-grid-wrap { width: 100%; overflow-x: auto; }
.fjc-sl-email-grid { width: 100%; min-width: 1130px; border-collapse: collapse; table-layout: fixed; font-size: .9rem; margin: 0 0 16px; }
.fjc-sl-email-grid th { padding: 12px 8px; text-align: left; color: #fff; background: #004766; }
.fjc-sl-email-grid td { vertical-align: top; padding: 10px 6px; border-bottom: 1px solid #D6F0FC; }
.fjc-sl-email-grid th:nth-child(1) { width: 22%; }
.fjc-sl-email-grid th:nth-child(2) { width: 11%; }
.fjc-sl-email-grid th:nth-child(3) { width: 15%; }
.fjc-sl-email-grid th:nth-child(4) { width: 25%; }
.fjc-sl-email-grid th:nth-child(5) { width: 10%; }
.fjc-sl-email-grid th:nth-child(6) { width: 8%; }
.fjc-sl-email-grid th:nth-child(7) { width: 9%; }
.fjc-sl-email-grid input, .fjc-sl-email-grid select { padding: 8px !important; font-size: .88rem !important; }
.fjc-sl-email-grid .is-deleted td { background: #D6F0FC; }
.fjc-sl-email-grid .is-deleted [data-field]:disabled { opacity: .65; }
.fjc-sl-email .fjc-sl-email-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 20px 0; }
.fjc-sl-email-grid .fjc-sl-email-check { margin: 10px 0 0; font-size: .9rem; }
.fjc-sl-email-review-fields { margin-top: 32px; max-width: 700px; }
.fjc-sl-email-review-fields select { margin-bottom: 12px; }
.fjc-sl-email-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.fjc-sl-email-actions > span { font-size: .9rem; }
.fjc-sl-email-change { margin: 30px 0; }
.fjc-sl-email-diff { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 12px 0 28px; font-size: .95rem; }
.fjc-sl-email-diff th, .fjc-sl-email-diff td { text-align: left; vertical-align: top; padding: 10px; overflow-wrap: anywhere; word-break: break-word; }
.fjc-sl-email-diff thead { background: #004766; color: #fff; }
.fjc-sl-email-diff thead th:first-child { width: 22%; }
.fjc-sl-email-diff tbody th { background: #D6F0FC; }
.fjc-sl-email-diff td.is-changed { background: #cfdc29; font-weight: 700; }
.fjc-sl-email-admin .fjc-sl-email-diff { max-width: 1200px; background: #fff; }
.fjc-sl-email-admin-action { margin: 20px 0; }
.fjc-sl-email-footer { border-top: 2px solid #00a99c; margin-top: 44px; padding-top: 20px; font-size: .85rem; }
.fjc-sl-email-footer a { color: #004766; font-weight: 700; }
.fjc-sl-email-footer p { margin: 12px 0 0; }
.fjc-sl-email .is-single .fjc-sl-email-grid { min-width: 0; display: block; max-width: 950px; }
.fjc-sl-email .is-single .fjc-sl-email-grid thead { display: none; }
.fjc-sl-email .is-single .fjc-sl-email-grid tbody { display: block; }
.fjc-sl-email .is-single .fjc-sl-email-grid tr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fjc-sl-email .is-single .fjc-sl-email-grid td { display: block; padding: 0; border: 0; }
.fjc-sl-email .is-single .fjc-sl-email-grid td:nth-child(1), .fjc-sl-email .is-single .fjc-sl-email-grid td:nth-child(4) { grid-column: 1 / -1; }
.fjc-sl-email .is-single .fjc-sl-email-grid td::before { content: attr(data-label); display: block; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 750px) {
    .fjc-sl-email-work { padding: 26px 16px 40px; }
    .fjc-sl-email-mast { padding: 18px 16px; }
    .fjc-sl-email-private { display: none; }
    .fjc-sl-email-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .fjc-sl-email-toolbar label { width: 100%; }
    .fjc-sl-email-grid, .fjc-sl-email-grid tbody { display: block; min-width: 0; }
    .fjc-sl-email-grid thead { display: none; }
    .fjc-sl-email-grid tr, .fjc-sl-email .is-single .fjc-sl-email-grid tr { display: grid; grid-template-columns: 1fr; gap: 12px; background: #D6F0FC; padding: 18px 14px; margin-bottom: 18px; }
    .fjc-sl-email-grid td { display: block; padding: 0; border: 0; }
    .fjc-sl-email-grid td::before { content: attr(data-label); display: block; font-weight: 700; margin-bottom: 6px; }
    .fjc-sl-email-grid input, .fjc-sl-email-grid select { font-size: 1rem !important; }
    .fjc-sl-email-actions { align-items: stretch; flex-direction: column; }
    .fjc-sl-email-diff { font-size: .83rem; }
    .fjc-sl-email-diff th, .fjc-sl-email-diff td { padding: 8px 6px; }
    html body dialog.fjc-sl-email-dialog { width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0 !important; box-shadow: none; }
    .fjc-sl-email-dialog-body { padding: 26px 20px 40px; }
    .fjc-sl-email-dialog .fjc-sl-email-bulk-card, .fjc-sl-email-dialog .fjc-sl-email-fields { grid-template-columns: 1fr; }
    .fjc-sl-email-dialog .fjc-sl-email-bulk-card { gap: 12px; }
    .fjc-sl-email-dialog .fjc-sl-email-bulk-card .fjc-sl-email-button, .fjc-sl-email-dialog [data-fjc-sl-request-submit] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fjc-sl-email .fjc-sl-email-button, .fjc-sl-email .fjc-sl-email-button span { transition: none; }
    .fjc-sl-email .fjc-sl-email-button:hover span { transform: none; }
}
