:root {
    --ef-green: #82c46c;
    --ef-dark: #00413b;
    --ef-yellow: #ffda00;
    --ef-light: #e6f3e2;
    --ef-white: #ffffff;
    --ef-text: #1a1a1a;
    --ef-muted: #5a6b68;
    --ef-border: #d4e8cf;
    --ef-danger: #b42318;
    --ef-warning: #b54708;
    --ef-radius: 12px;
    --ef-font: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
    --ef-font-title: 'Frank Ruhl Libre', Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: var(--ef-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ef-text);
    background: var(--ef-light);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ef-dark);
    text-decoration: none;
}

a:hover {
    color: var(--ef-green);
}

.ef-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ef-header {
    background: var(--ef-white);
    border-bottom: 3px solid var(--ef-yellow);
    box-shadow: 0 2px 12px rgba(0, 65, 59, 0.06);
}

.ef-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ef-logo {
    display: flex;
    align-items: center;
}

.ef-logo img,
.ef-logo svg {
    height: 48px;
    width: auto;
    display: block;
}

.ef-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ef-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ef-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.ef-user__email {
    font-size: 0.8125rem;
    color: var(--ef-muted);
}

.ef-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--ef-light);
}

.ef-auth__logo img {
    height: 56px;
    width: auto;
    margin-bottom: 2rem;
}

.ef-auth__card {
    width: 100%;
    max-width: 420px;
}

.ef-nav__link {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ef-muted);
    transition: background 0.15s, color 0.15s;
}

.ef-nav__link:hover {
    background: var(--ef-light);
    color: var(--ef-dark);
}

.ef-nav__link--active {
    background: var(--ef-dark);
    color: var(--ef-white);
}

.ef-nav__link--active:hover {
    background: var(--ef-dark);
    color: var(--ef-white);
}

.ef-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.ef-main--narrow {
    max-width: 760px;
}

.ef-main--wide {
    max-width: 1600px;
}

.ef-card {
    background: var(--ef-white);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 65, 59, 0.05);
}

.ef-title {
    font-family: var(--ef-font-title);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--ef-dark);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.ef-subtitle {
    margin: 0;
    color: var(--ef-muted);
    font-size: 0.9375rem;
}

.ef-section-title {
    font-family: var(--ef-font-title);
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--ef-dark);
    margin: 0 0 1rem;
}

.ef-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ef-stack--lg {
    gap: 1.5rem;
}

.ef-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ef-dark);
}

.ef-input,
.ef-select,
.ef-textarea {
    width: 100%;
    border: 1px solid var(--ef-border);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font: inherit;
    color: var(--ef-text);
    background: var(--ef-white);
}

.ef-input:focus,
.ef-select:focus,
.ef-textarea:focus {
    outline: 2px solid rgba(130, 196, 108, 0.45);
    border-color: var(--ef-green);
}

.ef-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.15s, background 0.15s;
}

.ef-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ef-btn--primary {
    background: var(--ef-dark);
    color: var(--ef-white);
}

.ef-btn--primary:hover:not(:disabled) {
    background: #003530;
}

.ef-btn--secondary {
    background: var(--ef-green);
    color: var(--ef-dark);
}

.ef-btn--secondary:hover:not(:disabled) {
    background: #73b55f;
}

.ef-btn--ghost {
    background: transparent;
    color: var(--ef-dark);
    border: 1px solid var(--ef-border);
}

.ef-btn--ghost:hover:not(:disabled) {
    background: var(--ef-light);
}

.ef-btn--danger {
    background: #fee4e2;
    color: var(--ef-danger);
}

.ef-btn--danger:hover:not(:disabled) {
    background: #fecdca;
}

.ef-btn--sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
}

.ef-alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
}

.ef-alert--success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.ef-alert--warning {
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: var(--ef-warning);
}

.ef-alert--error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: var(--ef-danger);
}

.ef-alert--info {
    background: #eff8ff;
    border: 1px solid #b2ddff;
    color: #175cd3;
}

