:root {
    --cm-orange: #f58220;
    --cm-orange-soft: #fff0e1;
    --cm-orange-deep: #cf6204;
    --cm-cream: #fffaf5;
    --cm-white: #ffffff;
    --cm-text: #2d2a26;
    --cm-muted: #7d766c;
    --cm-border: #f1ddd0;
    --cm-shadow: 0 18px 45px rgba(245, 130, 32, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--cm-text);
    background:
        radial-gradient(circle at top right, rgba(245, 130, 32, 0.15), transparent 24%),
        linear-gradient(180deg, #fff9f3 0%, #fffdfb 100%);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, #ff9f45 0%, #f58220 48%, #d86a0e 100%);
    color: #fff;
    box-shadow: var(--cm-shadow);
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-title {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.sidebar .nav-link {
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 500;
    transition: 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-foot {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.content-area {
    flex: 1;
    padding: 1.5rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--cm-muted);
}

.status-chip,
.pill-info,
.bulletin-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--cm-orange-soft);
    color: var(--cm-orange-deep);
    font-size: 0.85rem;
    font-weight: 600;
}

.metric-card,
.panel-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(241, 221, 208, 0.9);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(77, 47, 20, 0.06);
}

.metric-card {
    padding: 1.25rem;
}

.metric-card span {
    display: block;
    color: var(--cm-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.metric-card strong {
    font-size: 1.8rem;
}

.panel-card {
    padding: 1.2rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.panel-head h2,
.bulletin-item h3,
.bulletin-feature h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.compact-table {
    margin-bottom: 0;
}

.compact-table thead th {
    color: var(--cm-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom-color: var(--cm-border);
}

.compact-table td {
    border-bottom-color: #f7ebe2;
}

.bulletin-feature,
.bulletin-item,
.empty-state,
.api-item,
.api-sample {
    border: 1px solid var(--cm-border);
    border-radius: 18px;
    background: var(--cm-cream);
}

.bulletin-feature,
.empty-state,
.api-sample {
    padding: 1rem;
}

.bulletin-list {
    display: grid;
    gap: 0.9rem;
}

.bulletin-item {
    padding: 1rem;
}

.bulletin-item p,
.bulletin-feature p,
.api-item p {
    margin: 0.5rem 0 0.75rem;
    color: var(--cm-muted);
}

.api-grid {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.api-item {
    padding: 1rem;
}

.api-sample {
    margin: 0;
    color: var(--cm-text);
}

.btn-accent {
    background: var(--cm-orange);
    border-color: var(--cm-orange);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--cm-orange-deep);
    border-color: var(--cm-orange-deep);
    color: #fff;
}

.form-control,
.form-select,
.form-control:focus {
    border-radius: 14px;
    border-color: var(--cm-border);
    box-shadow: none;
}

.empty-state {
    color: var(--cm-muted);
    text-align: center;
}

@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-area {
        padding: 1rem;
    }

    .topbar,
    .panel-head {
        flex-direction: column;
        align-items: stretch;
    }
}