:root {
    --osteolab-ink: #243244;
    --osteolab-muted: #687582;
    --osteolab-line: #d8e1e5;
    --osteolab-brand: #2d7892;
    --osteolab-brand-dark: #20596f;
    --osteolab-sharepoint: #0878d1;
}

.osteolab-home {
    min-height: 100vh;
    color: var(--osteolab-ink);
    background: linear-gradient(180deg, #f3f7f8 0, #fff 35%);
}

.osteolab-shell {
    max-width: 1120px;
}

.osteolab-banner {
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 26px rgba(38, 66, 79, .12);
}

.osteolab-banner img {
    display: block;
    width: 100%;
}

.osteolab-userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem .25rem;
    color: var(--osteolab-muted);
}

.osteolab-user {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    font-size: .9rem;
}

.osteolab-user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osteolab-logout {
    flex: 0 0 auto;
    color: var(--osteolab-brand-dark);
    border: 1px solid var(--osteolab-line);
    border-radius: 999px;
    background: #fff;
}

.osteolab-logout:hover,
.osteolab-logout:focus {
    color: #fff;
    border-color: var(--osteolab-brand-dark);
    background: var(--osteolab-brand-dark);
}

.osteolab-menu {
    margin-top: .4rem;
    padding: 1.7rem 1.6rem 1.9rem;
    border: 1px solid var(--osteolab-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 38px rgba(38, 66, 79, .08);
}

.osteolab-menu-heading {
    margin-bottom: 1.35rem;
    text-align: center;
}

.osteolab-eyebrow {
    color: var(--osteolab-brand);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.osteolab-menu h1 {
    margin: 0;
    font-size: calc(1.35rem + .5vw);
    font-weight: 600;
}

.osteolab-card-grid {
    margin-right: -.55rem;
    margin-left: -.55rem;
}

.osteolab-card-grid > div {
    display: flex;
    padding: .55rem;
}

.osteolab-card {
    display: flex;
    width: 100%;
    min-height: 174px;
    padding: .85rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: var(--osteolab-ink);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--osteolab-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(40, 72, 86, .07);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

button.osteolab-card {
    appearance: none;
}

.osteolab-card:hover,
.osteolab-card:focus {
    color: var(--osteolab-brand-dark);
    text-decoration: none;
    border-color: #9bbbc5;
    outline: none;
    box-shadow: 0 10px 22px rgba(40, 72, 86, .14);
    transform: translateY(-3px);
}

.osteolab-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(45, 120, 146, .25), 0 10px 22px rgba(40, 72, 86, .14);
}

.osteolab-card img {
    width: 108px;
    height: 108px;
    object-fit: contain;
    border-radius: 12px;
}

.osteolab-card-sharepoint {
    color: #075b9c;
    border-color: #b8d8ee;
    background: linear-gradient(155deg, #fff 15%, #e8f5ff 100%);
}

.osteolab-sharepoint-icon {
    position: relative;
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    color: #fff;
    font-size: 3rem;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--osteolab-sharepoint), #075b9c);
}

.osteolab-sharepoint-icon small {
    position: absolute;
    right: 9px;
    bottom: 7px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.osteolab-card-hint {
    margin-top: -.45rem;
    color: #4e7188;
    font-size: .72rem;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .osteolab-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .osteolab-banner {
        border-radius: 0 0 12px 12px;
    }

    .osteolab-menu {
        padding: 1.25rem .75rem;
    }

    .osteolab-card {
        min-height: 150px;
        padding: .7rem;
        font-size: .92rem;
    }

    .osteolab-card img,
    .osteolab-sharepoint-icon {
        width: 88px;
        height: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .osteolab-card {
        transition: none;
    }
}