.ef-progress {
    height: 10px;
    border-radius: 999px;
    background: var(--ef-light);
    overflow: hidden;
}

.ef-progress__bar {
    height: 100%;
    border-radius: 999px;
    background: var(--ef-green);
    transition: width 0.3s;
}

.ef-progress__bar--error {
    background: #f04438;
}

.ef-progress__bar--live {
    transition: width 0.12s linear;
    background: linear-gradient(90deg, var(--ef-dark), var(--ef-green));
}

.ef-import-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ef-import-panel__submit {
    width: 100%;
    margin-top: 1rem;
}

.ef-import-panel__error {
    margin-top: 1rem;
}

.ef-import-live__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ef-import-live__title {
    margin: 0 0 0.35rem;
}

.ef-import-live__hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ef-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ef-import-live__hint-spinner {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.ef-import-live__hint-spinner .ef-refresh-cycle__progress {
    opacity: 1;
    animation: ef-refresh-cycle var(--ef-refresh-interval, 30s) linear infinite;
}

.ef-import-live__hint-spinner--fetching .ef-refresh-cycle__svg {
    animation: ef-refresh-spin 0.7s linear infinite;
}

.ef-import-live__hint-spinner--fetching .ef-refresh-cycle__progress {
    animation: none;
    stroke-dasharray: 14 36.27;
    stroke-dashoffset: 0;
}

.ef-import-live__refresh {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ef-import-live__alert {
    margin: 0 0 1rem;
}

.ef-refresh-cycle {
    display: inline-flex;
    width: 1.125rem;
    height: 1.125rem;
}

.ef-refresh-cycle__svg {
    width: 100%;
    height: 100%;
}

.ef-refresh-cycle__track {
    stroke: #d0d5dd;
}

.ef-refresh-cycle__progress {
    stroke: #00413b;
    stroke-dasharray: 50.27;
    stroke-dashoffset: 50.27;
    opacity: 0;
    transition: opacity 0.2s;
}

.ef-import-live__refresh--active .ef-refresh-cycle__progress {
    opacity: 1;
    animation: ef-refresh-cycle var(--ef-refresh-interval, 30s) linear infinite;
}

.ef-import-live__refresh--fetching .ef-refresh-cycle__svg {
    animation: ef-refresh-spin 0.7s linear infinite;
}

.ef-import-live__refresh--fetching .ef-refresh-cycle__progress {
    opacity: 1;
    animation: none;
    stroke-dasharray: 14 36.27;
    stroke-dashoffset: 0;
}

@keyframes ef-refresh-cycle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ef-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.ef-import-live__empty {
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ef-muted);
    background: linear-gradient(180deg, #fafcfb 0%, var(--ef-light) 100%);
    border-radius: var(--ef-radius);
    border: 1px dashed var(--ef-border);
}

.ef-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem 1.5rem;
    border: 2px dashed var(--ef-border);
    border-radius: var(--ef-radius);
    background: linear-gradient(180deg, #fafcfb 0%, var(--ef-white) 100%);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: center;
}

.ef-dropzone:hover,
.ef-dropzone:focus-within {
    border-color: var(--ef-green);
    background: var(--ef-light);
    box-shadow: 0 0 0 4px rgba(130, 196, 108, 0.15);
}

.ef-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.ef-dropzone__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--ef-dark);
    color: var(--ef-yellow);
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.ef-dropzone__title {
    font-weight: 700;
    color: var(--ef-dark);
    font-size: 0.9375rem;
}

.ef-dropzone__hint,
.ef-dropzone__file {
    font-size: 0.8125rem;
    color: var(--ef-muted);
}

.ef-dropzone__file {
    margin-top: 0.35rem;
    font-weight: 600;
    color: var(--ef-dark);
}

.ef-import-loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--ef-muted);
}

.ef-import-loading__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--ef-green);
    animation: ef-pulse 1.2s ease-in-out infinite;
}

