.by-els-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #b8ccb2;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color: #172317 !important;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.by-els-wrapper p,
.by-els-wrapper li,
.by-els-wrapper label,
.by-els-wrapper dt,
.by-els-wrapper dd,
.by-els-wrapper span {
    color: #172317 !important;
}

.by-els-wrapper .by-els-title,
.by-els-wrapper h2,
.by-els-wrapper h3 {
    color: #174c25 !important;
}

.by-els-title {
    margin-top: 0;
}

.by-els-warning {
    margin: 18px 0;
    padding: 14px 18px;
    border-inline-start: 5px solid #9b7600;
    border-radius: 8px;
    background: #fff4bf;
    color: #332800 !important;
}

.by-els-course {
    padding: 16px;
    border-radius: 12px;
    background: #edf7e9;
    color: #172317 !important;
}

.by-els-form {
    display: grid;
    gap: 18px;
}

.by-els-source-note {
    margin: -10px 0 0;
    color: #384638 !important;
    font-size: 0.9rem;
}

.by-els-form label {
    display: grid;
    gap: 7px;
    color: #172317 !important;
    font-weight: 650;
}

.by-els-form input,
.by-els-form select,
.by-els-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #778c72;
    border-radius: 10px;
    background: #ffffff !important;
    color: #111811 !important;
    -webkit-text-fill-color: #111811;
    caret-color: #111811;
    font: inherit;
}

.by-els-form input::placeholder,
.by-els-form textarea::placeholder {
    color: #596559 !important;
    opacity: 1;
}

.by-els-form input:focus,
.by-els-form select:focus,
.by-els-form textarea:focus {
    border-color: #174c25;
    outline: 3px solid rgba(23, 76, 37, 0.22);
    outline-offset: 1px;
}

.by-els-form [dir="rtl"] {
    font-size: 1.5rem;
    line-height: 1.7;
}

.by-els-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.by-els-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.by-els-check input {
    width: auto;
}

.by-els-form button,
.by-els-actions button {
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: #1f6b2b !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.by-els-form button:hover,
.by-els-actions button:hover {
    background: #174f20 !important;
}

.by-els-status {
    margin: 22px 0 10px;
    color: #174c25 !important;
    font-weight: 700;
}

.by-els-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.by-els-result-card {
    margin: 16px 0;
    padding: 18px;
    border: 1px solid #b8ccb2;
    border-radius: 14px;
    background: #f4fbf1;
    color: #111811 !important;
}

.by-els-result-card h3,
.by-els-result-card p,
.by-els-result-card dt,
.by-els-result-card dd,
.by-els-result-card span {
    color: #111811 !important;
}

.by-els-result-card dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
}

.by-els-result-card dt {
    font-weight: 700;
}

.by-els-result-card dd {
    margin: 0;
}

.by-els-context {
    padding: 14px;
    border: 1px dashed #587d50;
    border-radius: 10px;
    background: #ffffff !important;
    color: #111811 !important;
    font-size: 1.5rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.by-els-context strong,
.by-els-context .by-els-found {
    padding: 3px 8px;
    border-radius: 6px;
    background: #ffe3e3 !important;
    color: #870000 !important;
    -webkit-text-fill-color: #870000;
}

@media (max-width: 768px) {
    .by-els-wrapper {
        padding: 16px;
        border-radius: 12px;
    }

    .by-els-grid,
    .by-els-result-card dl {
        grid-template-columns: 1fr;
    }

    .by-els-context {
        font-size: 1.25rem;
    }
}

@media print {
    .by-els-form,
    .by-els-actions,
    .by-els-warning {
        display: none !important;
    }

    .by-els-wrapper {
        border: 0;
        box-shadow: none;
    }
}
