:root {
    --bo-bg: #050504;
    --bo-surface: #0b0b09;
    --bo-surface-2: #10100d;
    --bo-gold: #d7a94e;
    --bo-gold-light: #f1d58c;
    --bo-text: #f4ead4;
    --bo-muted: #aaa190;
    --bo-line: rgba(215,169,78,.34);
    --bo-danger: #e38b80;
    --bo-success: #9ec38b;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--bo-text);
    background:
        radial-gradient(circle at 50% 0, rgba(215,169,78,.06), transparent 40rem),
        var(--bo-bg);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: var(--bo-gold-light);
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.bo-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 84px;
    padding: 10px 4vw;
    border-bottom: 1px solid var(--bo-line);
    background: rgba(5,5,4,.96);
    backdrop-filter: blur(18px);
}

.bo-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--bo-gold-light);
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: .04em;
}

.bo-brand img {
    width: 95px;
    height: auto;
}

.bo-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.bo-nav a {
    color: var(--bo-muted);
    font-size: .82rem;
}

.bo-nav a:hover {
    color: var(--bo-gold-light);
}

.bo-main {
    width: min(1450px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 100px;
}

.bo-messages {
    position: fixed;
    z-index: 300;
    top: 100px;
    right: 24px;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100% - 48px));
}

.bo-message {
    padding: 15px 18px;
    border: 1px solid var(--bo-line);
    background: var(--bo-surface-2);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

.bo-message--error {
    border-color: rgba(227,139,128,.65);
}

.bo-message--success {
    border-color: rgba(158,195,139,.65);
}

.bo-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.bo-page-heading h1,
.bo-auth-card h1,
.bo-form-card h1 {
    margin: 6px 0 0;
    color: var(--bo-gold-light);
    font-family: Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 5.4rem);
    font-weight: 400;
    line-height: 1;
}

.bo-page-heading p {
    max-width: 740px;
    color: var(--bo-muted);
}

.bo-eyebrow {
    margin: 0;
    color: var(--bo-gold);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.bo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid var(--bo-line);
    color: var(--bo-gold-light);
    background: transparent;
    cursor: pointer;
    font-family: Georgia, serif;
    letter-spacing: .04em;
}

.bo-button--gold {
    color: #090805;
    background: linear-gradient(90deg, #f1d58c, #d7a94e);
}

.bo-button--small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: .8rem;
}

.bo-actions,
.bo-form-actions,
.bo-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bo-actions form,
.bo-inline-actions form {
    margin: 0;
}

.bo-inline-actions button,
.bo-editor-item-actions button {
    padding: 0;
    border: 0;
    color: var(--bo-danger);
    background: transparent;
    cursor: pointer;
}

.bo-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 42px;
    padding: 1px;
    background: var(--bo-line);
}

.bo-stats article {
    min-height: 145px;
    padding: 24px;
    background: var(--bo-surface);
}

.bo-stats span {
    display: block;
    min-height: 42px;
    color: var(--bo-muted);
    font-size: .76rem;
}

.bo-stats strong {
    display: block;
    margin-top: 18px;
    color: var(--bo-gold-light);
    font-family: Georgia, serif;
    font-size: 2.8rem;
    font-weight: 400;
}

.bo-stats--compact article {
    min-height: 110px;
}

.bo-dashboard-grid,
.bo-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.bo-panel,
.bo-form-card,
.bo-auth-card {
    border: 1px solid var(--bo-line);
    background: var(--bo-surface);
}

.bo-panel {
    padding: 28px;
}

.bo-panel--wide {
    grid-column: 1 / -1;
}

.bo-panel--spaced {
    margin-top: 30px;
}

.bo-panel h2 {
    margin: 0;
    color: var(--bo-gold-light);
    font-family: Georgia, serif;
    font-size: 1.7rem;
    font-weight: 400;
}

.bo-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.bo-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(215,169,78,.16);
    color: var(--bo-text);
}

.bo-list-row strong,
.bo-list-row small {
    display: block;
}

.bo-list-row small {
    margin-top: 4px;
    color: var(--bo-muted);
}

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

.bo-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bo-surface);
}

.bo-table th,
.bo-table td {
    padding: 17px 18px;
    border-bottom: 1px solid rgba(215,169,78,.16);
    text-align: left;
    vertical-align: top;
}

