.ebp-directory {
    --ebp-ink: #191919;
    --ebp-muted: #64615d;
    --ebp-line: #dedbd5;
    --ebp-bg: #fbfaf7;
    --ebp-soft: #f3f0ea;
    color: var(--ebp-ink);
    font-family: inherit;
}

.ebp-directory a {
    color: inherit;
}

.ebp-button,
.ebp-directory button,
.ebp-directory input[type="submit"] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--ebp-ink);
    border-radius: 4px;
    background: var(--ebp-ink);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.ebp-button-secondary {
    background: transparent;
    color: var(--ebp-ink) !important;
}

.ebp-directory-filters,
.ebp-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    margin: 0 0 28px;
}

.ebp-directory label {
    display: grid;
    gap: 7px;
    color: var(--ebp-muted);
    font-size: 13px;
    font-weight: 600;
}

.ebp-directory input,
.ebp-directory select,
.ebp-directory textarea {
    width: 100%;
    border: 1px solid var(--ebp-line);
    border-radius: 4px;
    background: #fff;
    color: var(--ebp-ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
}

.ebp-directory textarea {
    min-height: 120px;
}

.ebp-vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ebp-vendor-card {
    border: 1px solid var(--ebp-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ebp-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--ebp-soft);
    overflow: hidden;
    text-decoration: none;
}

.ebp-card-image img,
.ebp-profile-gallery img,
.ebp-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ebp-card-image span {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 24px;
    text-align: center;
}

.ebp-card-body {
    padding: 20px;
}

.ebp-eyebrow,
.ebp-badge {
    color: var(--ebp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ebp-badge {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid var(--ebp-line);
    border-radius: 999px;
    margin-bottom: 12px;
}

.ebp-card-body h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.15;
}

.ebp-card-body p {
    color: var(--ebp-muted);
    margin: 0 0 18px;
}

.ebp-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--ebp-line);
    padding-top: 14px;
    color: var(--ebp-muted);
    font-size: 13px;
}

.ebp-profile-header {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 32px;
}

.ebp-profile-logo {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: var(--ebp-soft);
    overflow: hidden;
}

.ebp-profile-header h1 {
    margin: 0 0 12px;
    font-size: clamp(40px, 6vw, 82px);
    line-height: .98;
}

.ebp-profile-intro {
    max-width: 720px;
    color: var(--ebp-muted);
    font-size: 20px;
    line-height: 1.5;
}

.ebp-profile-actions,
.ebp-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.ebp-profile-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 28px 0;
    background: var(--ebp-line);
    border: 1px solid var(--ebp-line);
}

.ebp-profile-meta div {
    background: #fff;
    padding: 16px;
}

.ebp-profile-meta span {
    display: block;
    color: var(--ebp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ebp-profile-meta strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.35;
}

.ebp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ebp-profile-gallery figure {
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: var(--ebp-soft);
}

.ebp-profile-body,
.ebp-inquiry {
    max-width: 840px;
    margin: 34px auto;
}

.ebp-inquiry {
    padding: 28px;
    border: 1px solid var(--ebp-line);
    border-radius: 8px;
    background: var(--ebp-bg);
}

.ebp-dashboard,
.ebp-message {
    max-width: 1080px;
    margin: 0 auto;
}

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

.ebp-gallery-manager {
    padding: 18px;
    border: 1px solid var(--ebp-line);
    border-radius: 8px;
    background: var(--ebp-bg);
}

.ebp-gallery-item {
    border: 1px solid var(--ebp-line);
    border-radius: 6px;
    padding: 8px;
    background: #fff;
}

.ebp-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ebp-notice {
    padding: 12px 14px;
    border: 1px solid #bccdb8;
    border-radius: 6px;
    background: #f1f7ef;
    margin-bottom: 18px;
}

.ebp-hp {
    position: absolute !important;
    left: -9999px !important;
}

.ebp-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

@media (max-width: 900px) {
    .ebp-directory-filters,
    .ebp-form-grid,
    .ebp-vendor-grid,
    .ebp-profile-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebp-profile-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ebp-directory-filters,
    .ebp-form-grid,
    .ebp-vendor-grid,
    .ebp-profile-meta,
    .ebp-gallery-grid,
    .ebp-admin-grid {
        grid-template-columns: 1fr;
    }
}
