.apps-intro {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 1.5rem;
}

.apps-section-title {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.apps-device-grid {
    align-items: center;
}

.device-grid-item {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-grid-item a {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.device-grid-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.device-btn {
    max-height: 64px;
    width: auto;
    max-width: 100%;
}

.apple-store-badge {
    margin-top: 1rem;
    text-align: center;
}

.apple-store-badge img {
    max-height: 48px;
    width: auto;
}

.device-grid-item--readonly {
    opacity: 0.55;
    filter: grayscale(60%);
}

.device-grid-item--readonly span,
.device-grid-item--connected span {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: default;
}

.device-grid-item--connected {
    opacity: 1;
    filter: none;
    position: relative;
    flex-direction: column;
}

.device-grid-item--connected > span {
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.18);
}

.device-disconnect {
    margin-top: 1rem;
    text-align: center;
}

.device-grid-item--connected .device-connected-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    border: none;
    box-shadow: none;
}