.bo-table th {
    color: var(--bo-gold);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bo-table td {
    color: var(--bo-muted);
}

.bo-table td strong,
.bo-table td small {
    display: block;
}

.bo-table td strong {
    color: var(--bo-text);
}

.bo-table td small {
    margin-top: 5px;
}

.bo-table-actions {
    white-space: nowrap;
}

.bo-table-actions a + a {
    margin-left: 12px;
}

.bo-status {
    display: inline-flex;
    padding: 7px 9px;
    border: 1px solid var(--bo-line);
    font-size: .68rem;
}

.bo-status--published {
    border-color: rgba(158,195,139,.55);
    color: var(--bo-success);
}

.bo-status--cancelled {
    border-color: rgba(227,139,128,.55);
    color: var(--bo-danger);
}

.bo-form-card {
    padding: 32px;
}

.bo-form-card--narrow,
.bo-auth-card {
    width: min(680px, 100%);
    margin: 60px auto;
}

.bo-auth-card {
    padding: 44px;
}

.bo-auth-card > p {
    color: var(--bo-muted);
    line-height: 1.7;
}

.bo-auth-card form,
.bo-form-card form {
    display: grid;
    gap: 18px;
}

.bo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.bo-form-card label,
.bo-auth-card label,
.bo-filter-bar label,
.bo-upload-form label {
    display: grid;
    gap: 8px;
    color: var(--bo-muted);
    font-size: .78rem;
}

.bo-field--full {
    grid-column: 1 / -1;
}

.bo-form-card input,
.bo-form-card textarea,
.bo-form-card select,
.bo-auth-card input,
.bo-filter-bar select,
.bo-upload-form input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--bo-line);
    color: var(--bo-text);
    background: #060605;
}

.bo-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.bo-form-card input[type="checkbox"] {
    width: auto;
    min-height: 0;
}

.bo-field-error,
.bo-form-error {
    color: var(--bo-danger);
}

.bo-form-error,
.bo-alert {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(227,139,128,.55);
    background: rgba(227,139,128,.06);
}

.bo-form-actions {
    margin-top: 28px;
}

.bo-text-link {
    display: inline-block;
    margin-top: 20px;
}

.bo-editor-item {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid rgba(215,169,78,.16);
}

.bo-editor-item-media {
    height: 100px;
    border: 1px solid var(--bo-line);
    background: #050504;
}

.bo-editor-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bo-editor-item strong {
    color: var(--bo-gold-light);
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
}

.bo-editor-item p {
    color: var(--bo-muted);
}

.bo-editor-item-actions {
    display: grid;
    gap: 10px;
    text-align: right;
}

.bo-upload-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    margin: 24px 0;
    padding: 20px;
    border: 1px dashed var(--bo-line);
}

.bo-upload-form small {
    grid-column: 1 / -1;
    color: var(--bo-muted);
}

.bo-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bo-photo-grid article {
    border: 1px solid var(--bo-line);
    background: var(--bo-surface-2);
}

.bo-photo-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.bo-photo-grid article > div {
    padding: 12px;
}

.bo-photo-grid span,
.bo-photo-grid small {
    display: block;
}

.bo-photo-grid small {
    margin-top: 5px;
    color: var(--bo-muted);
}

.bo-form-with-preview {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
}

.bo-form-with-preview > img {
    width: 100%;
    max-height: 700px;
    border: 1px solid var(--bo-line);
    object-fit: contain;
    background: #000;
}

.bo-check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.bo-check-list li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--bo-gold);
}

.bo-result-box {
    display: grid;
    gap: 8px;
    margin-top: 25px;
    padding: 18px;
    border: 1px solid var(--bo-line);
}

.bo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--bo-line);
    background: var(--bo-surface);
}

.bo-filter-bar label {
    min-width: 220px;
}

.bo-detail-list {
    margin: 0;
}

.bo-detail-list div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(215,169,78,.16);
}

.bo-detail-list dt {
    color: var(--bo-muted);
}

.bo-detail-list dd {
    margin: 0;
}

@media (max-width: 1050px) {
    .bo-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .bo-nav {
        justify-content: flex-start;
    }

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

    .bo-dashboard-grid,
    .bo-editor-grid,
    .bo-form-with-preview {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .bo-main {
        width: min(100% - 24px, 1450px);
        padding-top: 30px;
    }

    .bo-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .bo-stats,
    .bo-form-grid,
    .bo-photo-grid {
        grid-template-columns: 1fr;
    }

    .bo-field--full {
        grid-column: 1;
    }

    .bo-editor-item {
        grid-template-columns: 1fr;
    }

    .bo-editor-item-media {
        height: 210px;
    }

    .bo-editor-item-actions {
        display: flex;
        text-align: left;
    }

    .bo-upload-form {
        grid-template-columns: 1fr;
    }

    .bo-upload-form small {
        grid-column: 1;
    }

    .bo-form-card,
    .bo-auth-card,
    .bo-panel {
        padding: 22px;
    }
}