@keyframes ef-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.ef-import-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    padding: 1.25rem 1.35rem 1.35rem;
    background: var(--ef-white);
    box-shadow: 0 4px 16px rgba(0, 65, 59, 0.04);
}

.ef-import-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--ef-green);
}

.ef-import-item--failed::before {
    background: #f04438;
}

.ef-import-item--completed::before {
    background: var(--ef-dark);
}

.ef-import-item--running::before {
    background: linear-gradient(180deg, var(--ef-yellow), var(--ef-green));
}

.ef-import-item--stalled::before {
    background: #f79009;
}

.ef-import-worker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.ef-import-worker__status {
    font-size: 0.8125rem;
}

.ef-import-worker__status--alive {
    color: #067647;
}

.ef-import-worker__status--dead {
    color: var(--ef-danger);
}

.ef-import-worker__path {
    display: block;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--ef-muted);
    background: var(--ef-light);
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ef-import-worker-log-excerpt {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    max-height: 10rem;
    overflow: auto;
    font-size: 0.75rem;
    line-height: 1.4;
    background: #1e1e1e;
    color: #f5f5f5;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.ef-import-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ef-import-item__title {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ef-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ef-import-item__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--ef-muted);
}

.ef-import-item__percent {
    flex-shrink: 0;
    font-family: var(--ef-font-title);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: var(--ef-dark);
}

.ef-import-item__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--ef-light);
    color: var(--ef-dark);
}

.ef-import-stepper {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

.ef-import-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    text-align: center;
}

.ef-import-step__track {
    display: flex;
    align-items: center;
    width: 100%;
}

.ef-import-step__connector {
    flex: 1;
    height: 2px;
    background: var(--ef-border);
    transition: background 0.35s ease;
}

.ef-import-step__marker {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--ef-muted);
    background: var(--ef-light);
    border: 2px solid var(--ef-border);
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.ef-import-step__label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ef-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ef-import-step__status {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ef-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ef-import-step--done .ef-import-step__connector,
.ef-import-step--done + .ef-import-step .ef-import-step__connector:first-child {
    background: var(--ef-green);
}

.ef-import-step--done .ef-import-step__marker {
    color: var(--ef-white);
    background: var(--ef-green);
    border-color: var(--ef-green);
}

.ef-import-step--done .ef-import-step__label,
.ef-import-step--active .ef-import-step__label {
    color: var(--ef-dark);
}

.ef-import-step--done .ef-import-step__status {
    color: var(--ef-green);
}

.ef-import-step--active .ef-import-step__marker {
    color: var(--ef-dark);
    background: var(--ef-yellow);
    border-color: var(--ef-green);
    box-shadow: 0 0 0 3px rgba(0, 65, 59, 0.12);
}

.ef-import-step--active .ef-import-step__status {
    color: var(--ef-dark);
}

.ef-import-step--pending .ef-import-step__status {
    opacity: 0.65;
}

.ef-progress--lg {
    height: 14px;
    margin-bottom: 1rem;
}

.ef-progress--lg .ef-progress__bar {
    background: linear-gradient(90deg, var(--ef-dark), var(--ef-green));
}

.ef-import-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ef-import-stat {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: var(--ef-light);
}

.ef-import-stat__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ef-muted);
    margin-bottom: 0.25rem;
}

.ef-import-stat__value {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ef-dark);
    line-height: 1.35;
}

.ef-import-item__timing {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ef-muted);
}

.ef-import-item__alert {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
}

.ef-import-item__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ef-import-item__filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-import-item__meta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ef-muted);
}

.ef-import-item__meta + .ef-import-item__meta {
    margin-top: 0.25rem;
}

@media (max-width: 720px) {
    .ef-import-stepper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ef-import-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.75rem;
    }

    .ef-import-step__track {
        width: auto;
        flex-shrink: 0;
    }

    .ef-import-step__connector {
        display: none;
    }

    .ef-import-stats {
        grid-template-columns: 1fr;
    }

    .ef-import-history-table th:nth-child(3),
    .ef-import-history-table td:nth-child(3),
    .ef-import-history-table th:nth-child(4),
    .ef-import-history-table td:nth-child(4) {
        display: none;
    }
}

