.fms-badge {
    background: #f0f3f2;
    border: 1px solid #d4d9d7;
    border-radius: 999px;
    color: #333;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 14px;
    padding: 6px 10px;
}

.fms-status-verified {
    background: #e7f5eb;
    border-color: #97c9a2;
    color: #245d32;
}

.fms-status-declined {
    background: #f9e8e8;
    border-color: #d99b9b;
    color: #8a2525;
}

.fms-status-reference_requested,
.fms-status-reference_received {
    background: #fff5df;
    border-color: #e3bd6a;
    color: #76540d;
}

.fms-report {
    border-top: 1px solid #ddd;
    margin-top: 18px;
    padding-top: 16px;
}

.fms-report summary {
    cursor: pointer;
    font-weight: 800;
}

.fms-report form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.fms-report label {
    display: grid;
    gap: 6px;
}

.fms-report span {
    font-size: 0.88rem;
    font-weight: 700;
}

.fms-report input,
.fms-report textarea {
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.fms-report button {
    background: #265c4b;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 14px;
}

.fms-notice {
    background: #f5f7f6;
    border-left: 4px solid #265c4b;
    border-radius: 6px;
    margin: 12px 0;
    padding: 12px 14px;
}

.fms-error {
    border-left-color: #a12d2d;
}

.fms-success {
    border-left-color: #2f7a38;
}

.e3-sabbath-notice { align-items: center; background: #153f35; color: #fff; display: flex; gap: 20px; justify-content: space-between; padding: 12px clamp(18px, 5vw, 72px); }
.e3-sabbath-notice a { color: #f3d991; font-weight: 700; }
.e3-sabbath-notice button { background: transparent; border: 1px solid #fff8; border-radius: 50%; color: #fff; cursor: pointer; font-size: 22px; height: 34px; line-height: 28px; width: 34px; }

.e3-sabbath-page {
    align-items: center;
    background: linear-gradient(145deg, #f2f7f3, #fffaf0);
    display: flex;
    justify-content: center;
    min-height: 68vh;
    padding: clamp(48px, 8vw, 100px) 20px;
}

.e3-sabbath-card {
    background: #fff;
    border: 1px solid #dbe7df;
    border-radius: 24px;
    box-shadow: 0 22px 60px #173b2e1a;
    box-sizing: border-box;
    max-width: 1100px;
    padding: clamp(34px, 5vw, 64px);
    text-align: center;
    width: 100%;
}

.e3-sabbath-card h1 {
    color: #13283b;
    font-size: clamp(2.35rem, 5vw, 4.35rem);
    font-weight: 500;
    line-height: 1.08;
    margin: 12px 0 clamp(28px, 4vw, 42px);
}

.e3-sabbath-eyebrow {
    color: #a86f00;
    font-size: .82rem !important;
    font-weight: 800;
    letter-spacing: .13em;
    margin: 0;
    text-transform: uppercase;
}

.e3-sabbath-purpose {
    align-items: center;
    background: #fbf7ed;
    border: 1px solid #d9a447;
    border-radius: 18px;
    display: grid;
    gap: clamp(20px, 3vw, 34px);
    grid-template-columns: 72px minmax(0, 1fr);
    margin: 0 auto clamp(26px, 4vw, 38px);
    max-width: 980px;
    padding: clamp(24px, 3vw, 34px);
    text-align: left;
}

.e3-sabbath-purpose .e3-sabbath-icon {
    color: #b77900;
    height: 64px;
    width: 64px;
}

.e3-sabbath-purpose h2,
.e3-sabbath-detail h3 {
    color: #a86f00;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.e3-sabbath-purpose p,
.e3-sabbath-detail p {
    color: #173047;
    font-size: clamp(1rem, 1.55vw, 1.2rem);
    line-height: 1.55;
    margin: 0;
}

.e3-sabbath-summary {
    color: #13283b;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 900px;
}

.e3-sabbath-actions,
.e3-sabbath-dialog-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.e3-sabbath-actions { margin: 32px 0 28px; }

.e3-sabbath-actions a,
.e3-sabbath-dialog-actions a { color: #13283b; text-underline-offset: 3px; }

.e3-sabbath-page .e3-sabbath-button {
    background: #176b55;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    padding: 15px 26px;
    text-decoration: none;
}

.e3-sabbath-page .e3-sabbath-button:hover { background: #115441; }
.e3-sabbath-page .e3-sabbath-button:focus-visible,
.e3-sabbath-dialog-close:focus-visible,
.e3-sabbath-actions a:focus-visible,
.e3-sabbath-dialog-actions a:focus-visible { outline: 3px solid #d9a447; outline-offset: 3px; }

.e3-sabbath-time {
    color: #60736b;
    font-size: .9rem !important;
    line-height: 1.6;
    margin: 0;
}

.e3-sabbath-modal[hidden] { display: none !important; }

.e3-sabbath-modal {
    align-items: flex-start;
    background: #0c1720a6;
    box-sizing: border-box;
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: clamp(18px, 5vh, 48px) 18px;
    position: fixed;
    z-index: 99999;
}

.e3-sabbath-dialog {
    background: #fff;
    border: 1px solid #dbe7df;
    border-radius: 24px;
    box-shadow: 0 28px 80px #07130f59;
    box-sizing: border-box;
    margin: auto;
    max-width: 780px;
    padding: clamp(28px, 5vw, 48px);
    position: relative;
    width: 100%;
}

.e3-sabbath-dialog-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #394b58;
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 44px;
}

.e3-sabbath-dialog-header { text-align: center; }

.e3-sabbath-dialog-header > .e3-sabbath-icon {
    color: #b77900;
    height: 54px;
    margin-bottom: 12px;
    width: 54px;
}

.e3-sabbath-dialog-header h2 {
    color: #13283b;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 10px 0 14px;
}

.e3-sabbath-dialog-header > p:last-child {
    color: #173047;
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 650px;
}

.e3-sabbath-details { display: grid; gap: 14px; }

.e3-sabbath-detail {
    align-items: center;
    background: #fbf7ed;
    border: 1px solid #e4be72;
    border-radius: 14px;
    display: grid;
    gap: 20px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 18px 22px;
}

.e3-sabbath-detail .e3-sabbath-icon {
    color: #b77900;
    height: 48px;
    width: 48px;
}

.e3-sabbath-detail p { font-size: 1rem; }

.e3-sabbath-scripture {
    background: #fbf7ed;
    border: 0;
    border-radius: 14px;
    color: #13283b;
    margin: 18px 0;
    padding: 20px;
    text-align: center;
}

.e3-sabbath-scripture p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin: 0 0 6px;
}

.e3-sabbath-scripture cite {
    color: #a86f00;
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.e3-sabbath-dialog-actions { flex-direction: column; }
body.e3-sabbath-modal-open { overflow: hidden; }
.e3-sabbath-inline { background: #f4f7f5; border-left: 4px solid #1d5a48; border-radius: 8px; margin: 16px 0; padding: 15px 18px; }

@media (max-width: 700px) {
    .e3-sabbath-page { align-items: flex-start; padding: 28px 14px 42px; }
    .e3-sabbath-card { border-radius: 18px; padding: 32px 20px; }
    .e3-sabbath-card h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
    .e3-sabbath-purpose { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; }
    .e3-sabbath-purpose .e3-sabbath-icon { height: 54px; margin: 0 auto; width: 54px; }
    .e3-sabbath-actions { flex-direction: column; }
    .e3-sabbath-page .e3-sabbath-button { width: min(100%, 320px); }
    .e3-sabbath-dialog { border-radius: 18px; padding: 58px 20px 28px; }
    .e3-sabbath-detail { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .e3-sabbath-detail .e3-sabbath-icon { height: 40px; width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .e3-sabbath-modal { scroll-behavior: auto; }
}
