

.msland-nousmark-block {
    width: 100%;
    margin: 30px 0;
    font-family: var(--msland-font-primary, system-ui, -apple-system, sans-serif);
    box-sizing: border-box;
}

.msland-nousmark-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px; 
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    
    .msland-nousmark-block {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
    }
    .msland-nousmark-container {
        padding: 0 40px; 
    }
}

@media (max-width: 1023px) {
    .msland-nousmark-block {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        position: static;
    }
    .msland-nousmark-container {
        padding: 0 16px; 
    }
}

.msland-nousmark-placeholder {
    padding: 30px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    color: #4b5563;
    font-size: 14px;
}

.msland-nousmark-search {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.msland-nousmark-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.msland-nousmark-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--msland-text-secondary, #6b7280);
    pointer-events: none;
}

.msland-nousmark-search-input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--msland-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    font-size: 14px;
    font-family: inherit;
    color: var(--msland-text-primary, #111827);
    background: var(--msland-bg-primary, #ffffff);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.msland-nousmark-search-input:focus {
    border-color: var(--msland-brand, #c1272d);
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

.msland-nousmark-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--msland-text-secondary, #6b7280);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.msland-nousmark-search-clear:hover {
    color: var(--msland-text-primary, #111827);
    background-color: var(--msland-bg-secondary, #f3f4f6);
}

.msland-nousmark-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.msland-nousmark-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--msland-bg-primary, #ffffff);
    border: 1px solid var(--msland-border, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    padding: 12px 8px;
    height: 100px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.msland-nousmark-card:hover {
    border-color: var(--msland-brand, #c1272d); 
}

.msland-nousmark-image-wrapper {
    width: 100%;
    max-width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}

.msland-nousmark-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.msland-nousmark-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--msland-bg-secondary, #f3f4f6);
    border-radius: 4px;
}

.msland-nousmark-initials {
    font-size: 16px;
    font-weight: 700;
    color: var(--msland-brand, #c1272d);
    font-family: var(--msland-font-secondary, inherit);
}

.msland-nousmark-info {
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.msland-nousmark-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--msland-text-primary, #111827);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msland-nousmark-count {
    display: block;
    font-size: 10px;
    color: var(--msland-text-secondary, #6b7280);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1024px) {
    .msland-nousmark-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .msland-nousmark-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .msland-nousmark-card {
        height: 90px;
        padding: 10px 6px;
    }
    
    .msland-nousmark-image-wrapper {
        height: 34px;
    }
    
    .msland-nousmark-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .msland-nousmark-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

body.dark-mode .msland-nousmark-card {
    background: var(--color-background-secondary) !important;
    border-color: var(--color-border) !important;
}

body.dark-mode .msland-nousmark-card:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode .msland-nousmark-image-wrapper img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

body.dark-mode .msland-nousmark-card:hover .msland-nousmark-image-wrapper img {
    opacity: 1;
}

body.dark-mode .msland-nousmark-no-image {
    background: var(--color-background-tertiary) !important;
}

body.dark-mode .msland-nousmark-initials {
    color: #ffffff !important;
}

body.dark-mode .msland-nousmark-name {
    color: #ffffff !important;
}

body.dark-mode .msland-nousmark-count {
    color: var(--color-text-secondary) !important;
}

body.dark-mode .msland-nousmark-placeholder {
    background: var(--color-background-secondary) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text-secondary) !important;
}

body.dark-mode .msland-nousmark-search-input {
    background: var(--color-background-tertiary) !important;
    border-color: var(--color-border) !important;
    color: #ffffff !important;
}

body.dark-mode .msland-nousmark-search-input::placeholder {
    color: var(--color-text-tertiary) !important;
}

body.dark-mode .msland-nousmark-search-input:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .msland-nousmark-search-wrapper .search-icon {
    color: var(--color-text-tertiary) !important;
}

body.dark-mode .msland-nousmark-search-clear {
    color: var(--color-text-tertiary) !important;
}

body.dark-mode .msland-nousmark-search-clear:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}
