.ebp-wrap {
    --ebp-bg: #f4f0e8;
    --ebp-card: #fffaf1;
    --ebp-text: #1d1b18;
    --ebp-muted: #6c6258;
    --ebp-border: #dfd3c2;
    --ebp-primary: #b5651d;
    --ebp-primary-dark: #7d3f12;
    --ebp-dark: #1f2a24;
    color: var(--ebp-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0 auto;
    max-width: 1240px;
    padding: 24px;
}

.ebp-wrap * {
    box-sizing: border-box;
}

.ebp-shell {
    align-items: flex-start;
    display: grid;
    gap: 24px;
    grid-template-columns: 280px minmax(0, 1fr);
}

.ebp-sidebar,
.ebp-card,
.ebp-login-form,
.ebp-login-copy {
    background: var(--ebp-card);
    border: 1px solid var(--ebp-border);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(40, 30, 20, 0.08);
}

.ebp-sidebar {
    padding: 18px;
    position: sticky;
    top: 24px;
}

.ebp-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ebp-brand-mark {
    align-items: center;
    background: var(--ebp-dark);
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    letter-spacing: -0.04em;
    width: 44px;
}

.ebp-brand strong,
.ebp-brand small {
    display: block;
}

.ebp-brand small,
.ebp-page-head p,
.ebp-card small,
.ebp-empty,
.ebp-login-copy p {
    color: var(--ebp-muted);
}

.ebp-nav {
    display: grid;
    gap: 8px;
}

.ebp-nav a,
.ebp-actions a,
.ebp-card-head a {
    color: var(--ebp-primary-dark);
    text-decoration: none;
}

.ebp-nav a {
    border-radius: 14px;
    display: block;
    font-weight: 700;
    padding: 12px 14px;
}

.ebp-nav a.is-active,
.ebp-nav a:hover {
    background: #f0dfc9;
}

.ebp-main {
    min-width: 0;
}

.ebp-page-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ebp-page-head h1,
.ebp-login-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin: 4px 0 8px;
}

.ebp-eyebrow {
    color: var(--ebp-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ebp-button,
.ebp-wrap button.ebp-button {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 44px;
    padding: 12px 18px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ebp-button:hover {
    box-shadow: 0 10px 24px rgba(40, 30, 20, 0.14);
    transform: translateY(-1px);
}

.ebp-button-primary {
    background: var(--ebp-primary);
    color: #fff;
}

.ebp-button-secondary {
    background: #ead8bf;
    color: var(--ebp-dark);
}

.ebp-button-dark {
    background: var(--ebp-dark);
    color: #fff;
}

.ebp-button-stack {
    display: grid;
    gap: 10px;
}

.ebp-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.ebp-stat {
    background: var(--ebp-dark);
    border-radius: 22px;
    color: #fff;
    padding: 22px;
}

.ebp-stat strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.ebp-stat span {
    color: #e7dac6;
}

.ebp-card {
    padding: 22px;
}

.ebp-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ebp-card h2,
.ebp-card h3 {
    margin-top: 0;
}

.ebp-table-wrap {
    overflow-x: auto;
}

.ebp-table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.ebp-table th,
.ebp-table td {
    border-bottom: 1px solid var(--ebp-border);
    padding: 13px 10px;
    text-align: left;
    vertical-align: middle;
}

.ebp-table th {
    color: var(--ebp-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ebp-actions {
    display: flex;
    gap: 12px;
}

.ebp-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 10px;
}

.ebp-status-publish {
    background: #d9f5df;
    color: #17612a;
}

.ebp-status-draft {
    background: #eee5d6;
    color: #674c29;
}

.ebp-status-future {
    background: #dbeafe;
    color: #1e40af;
}

.ebp-form-grid {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

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

.ebp-form-side {
    position: sticky;
    top: 24px;
}

.ebp-form-section label {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.ebp-form-section label span {
    font-weight: 800;
}

.ebp-form input[type="text"],
.ebp-form input[type="password"],
.ebp-form input[type="datetime-local"],
.ebp-form input[type="file"],
.ebp-form select,
.ebp-form textarea,
.ebp-login-form input[type="text"],
.ebp-login-form input[type="password"] {
    background: #fffefb;
    border: 1px solid var(--ebp-border);
    border-radius: 14px;
    color: var(--ebp-text);
    font: inherit;
    min-height: 46px;
    padding: 12px 14px;
    width: 100%;
}

.ebp-form textarea {
    resize: vertical;
}

.ebp-repeatable {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.ebp-repeatable-head,
.ebp-repeatable-title {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.ebp-repeatable-item {
    background: #fff4e6;
    border: 1px dashed #cfb999;
    border-radius: 18px;
    padding: 16px;
}

.ebp-link-button {
    background: transparent;
    border: 0;
    color: #9f3412;
    cursor: pointer;
    font-weight: 800;
    padding: 0;
}

.ebp-checklist ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.ebp-checklist li {
    margin: 8px 0;
}

.ebp-message {
    border-radius: 16px;
    margin-bottom: 18px;
    padding: 14px 18px;
}

.ebp-message p {
    margin: 4px 0;
}

.ebp-message-success {
    background: #dcfce7;
    color: #14532d;
}

.ebp-message-error {
    background: #fee2e2;
    color: #7f1d1d;
}

.ebp-login-card {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
    margin: 48px auto;
    max-width: 980px;
}

.ebp-login-copy,
.ebp-login-form {
    padding: clamp(24px, 5vw, 44px);
}

.ebp-login-copy {
    background: linear-gradient(140deg, #1f2a24, #8f4d1c);
    color: #fff;
}

.ebp-login-copy p,
.ebp-login-copy .ebp-eyebrow {
    color: #f7e8d3;
}

.ebp-login-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.ebp-checkbox {
    align-items: center;
    display: flex !important;
    gap: 8px !important;
}

.ebp-checkbox input {
    width: auto;
}

.ebp-current-image {
    align-items: center;
    background: #fff4e6;
    border-radius: 16px;
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px;
}

.ebp-current-image img {
    border-radius: 12px;
    height: 80px;
    object-fit: cover;
    width: 120px;
}

@media (max-width: 940px) {
    .ebp-shell,
    .ebp-form-grid,
    .ebp-login-card {
        grid-template-columns: 1fr;
    }

    .ebp-sidebar,
    .ebp-form-side {
        position: static;
    }

    .ebp-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ebp-wrap {
        padding: 14px;
    }

    .ebp-page-head,
    .ebp-card-head,
    .ebp-repeatable-head,
    .ebp-repeatable-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .ebp-stats,
    .ebp-nav {
        grid-template-columns: 1fr;
    }

    .ebp-card,
    .ebp-sidebar {
        border-radius: 18px;
        padding: 16px;
    }
}
