:root {
    --sidebar-width: 276px;
    --bg-soft: #f5f7fb;
    --card-radius: 18px;
    --border-soft: #e7ecf3;
}
body {
    background: var(--bg-soft);
    color: #1d2433;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--border-soft);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1040;
}
.mobile-nav-backdrop {
    display: none;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-meta {
    background: #f8fafc;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 12px 14px;
}
.brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #7f56d9);
    color: white;
}
.sidebar .nav-link {
    color: #364152;
    border-radius: 12px;
    padding: 10px 14px;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #eef4ff;
    color: #0d6efd;
    font-weight: 600;
}
.main-content {
    flex: 1;
    padding: 28px;
    min-width: 0;
}
.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}
.page-title {
    font-size: 1.7rem;
    font-weight: 700;
}
.card-soft,
.metric-card,
.stat-card {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}
.metric-card,
.stat-card {
    background: #fff;
    padding: 20px;
    height: 100%;
}
.metric-value {
    font-size: 2rem;
    font-weight: 700;
}
.table thead th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #667085;
}
.map-box {
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.lookup-phone {
    font-size: 1.35rem;
    font-weight: 700;
}
.preview-box {
    white-space: pre-wrap;
    background: #fafafa;
    padding: 14px;
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
}
.badge-status {
    font-size: .8rem;
}
.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.timeline-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px;
}
@media (max-width: 991px) {
    .app-shell {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -110%;
        top: 0;
        height: 100vh;
        transition: left .2s ease;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    }
    .sidebar.open {
        left: 0;
    }
    .mobile-nav-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1030;
    }
    .main-content {
        padding: 18px;
    }
    .topbar {
        align-items: center;
    }
    .topbar-meta {
        display: none;
    }
    .quick-grid {
        grid-template-columns: 1fr;
    }
    .table-responsive {
        border-radius: 16px;
    }
    .table td, .table th {
        white-space: nowrap;
    }
}
.app-footer {
    margin-top: 24px;
    text-align: center;
    color: #667085;
    font-size: .92rem;
}
.public-signature {
    text-align: center;
    color: #667085;
    font-size: .92rem;
    margin-top: 16px;
}
