.hf-esg {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #111827;
}

@media (min-width: 960px) {
    .hf-esg {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

.hf-esg__panel {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.hf-esg__title {
    font-size: 28px;
    margin: 0 0 8px 0;
}

.hf-esg__subtitle {
    margin: 0 0 20px 0;
    color: #4b5563;
}

.hf-esg__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.hf-esg__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.hf-esg__input {
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.hf-esg__actions {
    margin-top: 18px;
}

.hf-esg__button {
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 14px;
    cursor: pointer;
}

.hf-esg__preview {
    background: radial-gradient(circle at top, #f8fafc 0%, #eef2ff 45%, #ffffff 100%);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.hf-esg__preview-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 12px;
}

.hf-esg__preview-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.hf-esg__modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hf-esg__modal.is-open {
    display: flex;
}

.hf-esg__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.hf-esg__modal-dialog {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 85vh;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 20px 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.hf-esg__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hf-esg__icon-button {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.hf-esg__modal-grid {
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding-right: 8px;
}

.hf-esg__tile {
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hf-esg__tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.hf-esg__tile-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.hf-esg__tile-preview {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
}

.hf-esg__tile-preview table {
    width: 100%;
}
