body {
    background: #f5f7fb;
    color: #1f2937;
}

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

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand, .brand-large {
    font-weight: 800;
    letter-spacing: .3px;
}
.brand { font-size: 1.25rem; }
.brand-large { font-size: 1.75rem; }

.sidebar .nav-link {
    color: rgba(255,255,255,.85);
    border-radius: 12px;
    padding: 10px 12px;
}
.sidebar .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.sidebar-footer {
    margin-top: auto;
}

.content {
    flex: 1;
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}
.page-title { margin: 0; font-size: 1.8rem; font-weight: 800; }
.page-subtitle { color: #6b7280; font-size: .95rem; }
.top-search { min-width: 320px; max-width: 460px; width: 100%; }

.kpi-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
    border: 1px solid #e5e7eb;
}
.kpi-label { font-size: .85rem; color: #6b7280; margin-bottom: 6px; }
.kpi-value { font-size: 1.8rem; font-weight: 800; color: #111827; }

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-scroll {
    overflow-x: auto;
}
.board {
    display: grid;
    grid-template-columns: repeat(11, 300px);
    gap: 16px;
    align-items: flex-start;
}
.board-column {
    background: #e9eef7;
    border-radius: 18px;
    padding: 12px;
    min-height: 300px;
}
.board-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.board-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}
.board-card-empty {
    color: #6b7280;
    text-align: center;
    padding: 18px;
}

.guest-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, #e0f2fe, #f8fafc 45%, #eef2ff 100%);
}
.guest-card {
    width: min(520px, calc(100vw - 24px));
    border-radius: 22px;
    border: none;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #111827;
    color: #f9fafb;
    border-radius: 14px;
    padding: 14px;
}

@media (max-width: 991px) {
    .app-shell {
        display: block;
    }
    .sidebar {
        width: 100%;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .content {
        padding: 18px;
    }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-search {
        min-width: auto;
        max-width: none;
    }
}
