:root {
    --bo-bg: #f6f7fb;
    --bo-surface: #ffffff;
    --bo-surface-alt: #f8f9fc;
    --bo-border: #e7e5f0;
    --bo-text: #2f3c53;
    --bo-muted: #768194;
    --bo-primary: var(--primary-color);
    --bo-primary-soft: rgba(97, 101, 215, 0.08);
    --bo-success: #1f9d62;
    --bo-warning: #d89b17;
    --bo-danger: #d64545;
    --bo-shadow: 0 12px 32px rgba(47, 60, 83, 0.08);
}

html, body.bo-body {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: block;
    background: var(--bo-bg);
    color: var(--bo-text);
}

.bo-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.bo-sidebar {
    border-right: 1px solid var(--bo-border);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fd 100%);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.bo-sidebar__brand {
    margin-bottom: 24px;
}

.bo-sidebar__brand h2 {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.bo-sidebar__brand p {
    color: var(--bo-muted);
    font-size: 0.95rem;
}

.bo-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bo-primary-soft);
    color: var(--bo-primary);
    font-family: var(--bold-font);
    font-size: 0.8rem;
}

.bo-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bo-nav__link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--bo-text);
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.bo-nav__link:hover {
    background: #fff;
    border-color: var(--bo-border);
}

.bo-nav__link.is-active {
    background: var(--bo-primary);
    color: #fff;
    font-family: var(--bold-font);
    box-shadow: 0 10px 24px rgba(97, 101, 215, 0.18);
}

.bo-main {
    padding: 32px;
    min-width: 0;
}

.bo-page-header {
    margin-bottom: 24px;
}

.bo-page-header__eyebrow {
    color: var(--bo-primary);
    font-family: var(--bold-font);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.bo-page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.bo-page-header p {
    max-width: 760px;
    line-height: 1.5;
}

.bo-card {
    background: var(--bo-surface);
    border: 1px solid var(--bo-border);
    border-radius: 24px;
    box-shadow: var(--bo-shadow);
    padding: 24px;
}

.bo-grid {
    display: grid;
    gap: 20px;
}

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

.bo-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bo-form-group label {
    font-family: var(--bold-font);
    color: var(--bo-text);
    font-size: 0.95rem;
}

.bo-form-hint {
    color: var(--bo-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.bo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.bo-button {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-family: var(--bold-font);
    cursor: pointer;
}

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

.bo-button--neutral {
    background: #eef1f7;
    color: var(--bo-text);
}

.bo-button--danger {
    background: var(--bo-danger);
    color: #fff;
}

.bo-button--warning {
    background: #fff7e6;
    color: #8a6200;
    border: 1px solid #f2d38b;
}

.bo-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bo-alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 20px;
    font-family: var(--bold-font);
}

.bo-alert--success {
    background: #eaf8f1;
    color: #126b43;
}

.bo-alert--error {
    background: #fdecec;
    color: #9e2e2e;
}

.bo-question {
    border: 1px solid var(--bo-border);
    border-radius: 18px;
    padding: 18px;
    background: var(--bo-surface-alt);
}

.bo-question__title {
    margin-bottom: 14px;
}

.bo-label-entry {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.bo-label-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bo-label-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--bo-border);
    border-radius: 14px;
    padding: 12px 14px;
}

.bo-label-item__meta {
    font-family: var(--bold-font);
}

.bo-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--bo-muted);
    border: 1px dashed var(--bo-border);
    border-radius: 18px;
    background: #fff;
}

@media (max-width: 1100px) {
    .bo-shell {
        grid-template-columns: 1fr;
    }

    .bo-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--bo-border);
    }

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

    .bo-main {
        padding: 20px;
    }
}