.ef-import-item__actions {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ef-import-item__actions .ef-import-item__percent {
    margin: 0;
}

.ef-btn--danger {
    background: transparent;
    color: #b42318;
    border: 1px solid #fda29b;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
}

.ef-btn--danger:hover {
    background: #fef3f2;
}

.ef-import-item--cancelled::before {
    background: #98a2b3;
}

.ef-badge--cancelled {
    background: #f2f4f7;
    color: #667085;
}

.ef-badge--failed {
    background: #fef3f2;
    color: #b42318;
}

.ef-import-history__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ef-import-history__title {
    margin: 0;
}

.ef-import-history__more {
    width: 100%;
    margin-top: 1rem;
}

.ef-import-history-table td {
    vertical-align: middle;
}

.ef-import-history-table__file {
    font-weight: 600;
    color: var(--ef-dark);
}

.ef-import-history-table__meta {
    display: block;
    font-size: 0.75rem;
    color: var(--ef-muted);
    margin-top: 0.15rem;
}

.ef-import-history-table__error {
    display: block;
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #b91c1c;
    max-width: 18rem;
}

.ef-import-history-detail td {
    background: #fffbeb;
    padding: 0;
    border-bottom: 1px solid var(--ef-border);
}

.ef-import-rejected-panel-wrap {
    margin-top: 0.75rem;
}

.ef-import-rejected-panel {
    padding: 1rem 1.25rem;
}

.ef-import-rejected-panel__summary {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ef-dark);
}

.ef-import-rejected-list {
    max-height: 280px;
    overflow: auto;
    margin: 0;
    padding-left: 1.25rem;
}

.ef-import-rejected-list li {
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
    color: #7a2e0e;
}

.ef-import-rejected-panel__pager {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.ef-import-rejected-panel__actions {
    margin: 0.75rem 0 0;
}

.ef-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ef-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
}

.ef-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ef-table th,
.ef-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--ef-border);
}

.ef-table th {
    background: var(--ef-light);
    color: var(--ef-dark);
    font-weight: 700;
}

.ef-table tr:last-child td {
    border-bottom: none;
}

.ef-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.ef-badge--active {
    background: #ecfdf3;
    color: #067647;
}

.ef-badge--scheduled {
    background: #eff8ff;
    color: #175cd3;
}

.ef-badge--expired,
.ef-badge--revoked {
    background: #f2f4f7;
    color: #667085;
}

.ef-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ef-file-input {
    font-size: 0.875rem;
    color: var(--ef-muted);
}

.ef-file-input::file-selector-button {
    margin-right: 1rem;
    border: none;
    border-radius: 999px;
    background: var(--ef-dark);
    color: var(--ef-white);
    padding: 0.55rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ef-file-input::file-selector-button:hover {
    background: #003530;
}

.ef-key-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
    background: var(--ef-light);
    border: 1px dashed var(--ef-green);
    border-radius: 8px;
    padding: 0.85rem;
}

.ef-muted {
    color: var(--ef-muted);
    font-size: 0.8125rem;
}

.ef-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.ef-form-row .ef-label {
    flex: 1;
    min-width: 180px;
}

@media (max-width: 720px) {
    .ef-grid-2 {
        grid-template-columns: 1fr;
    }

    .ef-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ef-docs {
    line-height: 1.6;
    color: var(--ef-dark);
}

.ef-docs h1,
.ef-docs h2,
.ef-docs h3 {
    font-family: 'Frank Ruhl Libre', serif;
    color: var(--ef-dark);
    margin: 1.75rem 0 0.75rem;
}

.ef-docs h1 {
    font-size: 1.75rem;
}

.ef-docs h2 {
    font-size: 1.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--ef-border);
}

