.navbar-brand {
    min-width: 0;
}

.navbar-brand-name {
    font-size: 1rem;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: calc(100% - 3.75rem);
    }

    .navbar-brand img {
        height: 36px;
    }

    .navbar-brand-name {
        font-size: 0.86rem;
        max-width: 9rem;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main.container {
    flex: 1 0 auto;
}

.site-footer {
    background: rgba(248, 249, 250, 0.92);
}

.admin-pet-thumbnail {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.profile-summary dt {
    color: #6c757d;
    font-weight: 600;
}

.profile-summary dd {
    margin-bottom: 0.35rem;
}

.profile-pet-thumbnail {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    display: inline-flex;
    height: 56px;
    justify-content: center;
    object-fit: cover;
    overflow: hidden;
    width: 56px;
}

.profile-pet-thumbnail--empty {
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 700;
    text-decoration: none;
}

.profile-pet-card-list {
    display: grid;
    gap: 0.75rem;
}

.profile-pet-card {
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
}

.profile-pet-card-picture {
    align-items: center;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    font-size: 1.5rem;
    font-weight: 700;
    justify-content: center;
    min-height: 88px;
    text-decoration: none;
}

.profile-pet-card-picture img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-pet-card-body {
    min-width: 0;
    padding: 0.75rem;
}

@media (max-width: 575.98px) {
    .profile-summary dt {
        margin-top: 0.35rem;
    }
}

body.admin-interface {
    background: #eef2f6;
}

body.admin-interface > main.container {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(33, 37, 41, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(33, 37, 41, 0.1);
}

.admin-topbar {
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-topbar-links a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.admin-topbar-links a:hover,
.admin-topbar-links a.active {
    color: #fff;
    text-decoration: underline;
}

.admin-navbar {
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.18);
}

.admin-page-heading {
    padding: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.95);
}

@media (max-width: 767.98px) {
    body.admin-interface > main.container {
        margin-top: 0;
        margin-bottom: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
}
