:root {
    --bo-bg: #f4f5f1;
    --bo-ink: #151713;
    --bo-muted: #687067;
    --bo-line: #d8ddd3;
    --bo-panel: #ffffff;
    --bo-accent: #c9ff4a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bo-bg);
    color: var(--bo-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bo-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.bo-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    border-right: 1px solid var(--bo-line);
    background: #11140f;
    color: #fff;
}

.bo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 36px;
}

.bo-brand span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--bo-accent);
    color: #11140f;
    font-weight: 900;
}

.bo-nav {
    display: grid;
    gap: 8px;
}

.bo-nav button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .68);
    text-align: left;
    padding: 12px 14px;
    border-radius: 8px;
}

.bo-nav button.active,
.bo-nav button:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.bo-main {
    min-width: 0;
    padding: 26px;
}

.bo-header,
.bo-toolbar,
.menu-builder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.bo-header {
    margin-bottom: 24px;
}

.bo-header span,
.bo-toolbar p {
    color: var(--bo-muted);
}

.bo-header h1,
.bo-toolbar h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0;
}

.bo-workspace {
    display: none;
}

.bo-workspace.active {
    display: block;
}

.language-tabs {
    margin: 18px 0;
}

.language-tabs .nav-link {
    color: var(--bo-muted);
    border-radius: 8px 8px 0 0;
}

.language-tabs .nav-link.active {
    color: var(--bo-ink);
    font-weight: 800;
}

.bo-panel {
    background: var(--bo-panel);
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    padding: 18px;
}

.content-filters {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(260px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.content-filter-actions {
    display: flex;
    gap: 8px;
}

.content-table {
    margin: 0;
}

.content-table th {
    color: var(--bo-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.content-table td {
    vertical-align: middle;
}

.content-table small,
.content-url {
    display: block;
    color: var(--bo-muted);
    font-size: .82rem;
    margin-top: 3px;
}

.bo-badge,
.status {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: .72rem;
    font-weight: 900;
}

.bo-badge {
    background: #eef1e8;
    color: var(--bo-ink);
}

.status.published {
    background: #e6f9c8;
    color: #304400;
}

.status.draft {
    background: #f1eee8;
    color: #765018;
}

.modal-content {
    border: 0;
    border-radius: 8px;
}

.modal-header,
.modal-footer {
    background: #fbfcf8;
}

.modal-kicker {
    color: var(--bo-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}

.modal-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
}

.editor-panel {
    background: #fbfcf8;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bo-line);
}

.editor-toolbar button {
    min-width: 40px;
    border: 1px solid var(--bo-line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 800;
}

.editor-hint {
    margin: 12px 0 0;
    color: var(--bo-muted);
    font-size: .86rem;
}

.wysiwyg-editor {
    min-height: 330px;
    padding: 18px 4px;
    outline: none;
    line-height: 1.7;
}

.menu-rows {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.menu-row {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 1fr auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: #fbfcf8;
}

.copy-tag {
    display: block;
    width: fit-content;
    max-width: 420px;
    margin-top: 6px;
    border: 1px dashed var(--bo-line);
    border-radius: 8px;
    background: #fbfcf8;
    color: var(--bo-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .76rem;
    padding: 6px 8px;
    text-align: left;
}

.copy-tag:hover {
    color: var(--bo-ink);
    border-color: var(--bo-ink);
}

.gallery-image-rows {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.gallery-image-row {
    display: grid;
    grid-template-columns: 90px minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, .8fr) 90px auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: #fbfcf8;
}

.gallery-image-preview {
    width: 90px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #eef1e8;
    overflow: hidden;
}

.gallery-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unread-row {
    background: #fffdf2;
}

.enquiry-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.enquiry-detail section,
.enquiry-message {
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    padding: 16px;
    background: #fbfcf8;
}

.enquiry-detail h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 900;
}

.enquiry-detail dl {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}

.enquiry-detail dt {
    color: var(--bo-muted);
    font-weight: 800;
}

.enquiry-detail dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.enquiry-message {
    margin-top: 14px;
}

.enquiry-message p {
    margin: 0;
    white-space: normal;
    line-height: 1.7;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-chip {
    display: inline-grid;
    gap: 2px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--bo-ink);
    text-decoration: none;
    background: #fff;
    font-weight: 800;
}

.attachment-chip span {
    color: var(--bo-muted);
    font-size: .78rem;
    font-weight: 700;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .bo-shell {
        grid-template-columns: 1fr;
    }

    .bo-sidebar {
        position: static;
        height: auto;
    }

    .menu-row {
        grid-template-columns: 1fr;
    }

    .gallery-image-row {
        grid-template-columns: 1fr;
    }

    .enquiry-detail-grid,
    .enquiry-detail dl {
        grid-template-columns: 1fr;
    }

    .content-filters {
        grid-template-columns: 1fr;
    }

    .content-filter-actions {
        justify-content: stretch;
    }

    .content-filter-actions .btn {
        flex: 1;
    }
}