.ef-docs h3 {
    font-size: 1.1rem;
}

.ef-docs p,
.ef-docs ul,
.ef-docs ol {
    margin: 0 0 1rem;
}

.ef-docs ul,
.ef-docs ol {
    padding-left: 1.5rem;
}

.ef-docs code {
    font-family: ui-monospace, monospace;
    font-size: 0.875em;
    background: var(--ef-light);
    border: 1px solid var(--ef-border);
    border-radius: 4px;
    padding: 0.1em 0.35em;
}

.ef-docs pre {
    margin: 0 0 1rem;
    padding: 1rem;
    background: #0f2d29;
    color: #e8f5e6;
    border-radius: 8px;
    overflow-x: auto;
}

.ef-docs pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.ef-docs table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.ef-docs th,
.ef-docs td {
    border: 1px solid var(--ef-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.ef-docs th {
    background: var(--ef-light);
    font-weight: 600;
}

.ef-docs a {
    color: var(--ef-dark);
    text-decoration: underline;
}

.ef-docs hr {
    border: 0;
    border-top: 1px solid var(--ef-border);
    margin: 1.5rem 0;
}

.ef-docs-config .ef-section-title {
    margin: 0 0 0.35rem;
}

.ef-docs-engine-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ef-border);
}

.ef-docs-engine {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ef-docs-engine--meili {
    background: #eff8ff;
    color: #175cd3;
}

.ef-docs-engine--mysql {
    background: #fef3f2;
    color: #b42318;
}

.ef-docs-code {
    position: relative;
    margin: 0 0 0.85rem;
    border: 1px solid #1e3d37;
    border-radius: 8px;
    overflow: hidden;
    background: #132823;
}

.ef-docs-code pre {
    margin: 0;
    padding: 0.85rem 1rem;
    background: transparent;
    color: #e8f5e6;
    border-radius: 0;
    border: 0;
}

.ef-docs-code__editor {
    display: block;
    width: 100%;
    min-height: 4.5rem;
    margin: 0;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
    resize: vertical;
    border: 0;
    outline: none;
    background: transparent;
    color: #e8f5e6;
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: pre;
    overflow-wrap: anywhere;
}

.ef-docs-code__editor:focus {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(165, 214, 167, 0.35);
}

.ef-docs-code pre code {
    white-space: pre-wrap;
    word-break: break-all;
}

.ef-docs-code__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ef-docs-code__actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ef-docs-code__btn {
    padding: 0.3rem 0.65rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #c8e6c9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ef-docs-code__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.ef-docs-code__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.ef-docs-code__btn--primary {
    color: #0f2d29;
    background: #a5d6a7;
    border-color: #a5d6a7;
}

.ef-docs-code__btn--primary:hover:not(:disabled) {
    background: #c8e6c9;
    border-color: #c8e6c9;
    color: #0f2d29;
}

.ef-docs-code__btn--done {
    color: #a5d6a7;
    border-color: rgba(165, 214, 167, 0.45);
}

.ef-docs-code__result {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f211e;
    padding: 0.75rem 1rem 1rem;
}

.ef-docs-code__result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.ef-docs-code__result-url {
    font-size: 0.78rem;
    word-break: break-all;
}

.ef-docs-code__result-body {
    margin: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    color: #e8f5e6;
    font-size: 0.78rem;
    line-height: 1.45;
    max-height: 20rem;
    overflow: auto;
}

.ef-docs-code__result-body code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.ef-settings-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ef-settings-dl {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.ef-settings-dl > div {
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    gap: 0.75rem 1rem;
    align-items: baseline;
}

.ef-settings-dl dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ef-muted);
}

.ef-settings-dl dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ef-text);
    word-break: break-word;
}

.ef-badge--warning {
    background: #fffaeb;
    color: #b54708;
}

.ef-settings-log {
    margin: 0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #0f1f1d;
    color: #e8f5e9;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 10rem;
    overflow: auto;
}
